com.sas.models
Class ActionNode

java.lang.Object
  |
  +--com.sas.models.Node
        |
        +--com.sas.models.ActionNode
All Implemented Interfaces:
ActionInterface, ModelInterface, MutableNodeInterface, MutableSimpleNodeInterface, NodeInterface, ObjectDataInterface, com.sas.beans.PropertyChangeSource, SimpleNodeInterface, StaticNodeStyleInterface, TreeInterface

public class ActionNode
extends Node
implements ActionInterface

ActionNode extends com.sas.models.Node and provides an implementation of com.sas.models.ActionInterface.

See Also:
Serialized Form

Field Summary
protected  StaticStringListInterface actions
          List of actions for the current node.
 
Fields inherited from class com.sas.models.Node
children, defaultNodeStyle, expandedNodeText, externalUpdateSupported, hasChildren, nodeStyle, nodeText, nodeType, objectData, RB_KEY
 
Constructor Summary
ActionNode()
          Constructs an ActionNode.
ActionNode(String nodeText)
          Constructs an ActionNode.
ActionNode(String nodeText, String nodeType)
          Constructs an ActionNode.
 
Method Summary
 void addActionListener(ActionListener listener)
          Adds the specified action listener to receive action events from this node.
 Object getActions()
          Returns the actions that can be performed.
 void performAction(Object action)
          Directs an object to perform an action.
protected  void processActionEvent(ActionEvent e)
          Processes action events occurring on this node by dispatching them to any registered ActionListener objects.
 void removeActionListener(ActionListener listener)
          Removes the specified action listener so it no longer receives action events from this node.
 void setActionList(StaticStringListInterface actionList)
          Sets the list of actions that can be performed on the current node.
 void setActionList(String[] actionList)
          Sets the list of actions that can be performed on the current node.
 
Methods inherited from class com.sas.models.Node
addItems, addNodeChild, addNodeChild, addPropertyChangeListener, attachView, countNodeChildren, detachView, firePropertyChange, firePropertyChange, getDefaultNodeStyle, getIndex, getNodeChild, getNodeChildCount, getNodeChildren, getNodeChildren, getNodeExpandedText, getNodeStyle, getNodeText, getNodeType, getNodeTypes, getObjectData, getRoot, isExternalUpdateSupported, isLeafNode, moveNodeChild, notifyPropertyChange, removeAllNodeChildren, removeNodeChild, removeNodeChild, removePropertyChangeListener, setDefaultNodeStyle, setExternalUpdateSupported, setNodeChildren, setNodeExpandedText, setNodeStyle, setNodeText, setNodeType, setObjectData, sort, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actions

protected StaticStringListInterface actions
List of actions for the current node.
Constructor Detail

ActionNode

public ActionNode()
Constructs an ActionNode.

ActionNode

public ActionNode(String nodeText)
Constructs an ActionNode. The nodeText property is initialized with the the specified text string.
Parameters:
nodeText - the text to set as nodeText

ActionNode

public ActionNode(String nodeText,
                  String nodeType)
Constructs an ActionNode. The nodeText and nodeType properties are initialized with the specified text and type strings.
Parameters:
nodeText - the text to set as nodeText
type - the type to set as nodeType
Method Detail

setActionList

public void setActionList(StaticStringListInterface actionList)
Sets the list of actions that can be performed on the current node.
Parameters:
actionList - string list to set as the actions

setActionList

public void setActionList(String[] actionList)
Sets the list of actions that can be performed on the current node.
Parameters:
actionList - the string to set as the actions

getActions

public Object getActions()
Returns the actions that can be performed. An implementation can return null to indicate that there are no actions for the current object.
Specified by:
getActions in interface ActionInterface
Returns:
a list of the actions that can be performed.

performAction

public void performAction(Object action)
Directs an object to perform an action.
Specified by:
performAction in interface ActionInterface
Parameters:
action - the action to be performed

addActionListener

public void addActionListener(ActionListener listener)
Adds the specified action listener to receive action events from this node.
Parameters:
listener - the action listener to add

removeActionListener

public void removeActionListener(ActionListener listener)
Removes the specified action listener so it no longer receives action events from this node.
Parameters:
listener - the action listener to remove

processActionEvent

protected void processActionEvent(ActionEvent e)
Processes action events occurring on this node by dispatching them to any registered ActionListener objects. NOTE: This method will not be called unless action events are enabled for this component; this happens when one of the following occurs: a) An ActionListener object is registered via addActionListener() b) Action events are enabled via enableEvents()
Parameters:
e - the action event




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:03:35