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;
}
Aggregations