Log4j 0.9d

pl.psnc.expres.wfm.action
Class WfmObservableAbstractAction

java.lang.Object
  extended by LocalizedObservableAbstractAction
      extended by pl.psnc.expres.wfm.action.WfmObservableAbstractAction
All Implemented Interfaces:
Observer, IActionGraphDecorator
Direct Known Subclasses:
CcfEditorPaneAction, EventLogPerspAction, OpenVexFileAction, ResInfPerspAction, WorkflowEditorViewAction

public abstract class WfmObservableAbstractAction
extends LocalizedObservableAbstractAction
implements IActionGraphDecorator, Observer

WfmObservableAbstractAction class - provides default implementations for the JFC Action interface used in the WFM application. All string values are internationalised.

Author:
Dominik Stoklosa (~osa~)

Field Summary
protected  JMainFrame mainFrame
          Instance of JMainFrame
 
Constructor Summary
WfmObservableAbstractAction(String nameKey, String iconPath, String description)
          Define an Action Object with a specified action name, icon and short description.
 
Method Summary
 String getBundle()
           
 CustomGraph getCurrentGraph()
          Return an instance of the current Scenario Graph for the current Graph Editor.
 org.jgraph.graph.GraphLayoutCache getCurrentGraphLayoutCache()
          Get the current Graph Layout Cache
 CustomMarqueeHandler getMarqueeHandler()
          Get instance of graph marquee handler.
protected abstract  void initObservers()
          Initialises observers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Observer
update
 

Field Detail

mainFrame

protected JMainFrame mainFrame
Instance of JMainFrame

Constructor Detail

WfmObservableAbstractAction

public WfmObservableAbstractAction(String nameKey,
                                   String iconPath,
                                   String description)
Define an Action Object with a specified action name, icon and short description.

Parameters:
nameKey - name of the action
iconPath - the icon for the current action
description - action short description
Method Detail

getBundle

public String getBundle()

getCurrentGraph

public CustomGraph getCurrentGraph()
                            throws GraphException
Return an instance of the current Scenario Graph for the current Graph Editor.

Specified by:
getCurrentGraph in interface IActionGraphDecorator
Returns:
instance of the current Scenario Graph for the current Graph
Throws:
GraphException

getCurrentGraphLayoutCache

public org.jgraph.graph.GraphLayoutCache getCurrentGraphLayoutCache()
                                                             throws GraphException
Get the current Graph Layout Cache

Specified by:
getCurrentGraphLayoutCache in interface IActionGraphDecorator
Returns:
current Graph Layout Cache
Throws:
GraphException

getMarqueeHandler

public CustomMarqueeHandler getMarqueeHandler()
                                       throws GraphException
Get instance of graph marquee handler.

Returns:
instance of graph marquee handler
Throws:
GraphException - thrown when jgraph instance lookup failed

initObservers

protected abstract void initObservers()
Initialises observers


Log4j 0.9d

Copyright 2003 by VLAB Dominik Stoklosa.