Special Binding Properties (Java Desktop Applications)

See Also

Where necessary, the beans binding library provides special synthetic properties for some Swing components that are missing from the components themselves. These properties represent things, such as a table's selected row, that are useful to bind to other properties.

Below is a list of the synthetic properties added by the beans binding libraries:

Component Property Description
AbstractButton selected The selected state of a button.
JComboBox selectedItem The selected item of a JComboBox.
JSlider value The value of a JSlider; notifies of all changes.
value_IGNORE_ADJUSTING Same as "value" but does not notify of change while the slider is adjusting its value.
JList selectedElement The selected element of a JList; notifies of all changes. If there is a JListBinding with the JList as the target, the selected element is reported as an element from the binding's source list. Otherwise, the selected element is reported as an object from the list's model. If nothing is selected, the property evaluates to null.
selectedElements A list containing the selected elements of a JList; notifies of all changes. If there is a JListBinding with the JList as the target, the selected elements are reported as elements from the binding's source list. Otherwise, the selected elements are reported as objects from the list's model. If nothing is selected, the property evaluates to an empty list.
selectedElement_IGNORE_ADJUSTING Same as "selectedElement" but does not notify of change while the list selection is being updated.
selectedElements_IGNORE_ADJUSTING Same as "selectedElements" but does not notify of change while the list selection is being updated.
JTable selectedElement The selected element of a JTable; notifies of all changes. If there is a JTableBinding with the JTable as the target, the selected element is reported as an element from the binding's source list. Otherwise, the selected element is reported as a map where the keys are composed of the string "column" plus the column index and the values are the model values for that column. Example: {column0=column0value, column1=column1value, ...} If nothing is selected, the property evaluates to null.
selectedElements A list containing the selected elements of a JTable; notifies of all changes. If there is a JTableBinding with the JTable as the target, the selected elements are reported as elements from the binding's source list. Otherwise, each selected element is reported as a map where the keys are composed of the string "column" plus the column index and the values are the model values for that column. Example: {column0=column0value, column1=column1value, ...} If nothing is selected, the property evaluates to an empty list.
selectedElement_IGNORE_ADJUSTING Same as "selectedElement" but does notify of change while the table selection is being updated.
selectedElements_IGNORE_ADJUSTING Same as "selectedElements" but does not notify of change while the table selection is being updated.
JTextComponent (including its sub-classes JTextField, JTextArea, and JEditorPane) text The text property of a JTextComponent; notifies of all changes (including typing).
text_ON_FOCUS_LOST The text property of a JTextComponent; notifies of change only when focus is lost on the component.
text_ON_ACTION_OR_FOCUS_LOST The text property of a JTextComponent; notifies of change only when the component notifies of actionPerformed or when focus is lost on the component.
See Also
About Beans Binding in Java Desktop Applications
Creating a New Form
Adding a Component to a Form

Legal Notices