Search in sources :

Example 21 with ILabel

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);
        }
    }
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) Point(java.awt.Point)

Example 22 with ILabel

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);
            }
        }
    }
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) Point(java.awt.Point)

Example 23 with ILabel

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);
    }
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) IRuntimeComponent(com.servoy.j2db.ui.runtime.IRuntimeComponent) IScriptable(com.servoy.j2db.scripting.IScriptable)

Example 24 with ILabel

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);
            }
        }
    }
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) Point(java.awt.Point)

Example 25 with ILabel

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);
        }
    }
}
Also used : ILabel(com.servoy.j2db.ui.ILabel) Point(java.awt.Point)

Aggregations

ILabel (com.servoy.j2db.ui.ILabel)49 Point (java.awt.Point)40 RuntimeScriptLabel (com.servoy.j2db.ui.scripting.RuntimeScriptLabel)5 IRuntimeComponent (com.servoy.j2db.ui.runtime.IRuntimeComponent)4 IDisplayData (com.servoy.j2db.dataprocessing.IDisplayData)3 IComponent (com.servoy.j2db.ui.IComponent)3 IFieldComponent (com.servoy.j2db.ui.IFieldComponent)3 Component (org.apache.wicket.Component)3 FormComponent (org.apache.wicket.markup.html.form.FormComponent)3 RepositoryException (com.servoy.j2db.persistence.RepositoryException)2 CloseableAjaxRequestTarget (com.servoy.j2db.server.headlessclient.CloseableAjaxRequestTarget)2 MainPage (com.servoy.j2db.server.headlessclient.MainPage)2 IProviderStylePropertyChanges (com.servoy.j2db.ui.IProviderStylePropertyChanges)2 RuntimeScriptButton (com.servoy.j2db.ui.scripting.RuntimeScriptButton)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 List (java.util.List)2 ListItem (org.apache.wicket.markup.html.list.ListItem)2 FormController (com.servoy.j2db.FormController)1 IForm (com.servoy.j2db.IForm)1