GraphLab Project

graphlab.plugins.graphgenerator.core.extension
Class GraphGeneratorExtensionAction

java.lang.Object
  extended by graphlab.platform.core.AbstractAction
      extended by graphlab.ui.AbstractExtensionAction<GraphGeneratorExtension>
          extended by graphlab.plugins.graphgenerator.core.extension.GraphGeneratorExtensionAction
All Implemented Interfaces:
Action, Listener, java.awt.event.ActionListener, java.util.EventListener

public class GraphGeneratorExtensionAction
extends AbstractExtensionAction<GraphGeneratorExtension>

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.ui.AbstractExtensionAction
extraButton, menuItem, parentMenu, target
 
Fields inherited from class graphlab.platform.core.AbstractAction
blackboard
 
Constructor Summary
GraphGeneratorExtensionAction(BlackBoard bb, GraphGeneratorExtension sp)
           
 
Method Summary
 java.lang.String getParentMenuName()
          returns the menu name that the menuitem of this action is its child
 void performExtension()
           
 GraphModel performExtensionInCommandLine()
          inorder if you created a new type of extension and for that extension you want to do some thing different when it is called on commandline (i.e.
 
Methods inherited from class graphlab.ui.AbstractExtensionAction
actionPerformed, createExtensionCommandsForCommandLine, createMenuItem, getMenuNamePrefix, getMenuPlace, getParentMenu, getTarget, isInsertExtraButtonToMenuItem, performAction, removeCreatedUIComponents, testAndSetParameters
 
Methods inherited from class graphlab.platform.core.AbstractAction
disable, enable, getBlackBoard, getLastListenedEventKey, isEnable, keyChanged, listen4Event, setBlackBoard, unListenEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphGeneratorExtensionAction

public GraphGeneratorExtensionAction(BlackBoard bb,
                                     GraphGeneratorExtension sp)
Method Detail

getParentMenuName

public java.lang.String getParentMenuName()
Description copied from class: AbstractExtensionAction
returns the menu name that the menuitem of this action is its child

Specified by:
getParentMenuName in class AbstractExtensionAction<GraphGeneratorExtension>

performExtensionInCommandLine

public GraphModel performExtensionInCommandLine()
Description copied from class: AbstractExtensionAction
inorder if you created a new type of extension and for that extension you want to do some thing different when it is called on commandline (i.e. in normal state it uses some GUI functionalities and you want to avoid them) you can override this method and do what you want, which will be called whenever your extension called from commandline for an example see GraphGeneratorExtensionAction

Overrides:
performExtensionInCommandLine in class AbstractExtensionAction<GraphGeneratorExtension>
See Also:
GraphGeneratorExtensionAction

performExtension

public void performExtension()
Specified by:
performExtension in class AbstractExtensionAction<GraphGeneratorExtension>

GraphLab Project