Search in sources :

Example 6 with RuntimeScriptLabel

use of com.servoy.j2db.ui.scripting.RuntimeScriptLabel in project servoy-client by Servoy.

the class ComponentFactory method createWebComponentPlaceholder.

protected static IComponent createWebComponentPlaceholder(IApplication application, Form form, WebComponent webComponent) {
    RuntimeScriptLabel scriptable = new RuntimeScriptLabel(application.getItemFactory().createChangesRecorder(), application);
    ILabel label = application.getItemFactory().createScriptLabel(scriptable, getWebID(form, webComponent), false);
    scriptable.setComponent(label, webComponent);
    label.setName(webComponent.getName());
    label.setText("WebComponent '" + webComponent.getName() + "' placeholder");
    label.setSize(new Dimension(200, 20));
    return label;
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) RuntimeScriptLabel(com.servoy.j2db.ui.scripting.RuntimeScriptLabel) Dimension(java.awt.Dimension)

Aggregations

RuntimeScriptLabel (com.servoy.j2db.ui.scripting.RuntimeScriptLabel)6 ILabel (com.servoy.j2db.ui.ILabel)5 RuntimeScriptButton (com.servoy.j2db.ui.scripting.RuntimeScriptButton)2 FormController (com.servoy.j2db.FormController)1 IForm (com.servoy.j2db.IForm)1 IScriptExecuter (com.servoy.j2db.IScriptExecuter)1 IDisplayData (com.servoy.j2db.dataprocessing.IDisplayData)1 AbstractBase (com.servoy.j2db.persistence.AbstractBase)1 IDataProvider (com.servoy.j2db.persistence.IDataProvider)1 Media (com.servoy.j2db.persistence.Media)1 RepositoryException (com.servoy.j2db.persistence.RepositoryException)1 IAnchoredComponent (com.servoy.j2db.ui.IAnchoredComponent)1 IButton (com.servoy.j2db.ui.IButton)1 IDisplayTagText (com.servoy.j2db.ui.IDisplayTagText)1 IStylePropertyChangesRecorder (com.servoy.j2db.ui.IStylePropertyChangesRecorder)1 RenderEventExecutor (com.servoy.j2db.ui.RenderEventExecutor)1 AbstractHTMLSubmitRuntimeLabel (com.servoy.j2db.ui.scripting.AbstractHTMLSubmitRuntimeLabel)1 AbstractRuntimeButton (com.servoy.j2db.ui.scripting.AbstractRuntimeButton)1 RuntimeDataButton (com.servoy.j2db.ui.scripting.RuntimeDataButton)1 RuntimeDataLabel (com.servoy.j2db.ui.scripting.RuntimeDataLabel)1