org.safs.jvmagent.agents
Class ContainerAgent

java.lang.Object
  extended by org.safs.jvmagent.agents.ObjectAgent
      extended by org.safs.jvmagent.agents.ComponentAgent
          extended by org.safs.jvmagent.agents.ContainerAgent
All Implemented Interfaces:
AlternateAncestorUser, LocalAgent, LocalAgentFactoryUser, LocalSubItemsAgent
Direct Known Subclasses:
ContainerAgent, JComponentAgent, WindowAgent

public class ContainerAgent
extends ComponentAgent


Field Summary
static java.lang.String objectType
          "Container" (Subclasses will override) The generic object type supported by this Agent helper class.
 
Fields inherited from class org.safs.jvmagent.agents.ObjectAgent
alternateAncestor, alternateAncestorClassname, factory
 
Constructor Summary
ContainerAgent()
          Constructor for ContainerAgent.
 
Method Summary
 int getChildCount(java.lang.Object object)
          Return the number of children available in the provided parent.
 java.lang.Object[] getChildren(java.lang.Object object)
          Return an array representing the children of the provided parent object.
 
Methods inherited from class org.safs.jvmagent.agents.ComponentAgent
convertCoords, validateActionCommand, validateComponent
 
Methods inherited from class org.safs.jvmagent.agents.ObjectAgent
getAlternateAncestor, getAlternateAncestorClassname, getAncestorAgent, getCaption, getClassName, getID, getLevel, getLocalAgentFactory, getMatchingPathObject, getName, getProperty, getPropertyNames, getStringData, getSubItemAtIndex, getSuperClassNames, getText, isMatchingPath, isShowing, isValid, process, processAncestor, setAlternateAncestor, setAlternateAncestorClassname, setLocalAgentFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectType

public static final java.lang.String objectType
"Container" (Subclasses will override) The generic object type supported by this Agent helper class. The generic object type is that returned by GuiClassData.getGenericObjectType. Example: Component Button Table etc..

See Also:
GuiClassData.getGenericObjectType(String), Constant Field Values
Constructor Detail

ContainerAgent

public ContainerAgent()
Constructor for ContainerAgent.

Method Detail

getChildCount

public int getChildCount(java.lang.Object object)
Description copied from interface: LocalAgent
Return the number of children available in the provided parent.

Specified by:
getChildCount in interface LocalAgent
Overrides:
getChildCount in class ObjectAgent
Parameters:
object - -- the actual object or component to be checked -- not a pseudo reference.
Returns:
0
Throws:
SAFSActionUnsupportedRuntimeException("ChildCount - Unsupported");
See Also:
LocalAgent.getChildCount(Object)

getChildren

public java.lang.Object[] getChildren(java.lang.Object object)
Description copied from interface: LocalAgent
Return an array representing the children of the provided parent object.

Specified by:
getChildren in interface LocalAgent
Overrides:
getChildren in class ObjectAgent
Parameters:
object - -- the actual object or component to be checked -- not a pseudo reference.
Returns:
new String[0]
Throws:
SAFSActionUnsupportedRuntimeException("Children - Unsupported");
See Also:
LocalAgent.getChildren(Object)