Package com.palantir.ptoss.cinch.swing
Class Bound.Utilities
- java.lang.Object
-
- com.palantir.ptoss.cinch.swing.Bound.Utilities
-
- Enclosing class:
- Bound
public static class Bound.Utilities extends java.lang.ObjectInner 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.ObjectgetNullValue(BindingContext context, java.lang.String nullValue)If the provided nullValue is null, empty, or just whitespace then the returned value will be null.
-
-
-
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 providedBindingContextto 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
-
-