Package fr.esrf.tangoatk.core

Examples of fr.esrf.tangoatk.core.IStringScalar


    // String scalar listener
    // -------------------------------------------------------------
    @Override
    public void stringScalarChange(StringScalarEvent evt) {

        IStringScalar tmpStringScalar = (IStringScalar) evt.getSource();
        if (m_scalarlistener != null) {
            m_scalarlistener.readStringValueChange(evt.getValue());
            if (tmpStringScalar != null) {
                m_scalarlistener.writeStringValueChange(tmpStringScalar.getStringDeviceSetPoint());
            }
        }

        if (isEditable()) {
            return;
        }
        if (displayReadValue) {
            super.stringScalarChange(evt);
        }
        else if (tmpStringScalar != null) {
            String tmpValue = tmpStringScalar.getStringDeviceSetPoint();
            setText(tmpValue);
        }
    }
View Full Code Here


      // -------------------------------------------------------------
      // String scalar listener
      // -------------------------------------------------------------
      public void stringScalarChange(StringScalarEvent evt) {
          IStringScalar tmpStringScalar = (IStringScalar)evt.getSource();
          if(tmpStringScalar == null)
              return;
         
          if(displayReadValue)
              super.stringScalarChange(evt);
          else
          {
              String tmpValue = tmpStringScalar.getStringDeviceSetPoint();
              setText(tmpValue);
          }
             
          if(m_scalarlistener != null)
          {
              m_scalarlistener.readStringValueChange(evt.getValue());
              m_scalarlistener.writeStringValueChange(tmpStringScalar.getStringDeviceSetPoint());
          }
      }
View Full Code Here

    @Override
    public void stringScalarChange(StringScalarEvent e) {
        if (isEditable()) {
            return;
        }
        IStringScalar tmpStringScalar = getModel();
        if (displayReadValue && !tmpStringScalar.isWritable()) {
            super.stringScalarChange(e);
        }
        else {
            if (tmpStringScalar != null) {
                setText(tmpStringScalar.getStringDeviceSetPoint());
            }
        }
        if (m_scalarlistener != null) {
            m_scalarlistener.readStringValueChange(e.getValue());
            if (tmpStringScalar != null && tmpStringScalar.isWritable()) {
                m_scalarlistener.writeStringValueChange(tmpStringScalar.getStringDeviceSetPoint());
            }
        }
    }
View Full Code Here

        String tmpStringValue = getText();
        if (m_inputListener != null) {
            m_inputListener.stringValueChange(tmpStringValue);
        }

        IStringScalar tmpStringScalar = getModel();
        if (tmpStringScalar == null) {
            return;
        }
        // System.out.println("ACTION PERFORMED");
        int result = GlobalSoleilJDialog.OK_OPTION;
        if (askConfirmation) {
            result = JOptionPane.showConfirmDialog(this, textAskConfirmation, titleAskConfirmation,
                    JOptionPane.YES_NO_OPTION);
        }

        if (result == JOptionPane.OK_OPTION) {
            tmpStringScalar.setString(tmpStringValue);
        }
        else {
            setText(tmpStringScalar.getStringValue());
        }
    }
View Full Code Here

TOP

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

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.