Class Bound.Utilities

  • Enclosing class:
    Bound

    public static class Bound.Utilities
    extends java.lang.Object
    Inner utility class to simplify figuring out how to display null values in controls.
    • Constructor Summary

      Constructors 
      Constructor Description
      Utilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getNullValue​(BindingContext context, java.lang.String nullValue)
      If the provided nullValue is null, empty, or just whitespace then the returned value will be null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utilities

        public Utilities()
    • Method Detail

      • getNullValue

        public static java.lang.Object getNullValue​(BindingContext context,
                                                    java.lang.String nullValue)
        If the provided nullValue is null, empty, or just whitespace then the returned value will be null. Otherwise, this function will look in the provided BindingContext to find a constant with the name of the nullValue string and return that. If there is no constant then the nullValue string itself will be returned.
        See Also:
        JComboBoxWiringHarness, BoundSelection.Wiring