com.pietschy.command
Class ButtonManager
java.lang.Object
com.pietschy.command.ButtonManager
class ButtonManager
- extends java.lang.Object
ButtonManagers are used by commands to manage all the buttons that have been registered with
a particular Face.
|
Method Summary |
void |
attachAndConfigure(javax.swing.AbstractButton button)
Attaches this command to the button. |
java.util.Iterator<javax.swing.AbstractButton> |
buttonIterator()
|
void |
detach(javax.swing.AbstractButton button)
Detaches this command from the specified button. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buttons
protected WeakSet<javax.swing.AbstractButton> buttons
ButtonManager
protected ButtonManager(Command command)
attachAndConfigure
public void attachAndConfigure(javax.swing.AbstractButton button)
- Attaches this command to the button. It is implemented using an
action adapter. That it an adapter is created and
AbstractButton.setAction(javax.swing.Action) is called.
- Parameters:
button - the button to which this command should be attached.
detach
public void detach(javax.swing.AbstractButton button)
- Detaches this command from the specified button.
- Parameters:
button - the button from which this command is to be detached.
buttonIterator
public java.util.Iterator<javax.swing.AbstractButton> buttonIterator()
Copyright © 2006 - 2007 Andrew Pietsch