public class SpecialButtonFactory extends Object
Constructor and Description |
---|
SpecialButtonFactory(Renderer render) |
Modifier and Type | Method and Description |
---|---|
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) |
public SpecialButtonFactory(Renderer render)
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 checkSpecialButtonInterface
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)
Copyright © 2018 universAAL Consortium. All rights reserved.