Package com.palantir.ptoss.cinch.swing
Class Bound.Utilities
java.lang.Object
com.palantir.ptoss.cinch.swing.Bound.Utilities
- Enclosing class:
- Bound
Inner utility class to simplify figuring out how to display null values in controls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getNullValue
(BindingContext context, String nullValue) If the provided nullValue is null, empty, or just whitespace then the returned value will be null.
-
Constructor Details
-
Utilities
public Utilities()
-
-
Method Details
-
getNullValue
If the provided nullValue is null, empty, or just whitespace then the returned value will be null. Otherwise, this function will look in the providedBindingContext
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:
-