@Deprecated public class ActionBindingBuilderImpl extends Object implements ActionBindingBuilder
Constructor and Description |
---|
ActionBindingBuilderImpl(Action action)
Deprecated.
Creates an ActionBindingBuilderImpl for the given action.
|
Modifier and Type | Method and Description |
---|---|
void |
to(AbstractButton button)
Deprecated.
Sets this builder's Action in the given button.
|
void |
to(JComboBox comboBox)
Deprecated.
Sets this builder's Action in the given combo box.
|
void |
to(JTextField textField)
Deprecated.
Sets this builder's Action in the given text field.
|
public ActionBindingBuilderImpl(Action action)
action
- the Action that can be bound to buttons and text fieldsNullPointerException
- if action
is null
public void to(AbstractButton button)
ActionBindingBuilder
Example:
binder.bind(editAction).to(editButton);
to
in interface ActionBindingBuilder
button
- the button where the Action is setpublic void to(JComboBox comboBox)
ActionBindingBuilder
Example:
binder.bind(anAction).to(aComboBox);
to
in interface ActionBindingBuilder
comboBox
- the combo box where the Action is setpublic void to(JTextField textField)
ActionBindingBuilder
Example:
binder.bind(searchAction).to(searchField);
to
in interface ActionBindingBuilder
textField
- the field where the Action is setCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.