Package com.palantir.ptoss.cinch.swing
Annotation Interface Bound
Used to bind a UI control to a model property, where property is meant in a strict
Java sense.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Inner utility class to simplify figuring out how to display null values in controls.static class
Inner utility class that performs the runtime wiring of all bindings in this package. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
A hint as to what event should be used to listen to the component for changes.Used to add a null value to aJComboBox
.String[]
Specifies theModelUpdate
s on which the binding will occur.Used for enum/boolean values forJRadioButton
s andJToggleButton
s.
-
Element Details
-
to
String toThe property to bind to.
-
-
-
on
String[] onSpecifies the
ModelUpdate
s on which the binding will occur. Defaults to empty, which indicates all updates.Note: when bound to a specific
ModelUpdate
, a control will not receive not sent specifically to anyModelUpdate
- i.e. default updates. To selectively answer a specificModelUpdate
and also still get default notications, addModelUpdates.UNSPECIFIED
to the list ofModelUpdate
s passed toon()
.- See Also:
- Default:
- {""}
-
value
String valueUsed for enum/boolean values forJRadioButton
s andJToggleButton
s. Valid values for booleans are "true", "false", and unset. When "true" the button will indicate a selected state, "false" indicates unselected state, and unset will indicate the state of the backing boolean.- Default:
- ""
-
nullValue
String nullValueUsed to add a null value to aJComboBox
.- Default:
- ""
-
events
String[] eventsA hint as to what event should be used to listen to the component for changes. Currently only used by the JTextComponentWiringHarness. Default is to use a document listener, which will fire the binding every time the document changes. Use event="actionPerformed" to use an ActionListener instead, or event="focusLost" to use focus loss.- Default:
- {}
-