|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
atg.repository.servlet.RepositoryFormList
public class RepositoryFormList
This class is used by the RepositoryFormHandler. It is returned when a property of type array, set or list is requested as a sub-property of the value property (e.g. RFH.value.someListProperty). It has additional sub-properties that give you more flexibility when editing a list.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
RepositoryFormList(RepositoryFormData pFormData,
RepositoryPropertyDescriptor pProperty,
RepositoryItem pItem)
|
|
RepositoryFormList(RepositoryFormData pFormData,
RepositoryPropertyDescriptor pProperty,
RepositoryItem pItem,
java.lang.Object pPropertyValue)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
java.lang.Object |
get(int pIndex)
|
java.lang.String |
getComponentItemRepository()
Get the component repository if this is a collection of repository items. |
java.lang.String |
getComponentItemType()
Get the component item type if this is a collection of repository items. |
java.lang.Object |
getDefaultElementValue(int pIndex)
|
boolean |
getIsModified()
Return the isModified state of the collection. |
protected ApplicationLogging |
getLogger()
Utility method for retrieving an ApplicationLogging object. |
int |
getNumDuplicates()
Return the number of duplicates detected during an insert operation. |
int |
getNumNewValues()
|
RepositoryPropertyDescriptor |
getPropertyDescriptor()
|
java.lang.Object |
getPropertyValue()
Return the stored value of our associated repository item property. |
java.lang.String[] |
getRepositoryIds()
|
boolean[] |
getSkip()
|
boolean |
getSkip(int pIndex)
|
boolean |
getSupportsIsModified()
Used to determine if getIsModified is supported. |
java.lang.String |
getUpdateMode()
|
java.lang.Object |
getValue(int pIndex)
Retrieves the real value we should use for this item. |
java.lang.Object[] |
getValues()
|
int |
insertItems(java.lang.String pIds,
int pInsertIndex)
Insert one or more repository items into the collection. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
removeElement(int pIndex)
Remove the element at a specified index. |
int |
reorder(java.lang.String pEncodedIndices)
Reorder the collection. |
void |
setIsModified(boolean pModified)
Set the isModified state of the collection. |
void |
setNumNewValues(int pNumNewValues)
Sets the property NumNewValues. |
void |
setRepositoryIds(java.lang.String[] pRepositoryIds)
Sets the property RepositoryIds. |
void |
setSkip(boolean[] pSkip)
Sets the property Skip. |
void |
setSkip(int pIndex,
boolean pValue)
Sets a single element after resizing the array if necessary |
void |
setSupportsIsModified(boolean pSupportsIsModified)
Set the state of the supportsIsModified flag. |
void |
setUpdateMode(java.lang.String pUpdateMode)
Sets the property UpdateMode. |
void |
setValues(java.lang.Object[] pValues)
Sets the property Values. |
int |
size()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
void |
updateItemProperties(int pIndex)
Updates the properties for the given item |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clone, ensureCapacity, indexOf, lastIndexOf, remove, remove, removeRange, set, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public RepositoryFormList(RepositoryFormData pFormData,
RepositoryPropertyDescriptor pProperty,
RepositoryItem pItem)
public RepositoryFormList(RepositoryFormData pFormData,
RepositoryPropertyDescriptor pProperty,
RepositoryItem pItem,
java.lang.Object pPropertyValue)
| Method Detail |
|---|
public RepositoryPropertyDescriptor getPropertyDescriptor()
public void setRepositoryIds(java.lang.String[] pRepositoryIds)
pRepositoryIds - new value to setpublic java.lang.String[] getRepositoryIds()
public void setSkip(boolean[] pSkip)
pSkip - new value to setpublic boolean[] getSkip()
public boolean getSkip(int pIndex)
public void setSkip(int pIndex,
boolean pValue)
public void setValues(java.lang.Object[] pValues)
pValues - new value to setpublic java.lang.Object[] getValues()
public java.lang.Object getValue(int pIndex)
public java.lang.Object getPropertyValue()
public void updateItemProperties(int pIndex)
throws RepositoryException
RepositoryExceptionpublic void setNumNewValues(int pNumNewValues)
pNumNewValues - new value to setpublic int getNumNewValues()
public void setUpdateMode(java.lang.String pUpdateMode)
pUpdateMode - new value to setpublic java.lang.String getUpdateMode()
public int getNumDuplicates()
public int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.ArrayListpublic java.lang.Object get(int pIndex)
get in interface java.util.Listget in class java.util.ArrayListpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.ListisEmpty in class java.util.ArrayListpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.ArrayListpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.AbstractListpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.ArrayListpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.ArrayListpublic java.lang.Object getDefaultElementValue(int pIndex)
protected ApplicationLogging getLogger()
public int removeElement(int pIndex)
throws atg.web.collection.CollectionAdapterException
removeElement in interface atg.web.collection.CollectionAdapterpIndex - The index of the element to remove from the collection.
atg.web.collection.CollectionAdapterExceptionpublic boolean getIsModified()
getIsModified in interface atg.web.collection.CollectionAdapterpublic void setIsModified(boolean pModified)
setIsModified in interface atg.web.collection.CollectionAdapterpModified - The boolean representing the state.public boolean getSupportsIsModified()
getSupportsIsModified in interface atg.web.collection.CollectionAdapterpublic void setSupportsIsModified(boolean pSupportsIsModified)
setSupportsIsModified in interface atg.web.collection.CollectionAdapterpSupportsIsModified - Set to true by the grid collection editor.
public int insertItems(java.lang.String pIds,
int pInsertIndex)
throws atg.web.collection.CollectionAdapterException
insertItems in interface atg.web.collection.CollectionAdapterpIds - A comma separated list of IDs.pInsertIndex - The index at which to insert or -1 to append the items.
atg.web.collection.CollectionAdapterExceptionpublic java.lang.String getComponentItemRepository()
getComponentItemRepository in interface atg.web.collection.CollectionAdapterpublic java.lang.String getComponentItemType()
getComponentItemType in interface atg.web.collection.CollectionAdapter
public int reorder(java.lang.String pEncodedIndices)
throws atg.web.collection.CollectionAdapterException
reorder in interface atg.web.collection.CollectionAdapterpEncodedIndices - An encoded string representing order-by-number changes.
atg.web.collection.CollectionAdapterException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||