|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.utility.OnActionClicker
public class OnActionClicker
Implementation of an ActionListener
that forwards the click
to another button depending on the selection state of the source button.
Constructor Summary | |
---|---|
OnActionClicker(javax.swing.AbstractButton bf,
javax.swing.AbstractButton target)
Constructs a OnActionClicker object with the true
button set to null. |
|
OnActionClicker(javax.swing.AbstractButton bt,
javax.swing.AbstractButton bf,
javax.swing.AbstractButton target)
Constructs a OnActionClicker object. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnActionClicker(javax.swing.AbstractButton bt, javax.swing.AbstractButton bf, javax.swing.AbstractButton target)
OnActionClicker
object.
This method throws an IllegalArgumentException
if
bf or target is null.
A null bt string is legal.
bt
- The button to be clicked if target is selected.bf
- The button to be clicked if target is deselected.target
- The button to which this listener will listen.
java.lang.IllegalArgumentException
- if bf or target is nullpublic OnActionClicker(javax.swing.AbstractButton bf, javax.swing.AbstractButton target)
OnActionClicker
object with the true
button set to null.
This method throws an IllegalArgumentException
if
bf or target is null.
bf
- The button to be clicked if target is deselected.target
- The button to which this listener will listen.
java.lang.IllegalArgumentException
- if bf or target is nullMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |