Class TidConverter

java.lang.Object
org.bidib.wizard.mvc.common.view.converter.TidConverter
All Implemented Interfaces:
com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.TidData,String>

public final class TidConverter extends Object implements com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.TidData,String>
Converts Values to Strings and vice-versa using a given Format.
  • Constructor Details

    • TidConverter

      public TidConverter()
      Constructs a TidConverter.
  • Method Details

    • targetValue

      public String targetValue(org.bidib.jbidibc.messages.TidData sourceValue)
      Formats the source value and returns a String representation.
      Specified by:
      targetValue in interface com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.TidData,String>
      Parameters:
      sourceValue - the source value
      Returns:
      the formatted sourceValue
    • sourceValue

      public org.bidib.jbidibc.messages.TidData sourceValue(String targetValue)
      Parses the given String encoding and sets it as the subject's new value. Silently catches ParseException.
      Specified by:
      sourceValue in interface com.jgoodies.binding.value.BindingConverter<org.bidib.jbidibc.messages.TidData,String>
      Parameters:
      targetValue - the value to be converted and set as new subject value