jmri.jmrit.symbolicprog
Class HexVariableValue

java.lang.Object
  extended by jmri.jmrit.symbolicprog.AbstractValue
      extended by jmri.jmrit.symbolicprog.VariableValue
          extended by jmri.jmrit.symbolicprog.DecVariableValue
              extended by jmri.jmrit.symbolicprog.HexVariableValue
All Implemented Interfaces:
ActionListener, FocusListener, PropertyChangeListener, EventListener

public class HexVariableValue
extends DecVariableValue

LIke DecVariableValue, except that the string representation is in hexadecimal

Author:
Bob Jacobsen Copyright (C) 2001

Nested Class Summary
 
Nested classes/interfaces inherited from class jmri.jmrit.symbolicprog.DecVariableValue
DecVariableValue.VarTextField
 
Field Summary
 
Fields inherited from class jmri.jmrit.symbolicprog.VariableValue
_cvVector, _status, _tooltipText
 
Fields inherited from class jmri.jmrit.symbolicprog.AbstractValue
DIFF, EDITED, FROMFILE, READ, SAME, STORED, UNKNOWN
 
Constructor Summary
HexVariableValue(String name, String comment, String cvName, boolean readOnly, boolean infoOnly, boolean writeOnly, boolean opsOnly, int cvNum, String mask, int minVal, int maxVal, Vector<CvValue> v, JLabel status, String stdname)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          ActionListener implementations
 void setValue(int value)
          Set a new value, including notification as needed.
 
Methods inherited from class jmri.jmrit.symbolicprog.DecVariableValue
dispose, focusGained, focusLost, getCommonRep, getIntValue, getNewRep, getValueObject, getValueString, isChanged, propertyChange, rangeVal, readAll, readChanges, setAvailable, setCvState, setIntValue, setToolTipText, usesCVs, writeAll, writeChanges
 
Methods inherited from class jmri.jmrit.symbolicprog.VariableValue
confirmAll, considerChanged, cvName, getComment, getCvNum, getInfoOnly, getMask, getOpsOnly, getReadOnly, getState, getTextValue, getWriteOnly, isBusy, isToRead, isToWrite, item, label, maskVal, newValue, offsetVal, setBusy, setState, setToRead, setToWrite, updateRepresentation
 
Methods inherited from class jmri.jmrit.symbolicprog.AbstractValue
addPropertyChangeListener, getAvailable, removePropertyChangeListener, stateNameFromValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexVariableValue

public HexVariableValue(String name,
                        String comment,
                        String cvName,
                        boolean readOnly,
                        boolean infoOnly,
                        boolean writeOnly,
                        boolean opsOnly,
                        int cvNum,
                        String mask,
                        int minVal,
                        int maxVal,
                        Vector<CvValue> v,
                        JLabel status,
                        String stdname)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
ActionListener implementations

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class DecVariableValue

setValue

public void setValue(int value)
Description copied from class: DecVariableValue
Set a new value, including notification as needed. This does the conversion from string to int, so if the place where formatting needs to be applied

Overrides:
setValue in class DecVariableValue


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads