org.universAAL.ui.handler.gui.swing.model.special
Class SpecialButtonFactory

Package class diagram package SpecialButtonFactory
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.special.SpecialButtonFactory

public class SpecialButtonFactory
extends Object

A class to help manage specialButtons.

Author:
amedrano

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 ActionListeners 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

SpecialButtonFactory

public SpecialButtonFactory(Renderer render)
Method Detail

getSpecialButton

public SpecialButtonInterface getSpecialButton(Submit s)
Check if the Submit s complies with the conditions to be considered special by any of the SpecialButtonInterface in specialButtons

Parameters:
s - the Submit to check
Returns:
the SpecialButtonInterface that considers Submit s to be special, null otherwise.

processListener

public static void processListener(AbstractButton ab,
                                   ActionListener al)
removes previous ActionListeners and adds only the SpecialButtonInterface as listener.

Parameters:
ab - the AbstractButton to check.
al - the ActionListener that should manage this button.

add

public void add(Class specialButton)
Add a class to create SpecialButtonInterface listeners when necessary.

Parameters:
specialButton -

getSpecialButtList

public List getSpecialButtList()
Get the special button List

Returns:

remove

public void remove(Class specialButton)


Copyright © 2014 universAAL Consortium. All Rights Reserved.