com.sas.console.plugins
Class AbstractCustomView

java.lang.Object
  |
  +--com.sas.console.plugins.AbstractCustomView
All Implemented Interfaces:
CustomViewInterface, PluginChangeListener
Direct Known Subclasses:

public abstract class AbstractCustomView
extends Object
implements CustomViewInterface

This is a basic implementation of the CustomViewInterface. Example to implement pluginChange() with a table

See Also:
Example to implement pluginChange() with a tree, ConsoleTreeModel#pluginChange()

Constructor Summary
AbstractCustomView()
           
 
Method Summary
abstract  Component getComponent()
          Returns the component to display
abstract  List getContextMenuActions()
          Returns a list of context menu actions.
abstract  NodeInterface getNode()
          Returns the tree node displaying this custom view.
abstract  List getToolBarActions()
          Returns a list of tool bar actions for this custom view.
abstract  void pluginChange(PluginChangeEvent evt)
          Catches events from actions Extending classes need to override this method for updating components in their custom view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCustomView

public AbstractCustomView()
Method Detail

getToolBarActions

public abstract List getToolBarActions()
Returns a list of tool bar actions for this custom view.
Specified by:
getToolBarActions in interface CustomViewInterface
Returns:
The list of tool bar actions.

getContextMenuActions

public abstract List getContextMenuActions()
Returns a list of context menu actions.
Specified by:
getContextMenuActions in interface CustomViewInterface
Returns:
List The list of context menu actions.

getNode

public abstract NodeInterface getNode()
Returns the tree node displaying this custom view.
Specified by:
getNode in interface CustomViewInterface
Returns:
NodeInterface The node displaying this custom view.

getComponent

public abstract Component getComponent()
Returns the component to display
Specified by:
getComponent in interface CustomViewInterface
Returns:
Component The component to display

pluginChange

public abstract void pluginChange(PluginChangeEvent evt)
Catches events from actions Extending classes need to override this method for updating components in their custom view. Views with tables, trees, or text fields dependent upon changeable data will need to override. If the view has no visual components dependent on changeable data, they can ignore the events and do nothing.
Specified by:
pluginChange in interface PluginChangeListener
Parameters:
evt - the PluginChangeEvent




Copyright © 2001-2003 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 15:59:52