|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.binding.binder.ActionBindingBuilderImpl
public class ActionBindingBuilderImpl
Holds an Action that can be bound to buttons and text fields.
| Constructor Summary | |
|---|---|
ActionBindingBuilderImpl(Action action)
Creates an ActionBindingBuilderImpl for the given action. |
|
| Method Summary | |
|---|---|
void |
to(AbstractButton button)
Sets this builder's Action in the given button. |
void |
to(JTextField textField)
Sets this builder's Action in the given text field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionBindingBuilderImpl(Action action)
action - the Action that can be bound to buttons and text fields
NullPointerException - if action is null| Method Detail |
|---|
public void to(AbstractButton button)
ActionBindingBuilder
Example:
binder.bind(editAction).to(editButton);
to in interface ActionBindingBuilderbutton - the button where the Action is setpublic void to(JTextField textField)
ActionBindingBuilder
Example:
binder.bind(searchAction).to(searchField);
to in interface ActionBindingBuildertextField - the field where the Action is set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||