org.jtheque.primary.view.impl.choice
Class ChoiceActionFactory

java.lang.Object
  extended by org.jtheque.primary.view.impl.choice.ChoiceActionFactory

public final class ChoiceActionFactory
extends Object

A factory of choice actions.

Author:
Baptiste Wicht

Method Summary
static void addChoiceAction(ChoiceAction action)
          Add a choice action.
static ChoiceAction getChoiceAction(String action)
          Get the good choice action for a specific type of action.
static void removeChoiceAction(ChoiceAction action)
          Remove a choice action.
static void removeChoiceActions(ChoiceAction[] choiceActions)
          Remove the specified choice actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChoiceAction

public static ChoiceAction getChoiceAction(String action)
Get the good choice action for a specific type of action.

Parameters:
action - The type of the action
Returns:
The good choice action or null if we don't found it.

addChoiceAction

public static void addChoiceAction(ChoiceAction action)
Add a choice action.

Parameters:
action - The choice action.

removeChoiceAction

public static void removeChoiceAction(ChoiceAction action)
Remove a choice action.

Parameters:
action - The choice action.

removeChoiceActions

public static void removeChoiceActions(ChoiceAction[] choiceActions)
Remove the specified choice actions.

Parameters:
choiceActions - The actions to remove.


Copyright © 2010 JTheque. All Rights Reserved.