Class PomProgStateConverter
java.lang.Object
org.bidib.wizard.mvc.pom.view.panel.PomProgStateConverter
- All Implemented Interfaces:
com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.PomProgState,String>
public final class PomProgStateConverter
extends Object
implements com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.PomProgState,String>
Converts Values to Strings and vice-versa using a given Format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bidib.jbidibc.messages.enums.PomProgStatesourceValue(String targetValue) Parses the given String encoding and sets it as the subject's new value.targetValue(org.bidib.jbidibc.messages.enums.PomProgState sourceValue) Formats the source value and returns a String representation.
-
Constructor Details
-
PomProgStateConverter
public PomProgStateConverter()
-
-
Method Details
-
targetValue
Formats the source value and returns a String representation.- Specified by:
targetValuein interfacecom.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.enums.PomProgState,String> - Parameters:
sourceValue- the source value- Returns:
- the formatted sourceValue
-
sourceValue
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.PomProgState,String> - Parameters:
targetValue- the value to be converted and set as new subject value
-