| java.lang.Object net.sf.launch4j.binding.Bindings
Bindings | public class Bindings implements PropertyChangeListener(Code) | | Creates and handles bindings.
author: Copyright (C) 2005 Grzegorz Kowal |
Method Summary | |
public Bindings | add(String property, JTextComponent c, String defaultValue) | public Bindings | add(String property, JTextComponent c) | public Bindings | add(String property, JToggleButton c, boolean defaultValue) | public Bindings | add(String property, JToggleButton c) | public Bindings | add(String property, JRadioButton[] cs, int defaultValue) | public Bindings | add(String property, JRadioButton[] cs) | public Bindings | add(String property, JTextArea textArea, String defaultValue) | public Bindings | add(String property, JTextArea textArea) | public Bindings | add(String property, String stateProperty, JToggleButton button, JTextArea textArea) | public Bindings | add(String property, JList list) | public Bindings | add(String property, JComboBox combo, int defaultValue) | public Bindings | add(String property, JComboBox combo) | public Bindings | addOptComponent(String property, Class clazz, JToggleButton c, boolean enabledByDefault) Add an optional (nullable) Java Bean component of type clazz. | public Bindings | addOptComponent(String property, Class clazz, JToggleButton c) Add an optional (nullable) Java Bean component of type clazz. | public void | clear(IValidatable bean) Clear all components, set them to their default values. | public void | get(IValidatable bean) Copies data from UI components to the Java Bean and checks it's class invariants. | public Binding | getBinding(String property) | public boolean | isModified() | public void | propertyChange(PropertyChangeEvent evt) Used to track component modifications. | public void | put(IValidatable bean) Copies data from the Java Bean to the UI components. | public void | setComponentsEnabled(String prefix, boolean enabled) Enables or disables all components bound to properties that begin with given prefix. |
clear | public void clear(IValidatable bean)(Code) | | Clear all components, set them to their default values.
Clears the _modified flag.
|
isModified | public boolean isModified()(Code) | | Any of the components modified?
|
put | public void put(IValidatable bean)(Code) | | Copies data from the Java Bean to the UI components.
Clears the _modified flag.
|
setComponentsEnabled | public void setComponentsEnabled(String prefix, boolean enabled)(Code) | | Enables or disables all components bound to properties that begin with given prefix.
|
|
|