jmri.jmrit.symbolicprog
Class HexVariableValue

Show UML class diagram
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


Nested Class Summary
 
Nested classes/interfaces inherited from class jmri.jmrit.symbolicprog.DecVariableValue
DecVariableValue.VarTextField
 
Field Summary
(package private) static org.slf4j.Logger log
           
 
Fields inherited from class jmri.jmrit.symbolicprog.DecVariableValue
_defaultColor, _maxVal, _minVal, _value, oldContents, reps, sliders
 
Fields inherited from class jmri.jmrit.symbolicprog.VariableValue
_cvVector, _status, _tooltipText
 
Fields inherited from class jmri.jmrit.symbolicprog.AbstractValue
COLOR_DIFF, COLOR_EDITED, COLOR_FROMFILE, COLOR_READ, COLOR_SAME, COLOR_STORED, COLOR_UNKNOWN, DIFF, EDITED, FROMFILE, prop, 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.
(package private)  void updatedTextField()
          Invoked when a permanent change to the JTextField has been made.
 
Methods inherited from class jmri.jmrit.symbolicprog.DecVariableValue
dispose, enterField, exitField, focusGained, focusLost, getColor, getCommonRep, getIntValue, getNewRep, getValueObject, getValueString, isChanged, propertyChange, rangeVal, readAll, readChanges, setAvailable, setColor, 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
 

Field Detail

log

static org.slf4j.Logger log
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

updatedTextField

void updatedTextField()
Description copied from class: DecVariableValue
Invoked when a permanent change to the JTextField has been made. Note that this does _not_ notify property listeners; that should be done by the invoker, who may or may not know what the old value was. Can be overwridden in subclasses that want to display the value differently.

Overrides:
updatedTextField in class DecVariableValue

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-2013 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