Class FirmwareUpdateStateConverter
- java.lang.Object
-
- org.bidib.wizard.mvc.firmware.view.panel.FirmwareUpdateStateConverter
-
- All Implemented Interfaces:
com.jgoodies.binding.value.BindingConverter<UpdateStatus,String>
public final class FirmwareUpdateStateConverter extends Object implements com.jgoodies.binding.value.BindingConverter<UpdateStatus,String>
Converts Values to Strings and vice-versa using a given Format.
-
-
Constructor Summary
Constructors Constructor Description FirmwareUpdateStateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateStatussourceValue(String targetValue)Parses the given String encoding and sets it as the subject's new value.StringtargetValue(UpdateStatus sourceValue)Formats the source value and returns a String representation.
-
-
-
Method Detail
-
targetValue
public String targetValue(UpdateStatus sourceValue)
Formats the source value and returns a String representation.- Specified by:
targetValuein interfacecom.jgoodies.binding.value.BindingConverter<UpdateStatus,String>- Parameters:
sourceValue- the source value- Returns:
- the formatted sourceValue
-
sourceValue
public UpdateStatus sourceValue(String 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<UpdateStatus,String>- Parameters:
targetValue- the value to be converted and set as new subject value
-
-