use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class DataTextEditor method setVisible.
@Override
public void setVisible(boolean flag) {
super.setVisible(flag);
if (labels != null) {
for (int i = 0; i < labels.size(); i++) {
ILabel label = labels.get(i);
label.setComponentVisible(flag);
}
}
}
use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class DataTextEditor method setComponentEnabled.
public void setComponentEnabled(final boolean b) {
if (accessible || !b) {
super.setEnabled(b);
if (labels != null) {
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 AbstractRuntimeField method setVisible.
@Override
public void setVisible(boolean b) {
if (isVisible() != b) {
if (getComponent().isViewable()) {
List<ILabel> labels = getComponent().getLabelsFor();
if (labels != null) {
for (int i = 0; i < labels.size(); i++) {
ILabel label = labels.get(i);
IScriptable scriptable = label.getScriptObject();
if (scriptable instanceof IRuntimeComponent) {
((IRuntimeComponent) scriptable).setVisible(b);
} else {
label.setComponentVisible(b);
}
}
}
}
super.setVisible(b);
}
}
use of com.servoy.j2db.ui.ILabel in project servoy-client by Servoy.
the class DataImgMediaField method setComponentEnabled.
public void setComponentEnabled(final boolean b) {
if (accessible || !b) {
super.setEnabled(b);
if (labels != null) {
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 DataRadioButton method setVisible.
@Override
public void setVisible(boolean flag) {
super.setVisible(flag);
if (labels != null) {
for (int i = 0; i < labels.size(); i++) {
ILabel label = labels.get(i);
label.setComponentVisible(flag);
}
}
}
Aggregations