use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class WebDataComboBox method setComponentEnabled.
public void setComponentEnabled(boolean b, boolean setLabels, boolean readOnly) {
if (accessible || !b) {
enabledState = b;
super.setEnabled(b && !readOnly);
getStylePropertyChanges().setChanged();
if (labels != null && setLabels) {
for (int i = 0; i < labels.size(); i++) {
ILabel label = labels.get(i);
label.setComponentEnabled(b);
}
}
}
}
use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class WebItemFactory method createLabel.
public IStandardLabel createLabel(String name, String text) {
RuntimeScriptLabel scriptable = new RuntimeScriptLabel(createChangesRecorder(), application);
ILabel label = new WebBaseLabel(application, scriptable, name, text);
scriptable.setComponent(label, null);
return label;
}
use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class WebItemFactory method createInvisibleBean.
public IComponent createInvisibleBean(String name, Object obj) {
RuntimeScriptLabel scriptable = new RuntimeScriptLabel(createChangesRecorder(), application);
ILabel invisibleBean = new WebBeanHolder(application, scriptable, name, obj);
scriptable.setComponent(invisibleBean, null);
return invisibleBean;
}
use of com.servoy.j2db.ui.ILabel 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