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