|
| SASMC |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.console.plugins.AbstractNode
The Plug-in's root node appearing in the navigation tree.
| Field Summary | |
protected MutableTreeNode |
m_parent
The parent node of this node. |
protected PluginNavigationInterface |
m_plugin
The plug-in that this node belongs to. |
protected String |
m_strName
The name of the node. |
protected Object |
m_userObject
Optional user object. |
| Constructor Summary | |
AbstractNode(PluginNavigationInterface plugin)
Constructor. |
|
AbstractNode(PluginNavigationInterface plugin,
String strName)
Constructor. |
|
| Method Summary | |
Enumeration |
children()
Gets the children of this node as an enumeration. |
void |
collapsed(TreeExpansionEvent event)
Called after the tree node has collapsed. |
void |
consoleChange(ConsoleChangeEvent event)
Processes ConsoleChangeEvents when the happen. |
void |
drop(Vector dropItems)
Drops an item on this node |
void |
expanded(TreeExpansionEvent event)
Called after the tree node has expanded. |
boolean |
getAllowsChildren()
Tells whether or not this node allows sub nodes. |
TreeNode |
getChildAt(int index)
Get the child node of this node at the given index. |
int |
getChildCount()
Get the number of children that this node has. |
abstract List |
getContextMenuActions()
Returns a list of context menu actions. |
CustomViewInterface |
getCustomView()
Returns the custom/specific view of this node. |
Icon |
getIcon(int size)
Returns the small icon to be used in the tree view. |
int |
getIndex(TreeNode treeNode)
Returns the index of the passed in node. |
abstract TableModelInterface |
getListViewData()
Returns a list of the data to be shown in a list view. |
Root |
getMetadataObject()
Returns the primary metadata object associated with this node. |
String |
getName()
Returns the name of the Node. |
TreeNode |
getParent()
Returns the parent node. |
PluginNavigationInterface |
getPlugin()
Returns the node's plugin. |
List |
getPropertyTabs()
Returns the property tabs that can display a view of this node's properties. |
String |
getStatusLineText()
Returns a string to display on the status line. |
abstract List |
getToolBarActions()
Returns a list of tool bar actions. |
TreePath |
getTreePath()
Returns the tree path of the Node. |
void |
insert(MutableTreeNode child,
int index)
Inserts a child node at this index. |
boolean |
isLeaf()
Indicates whether or not this node has any children. |
abstract void |
refresh()
Performs the refresh defined by the node. |
void |
remove(int index)
Removes the node at this index. |
void |
remove(MutableTreeNode node)
Removes the passed in node. |
void |
removeFromParent()
Removes this node from its parent. |
void |
setName(String strName)
Sets the name of the Node. |
void |
setParent(MutableTreeNode newParent)
Sets this node's parent. |
void |
setUserObject(Object object)
Resets the user object of the receiver to object. |
String |
toString()
Returns a string which represents the name of the node. |
void |
willCollapse(TreeExpansionEvent event)
Called before the tree node has collapsed. |
void |
willExpand(TreeExpansionEvent event)
Called before the tree node is expanded. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PluginNavigationInterface m_plugin
protected String m_strName
protected MutableTreeNode m_parent
protected transient Object m_userObject
| Constructor Detail |
public AbstractNode(PluginNavigationInterface plugin,
String strName)
plugin - The plug-in that this node belongs to.strName - The name of the node.public AbstractNode(PluginNavigationInterface plugin)
plugin - The plug-in that this node belongs to.| Method Detail |
public PluginNavigationInterface getPlugin()
getPlugin in interface NodeInterfacepublic String getName()
getName in interface NodeInterfacepublic void setName(String strName)
strName - The node name.public String toString()
toString in class Objectpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic Enumeration children()
children in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNode
public void insert(MutableTreeNode child,
int index)
insert in interface MutableTreeNodechild - The child node to be inserted.index - The index of the inserted child node.public void remove(int index)
remove in interface MutableTreeNodeindex - The index of the node to be removed.public void remove(MutableTreeNode node)
remove in interface MutableTreeNodenode - The node to remove.public void removeFromParent()
removeFromParent in interface MutableTreeNodepublic void setParent(MutableTreeNode newParent)
setParent in interface NodeInterfacenewParent - The parent to this node.public void setUserObject(Object object)
setUserObject in interface MutableTreeNodeobject - The Object that constitutes this node's user-specified data.public abstract List getContextMenuActions()
getContextMenuActions in interface NodeInterfacepublic TreeNode getParent()
getParent in interface TreeNodepublic abstract TableModelInterface getListViewData()
getListViewData in interface NodeInterfacepublic int getIndex(TreeNode treeNode)
getIndex in interface TreeNodetreeNode - The tree node whose index is to be returned.public CustomViewInterface getCustomView()
getCustomView in interface NodeInterfacepublic abstract List getToolBarActions()
getToolBarActions in interface NodeInterfacepublic String getStatusLineText()
getStatusLineText in interface NodeInterfacepublic List getPropertyTabs()
getPropertyTabs in interface NodeInterfacepublic TreePath getTreePath()
getTreePath in interface NodeInterfacepublic Root getMetadataObject()
getMetadataObject in interface NodeInterfacepublic abstract void refresh()
refresh in interface NodeInterfacepublic Icon getIcon(int size)
getIcon in interface NodeInterfacepublic void drop(Vector dropItems)
drop in interface NodeInterfacedropItems - Vector items to be dropped on this nodepublic void consoleChange(ConsoleChangeEvent event)
consoleChange in interface ConsoleChangeListenercom.sas.console.ConsoleChangeListenerEvent - that occurred.
public void willExpand(TreeExpansionEvent event)
throws ExpandVetoException
willExpand in interface NodeExpansionInterfaceevent - the TreeExpansionEventExpandVetoException - can throw this exception to stop the node from expanding.public void expanded(TreeExpansionEvent event)
expanded in interface NodeExpansionInterfaceevent - the TreeExpansionEvent
public void willCollapse(TreeExpansionEvent event)
throws ExpandVetoException
willCollapse in interface NodeExpansionInterfaceevent - the TreeExpansionEventExpandVetoException - can throw this exception to stop the node from collapsing.public void collapsed(TreeExpansionEvent event)
collapsed in interface NodeExpansionInterfaceevent - the TreeExpansionEvent
|
| SASMC |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||