VLab Common 1.2

pl.psnc.vlab.util.gui.action.factory
Class ActionFactory

java.lang.Object
  extended by pl.psnc.vlab.util.gui.action.factory.ActionFactory

public abstract class ActionFactory
extends java.lang.Object

ActionFactory class - stores system actions. The action search methods are also available.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Method Summary
static AbstractActionDefault getAction(ActionType type)
          Get action by the given action type
static java.util.Observable getObservable(ActionType type)
          Get observable interface from the given action
static java.util.Observer getObserver(ActionType type)
          Get observer interface from the given action
static void putAction(ActionType type, AbstractActionDefault action)
          Store an action on the action list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAction

public static AbstractActionDefault getAction(ActionType type)
Get action by the given action type

Parameters:
type - type of the action to retrieve
Returns:
instance of AbstractActionDefault

getObservable

public static java.util.Observable getObservable(ActionType type)
Get observable interface from the given action

Parameters:
type - type of the action to retrieve
Returns:
instance of Observable or NULL if not Observable

getObserver

public static java.util.Observer getObserver(ActionType type)
Get observer interface from the given action

Parameters:
type - type of the action to retrieve
Returns:
instance of Observer or NULL if not Observer

putAction

public static void putAction(ActionType type,
                             AbstractActionDefault action)
Store an action on the action list

Parameters:
type - action type, instance of ActionType
action - action object, instance of AbstractActionDefault

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.