|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.ui.handler.gui.swing.model.special.SpecialButtonFactory
public class SpecialButtonFactory
A class to help manage specialButtons.
Constructor Summary | |
---|---|
SpecialButtonFactory(Renderer render)
|
Method Summary | |
---|---|
void |
add(Class specialButton)
Add a class to create SpecialButtonInterface listeners when necessary. |
List |
getSpecialButtList()
Get the special button List |
SpecialButtonInterface |
getSpecialButton(Submit s)
Check if the Submit s complies with the conditions to be
considered special by any of the SpecialButtonInterface in
specialButtons |
static void |
processListener(AbstractButton ab,
ActionListener al)
removes previous ActionListener s and adds only
the SpecialButtonInterface as listener. |
void |
remove(Class specialButton)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecialButtonFactory(Renderer render)
Method Detail |
---|
public SpecialButtonInterface getSpecialButton(Submit s)
Submit
s complies with the conditions to be
considered special by any of the SpecialButtonInterface
in
specialButtons
s
- the Submit to check
SpecialButtonInterface
that considers Submit
s
to be special, null otherwise.public static void processListener(AbstractButton ab, ActionListener al)
ActionListener
s and adds only
the SpecialButtonInterface
as listener.
ab
- the AbstractButton
to check.al
- the ActionListener
that should manage
this button.public void add(Class specialButton)
SpecialButtonInterface
listeners when necessary.
specialButton
- public List getSpecialButtList()
public void remove(Class specialButton)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |