Class Bound.Utilities

java.lang.Object
com.palantir.ptoss.cinch.swing.Bound.Utilities
Enclosing class:
Bound

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

    • Utilities

      public Utilities()
  • Method Details

    • getNullValue

      public static Object getNullValue(BindingContext context, 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: