Package fr.soleil.comete.definition.widget

Examples of fr.soleil.comete.definition.widget.IComponent


        boolean echo = needEchoSuppressor(source);

        if (confirmation) {
            if (!echo || (echo && !sema)) {
                int confResult = JOptionPane.YES_OPTION;
                IComponent parent = (source instanceof IComponent) ? (IComponent) source : null;
                confResult = executeConfirmation(parent, data, confirmationMessage);
                result = (confResult == JOptionPane.YES_OPTION);
            }
        }
        sema = false;
View Full Code Here


  public static void registerBadConnection(ITarget widget, IKey key,
      AbstractCometeBox<? extends ITarget> box) {
    boolean enabled = true;
    if (widget instanceof IComponent){
      IComponent iComponent = (IComponent) widget;
      enabled = iComponent.isEnabled();
    }
    ConnectionParameters params = new ConnectionParameters(box, widget, key,enabled);
    badConnectionParameters.add(params);

    // start thread if needed
View Full Code Here

            ITarget widget = params.getWidget();
            IKey key = params.getKey();

            if (box.connectWidget(widget, key, false)) {
              if (widget instanceof IComponent){
                IComponent iComponent = (IComponent) widget;
                iComponent.setEnabled(params.isEnabled())
              }
             
              iterator.remove();
            }
          }
View Full Code Here

    protected Class<?> getTargetClass() {
        return TextField.class;
    }

    public void setEditable(boolean editable) {
        IComponent component = getComponent();
        if (component != null && component instanceof ITextField) {
            ((ITextField) component).setEditable(editable);
        }
    }
View Full Code Here

            ((ITextField) component).setEditable(editable);
        }
    }

    public boolean isEditable() {
        IComponent component = getComponent();
        if (component != null && component instanceof ITextField) {
            return ((ITextField) component).isEditable();
        }
        return false;
    }
View Full Code Here

        boolean echo = needEchoSuppressor(source);

        if (confirmation) {
            if (!echo || (echo && !sema)) {
                int confResult = JOptionPane.YES_OPTION;
                IComponent parent = (source instanceof IComponent) ? (IComponent) source : null;
                confResult = executeConfirmation(parent, data, confirmationMessage);
                result = (confResult == JOptionPane.YES_OPTION);
            }
        }
        sema = false;
View Full Code Here

    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (target instanceof IComponent) {
            IComponent comp = (IComponent) target;
            comp.setEnabled(enabled);
        }
    }
View Full Code Here

        result.addTangoWidgetListener(this);
        return result;
    }

    public void setValueList(String[] valueList) {
        IComponent component = getComponent();
        if (component != null && component instanceof IComboBox) {
            ((IComboBox) component).setValueList(valueList);
        }
    }
View Full Code Here

            ((IComboBox) component).setValueList(valueList);
        }
    }

    public String[] getValueList() {
        IComponent component = getComponent();
        if (component != null && component instanceof IComboBox) {
            return ((IComboBox) component).getValueList();
        }
        return null;
    }
View Full Code Here

        }
        return null;
    }

    public void setOptionList(String[] optionList) {
        IComponent component = getComponent();
        if (component != null && component instanceof IComboBox) {
            ((IComboBox) component).setDisplayedList(optionList);
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.IComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.