java.lang.Object | +--com.ibm.commerce.pa.beans.DynamicDataBeanImpl | +--com.ibm.commerce.pa.widget.beans.ListDataBean
Field Summary | |
---|---|
protected
java.util.Vector |
list |
Fields inherited from class com.ibm.commerce.pa.beans. DynamicDataBeanImpl |
constraintList,
COPYRIGHT,
defaultWidget,
errorCode,
errorMessage,
interfaceName,
metaData,
pageName,
parent,
parentName,
requestProperties,
scriptName |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
ListDataBean() ListDataBean constructor. |
Method Summary | |
---|---|
void |
addElement(
ElementDataBean ds) Add a new element to the list. |
void |
copy(
DynamicDataBean ds) Copy a databean into this databean. |
ElementDataBean |
getElementAt(int n) This method returns the Element databean at element n |
DsData[] |
getElements() Get the collection of data objects in the list. |
ElementDataBean |
getItem(java.lang.String itemName) This method will return an element given the name. |
java.util.Enumeration |
getItems() This method returns the elements in the list as an enumeration. |
java.util.Vector |
getList() Get the collection of elements in the list. |
int |
getSize() This method returns the number of elements in the list. |
void |
insertElementAt(
ElementDataBean ds, int index) This method will insert an element into the list at the position supplied. |
protected
void |
setList(java.util.Vector newValue) This method was created in VisualAge. |
Methods inherited from class com.ibm.commerce.pa.beans. DynamicDataBeanImpl |
addConstraint,
getCommandInterfaceName,
getConstraintList,
getDefaultWidget,
getErrorCode,
getErrorMessage,
getMetaData,
getPageName,
getParent,
getParentName,
getRequestProperties,
getScriptName,
setCommandInterfaceName,
setConstraintList,
setDefaultWidget,
setErrorCode,
setErrorMessage,
setMetaData,
setPageName,
setParent,
setParentName,
setRequestProperties,
setScriptName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector list
Constructor Detail |
---|
public ListDataBean()
Method Detail |
---|
public void addElement(ElementDataBean ds)
ds
- The databean to add to the list.public void copy(DynamicDataBean ds)
copy
in interface
DynamicDataBean
copy
in class
DynamicDataBeanImpl
ds
- The databean to copy.public ElementDataBean getElementAt(int n)
n
- The location in the list of the element to retrieve.public DsData[] getElements()
public ElementDataBean getItem(java.lang.String itemName)
itemName
- The name of the element to retrieve.public java.util.Enumeration getItems()
public java.util.Vector getList()
public int getSize()
public void insertElementAt(ElementDataBean ds, int index)
ds
- The element to insert.index
- The position in the list where the element should be
inserted.protected void setList(java.util.Vector newValue)
newValue
- java.util.Vector