org.safs.jvmagent.agents
Class JListAgent

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

public class JListAgent
extends JChildlessAgent

Since:
Mar 4, 2005 Feb 26, 2006 (Szucs) adding the getSubItemAtIndex( ) method

Field Summary
static java.lang.String objectType
          "JList" (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
JListAgent()
          Constructor for JComboBoxAgent.
 
Method Summary
 java.lang.Object getSubItemAtIndex(java.lang.Object object, int index)
          Return the subitem at the specified index from the given object.
 
Methods inherited from class org.safs.jvmagent.agents.JChildlessAgent
getChildCount, getChildren
 
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, 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
"JList" (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

JListAgent

public JListAgent()
Constructor for JComboBoxAgent.

Method Detail

getSubItemAtIndex

public java.lang.Object getSubItemAtIndex(java.lang.Object object,
                                          int index)
                                   throws java.lang.Exception
Description copied from interface: LocalSubItemsAgent
Return the subitem at the specified index from the given object. This may be a ComboBox item, a List item, or a Tree node, etc... The returned item may be a component object or perhaps a String representing the text of the item. The return type is object specific.

Specified by:
getSubItemAtIndex in interface LocalSubItemsAgent
Overrides:
getSubItemAtIndex in class ObjectAgent
Parameters:
object - reference from which to locate the subitem.
index - of the subitem to retrieve.
Returns:
subitem object or String
Throws:
java.lang.Exception