Package jade.gui
Class AgentTree.Node
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- jade.gui.AgentTree.Node
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
- Direct Known Subclasses:
AgentTree.AgentNode,AgentTree.ContainerNode,AgentTree.LocalPlatformFolderNode,AgentTree.RemotePlatformNode,AgentTree.RemotePlatformsFolderNode,AgentTree.SuperContainer
- Enclosing class:
- AgentTree
public abstract class AgentTree.Node extends DefaultMutableTreeNode
Inner class Node Common base class for all AgentTree nodes- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleangreyOutprotected Iconimgprotected Stringnameprotected Stringownershipprotected Stringstate-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidchangeIcon(String agentState)intcompareTo(AgentTree.Node n)IcongetIcon(String typeAgent)StringgetName()StringgetOwnership()StringgetState()abstract StringgetToolTipText()abstract StringgetType()voidsetName(String name)voidsetOwnership(String ownership)voidsetState(String state)abstract voidsetType(String type)StringtoString()-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Constructor Detail
-
Node
public Node(String name)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getOwnership
public String getOwnership()
-
setOwnership
public void setOwnership(String ownership)
-
changeIcon
public void changeIcon(String agentState)
-
getType
public abstract String getType()
-
setType
public abstract void setType(String type)
-
getToolTipText
public abstract String getToolTipText()
-
toString
public String toString()
- Overrides:
toStringin classDefaultMutableTreeNode
-
compareTo
public int compareTo(AgentTree.Node n)
-
-