DESY ACOP Beans Home

com.cosylab.gui.components.wheelswitch
Class WheelswitchFormatter

java.lang.Object
  extended by com.cosylab.gui.components.wheelswitch.AbstractWheelswitchFormatter
      extended by com.cosylab.gui.components.wheelswitch.WheelswitchFormatter

public class WheelswitchFormatter
extends AbstractWheelswitchFormatter

Formats java.lang.Strings to be displayed as digits in the Wheelswitch. The format is specified in a format java.lang.String. WheelswitchFormatter also stores the value, its bounds (minimum and maximum) and also the unit displayed by the Wheelswitch.

Version:
$id$
Author:
Jernej Kamenik

Field Summary
 
Fields inherited from class com.cosylab.gui.components.wheelswitch.AbstractWheelswitchFormatter
debug, defFormatter, formatString, formatter, generatedFormatString, maximum, maximumDigits, minimum, unit, value, valueString
 
Constructor Summary
WheelswitchFormatter()
          Constructs the PlainWheelswitchFormatter with no format string.
WheelswitchFormatter(java.lang.String newFormatString)
          Constructs the PlainWheelswitchFormatter and sets the format string.
 
Method Summary
protected  void internalSetString(java.lang.String newValueString)
           
 
Methods inherited from class com.cosylab.gui.components.wheelswitch.AbstractWheelswitchFormatter
checkFormat, generateFormat, getFormat, getMaximum, getMaximumDigits, getMinimum, getString, getUnit, getValue, setFormat, setMaximum, setMaximumDigits, setMinimum, setString, setUnit, setValue, transformFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WheelswitchFormatter

public WheelswitchFormatter(java.lang.String newFormatString)
Constructs the PlainWheelswitchFormatter and sets the format string.

Parameters:
newFormatString -
See Also:
AbstractWheelswitchFormatter.setFormat(String)

WheelswitchFormatter

public WheelswitchFormatter()
Constructs the PlainWheelswitchFormatter with no format string.

See Also:
AbstractWheelswitchFormatter.setFormat(String)
Method Detail

internalSetString

protected void internalSetString(java.lang.String newValueString)
Specified by:
internalSetString in class AbstractWheelswitchFormatter


Copyright © 2010. All Rights Reserved.