Package org.bidib.wizard.mvc.pt.view
Class CommandStationProgStateConverter
- java.lang.Object
-
- org.bidib.wizard.mvc.pt.view.CommandStationProgStateConverter
-
- All Implemented Interfaces:
com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.CommandStationProgState,Object>
public final class CommandStationProgStateConverter extends Object implements com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.CommandStationProgState,Object>
Converts Values to Strings and vice-versa using a given Format.
-
-
Constructor Summary
Constructors Constructor Description CommandStationProgStateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bidib.jbidibc.messages.enums.CommandStationProgStatesourceValue(Object targetValue)Parses the given String encoding and sets it as the subject's new value.ObjecttargetValue(org.bidib.jbidibc.messages.enums.CommandStationProgState sourceValue)Formats the source value and returns a String representation.
-
-
-
Method Detail
-
targetValue
public Object targetValue(org.bidib.jbidibc.messages.enums.CommandStationProgState sourceValue)
Formats the source value and returns a String representation.- Specified by:
targetValuein interfacecom.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.CommandStationProgState,Object>- Parameters:
sourceValue- the source value- Returns:
- the formatted sourceValue
-
sourceValue
public org.bidib.jbidibc.messages.enums.CommandStationProgState sourceValue(Object targetValue)
Parses the given String encoding and sets it as the subject's new value. Silently catchesParseException.- Specified by:
sourceValuein interfacecom.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.CommandStationProgState,Object>- Parameters:
targetValue- the value to be converted and set as new subject value
-
-