Package fr.esrf.tangoatk.core

Examples of fr.esrf.tangoatk.core.IBooleanScalar


    // -------------------------------------------------------------

    @Override
    public void booleanScalarChange(BooleanScalarEvent evt) {

        IBooleanScalar tmpBooleanScalar = (IBooleanScalar) evt.getSource();
        if (m_booleanlistener != null) {
            m_booleanlistener.readBooleanValueChange(evt.getValue());
            if (tmpBooleanScalar != null) {
                m_booleanlistener.writeBooleanValueChange(tmpBooleanScalar.getDeviceSetPoint());
            }
        }

        if (isEditable()) {
            return;
        }

        if (displayReadValue) {
            super.booleanScalarChange(evt);
        }
        else if (tmpBooleanScalar != null) {
            String tmpValue = Boolean.toString(tmpBooleanScalar.getDeviceSetPoint());
            setText(tmpValue);
        }
    }
View Full Code Here


      // -------------------------------------------------------------
      // Boolean scalar listener
      // -------------------------------------------------------------

      public void booleanScalarChange (BooleanScalarEvent evt) {
          IBooleanScalar tmpBooleanScalar = (IBooleanScalar)evt.getSource();
          if(tmpBooleanScalar == null)
              return;
          if(displayReadValue)
              super.booleanScalarChange(evt)
          else
          {
              String tmpValue = Boolean.toString(tmpBooleanScalar.getDeviceSetPoint());
              setText(tmpValue);
          }
         
          if(m_booleanlistener != null)
          {
              m_booleanlistener.readBooleanValueChange(evt.getValue());
              m_booleanlistener.writeBooleanValueChange(tmpBooleanScalar.getDeviceSetPoint());
          }
      }
View Full Code Here

  }

  @Override
  public void booleanScalarChange(final BooleanScalarEvent arg0) {
    // System.out.println("booleanScalarChange=" + getAttModel());
    final IBooleanScalar tmpModel = getAttModel();
    if (m_booleanListener != null) {
      m_booleanListener.readBooleanValueChange(arg0.getValue());
      if (tmpModel != null && tmpModel.isWritable()) {
        m_booleanListener.writeBooleanValueChange(getAttModel()
            .getSetPoint());
      }
    }
    // Must store the enable property before because it is overwriting.
    final boolean enableBefore = isEnabled();
    if (displayReadValue || tmpModel == null || !tmpModel.isWritable()) {
      super.booleanScalarChange(arg0);
    } else if (tmpModel != null && tmpModel.isWritable()) {
      setBoolValue(tmpModel.getSetPoint());
    }
    setEnabled(enableBefore);
  }
View Full Code Here

TOP

Related Classes of fr.esrf.tangoatk.core.IBooleanScalar

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.