org.iids.aos.gui.structs
Class Location

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.iids.aos.gui.structs.Struct
          extended by org.iids.aos.gui.structs.Location
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class Location
extends Struct

Author:
rjtimmer
See Also:
Serialized Form

Field Summary
static java.lang.Class<? extends Struct> CHILD_CLASS
           
 
Fields inherited from class org.iids.aos.gui.structs.Struct
children, name, parent
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, EMPTY_ENUMERATION, userObject
 
Constructor Summary
Location(java.lang.String name, World parent, LocationManagerWrapper lmw)
           
 
Method Summary
 AgentScapeID getAgentScapeID()
           
 java.lang.Class<? extends Struct> getChildClass()
          Returns the allowed Class type for child nodes.
 LocationManagerWrapper getService()
           
 boolean refreshImpl()
          Refresh implementation.
 
Methods inherited from class org.iids.aos.gui.structs.Struct
addChild, allowsChildren, automaticChildShutdown, children, compareTo, contains, equals, find, find, findChild, findStructByPath, findStructByQueue, getAllowsChildren, getCanonicalPath, getChildAt, getChildCount, getChildren, getHost, getIndex, getLocation, getName, getParent, getRoot, getSiblings, getTreePath, getWorld, hasLocalService, hasRemoteService, isExpanded, isLeaf, isShuttingDown, refresh, refresh, removeChild, setExpanded, setName, setParent, setReadOnly, setService, shutdown, subtreeHasLocalService, subtreeIsRefreshing, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILD_CLASS

public static final java.lang.Class<? extends Struct> CHILD_CLASS
Constructor Detail

Location

public Location(java.lang.String name,
                World parent,
                LocationManagerWrapper lmw)
Method Detail

getService

public LocationManagerWrapper getService()
Overrides:
getService in class Struct

getChildClass

public java.lang.Class<? extends Struct> getChildClass()
Description copied from class: Struct
Returns the allowed Class type for child nodes. Atttempting to operate the tree with different child nodes may result in an exception (for example @link #addChild).

Specified by:
getChildClass in class Struct

getAgentScapeID

public AgentScapeID getAgentScapeID()

refreshImpl

public boolean refreshImpl()
Description copied from class: Struct
Refresh implementation. Called from the recursive refresh implementation in Struct.refresh(). This makes sure that no duplicate refresh operations are performed (??? is this still needed ??? XXX).

Specified by:
refreshImpl in class Struct
Returns:
true if the tree structure was changed, false otherwise.


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.