|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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
RepositoryException
public 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.Collection
size
in interface java.util.List
size
in class java.util.ArrayList
public java.lang.Object get(int pIndex)
get
in interface java.util.List
get
in class java.util.ArrayList
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
isEmpty
in class java.util.ArrayList
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class java.util.ArrayList
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.ArrayList
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.ArrayList
public 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.CollectionAdapter
pIndex
- The index of the element to remove from the collection.
atg.web.collection.CollectionAdapterException
public boolean getIsModified()
getIsModified
in interface atg.web.collection.CollectionAdapter
public void setIsModified(boolean pModified)
setIsModified
in interface atg.web.collection.CollectionAdapter
pModified
- The boolean representing the state.public boolean getSupportsIsModified()
getSupportsIsModified
in interface atg.web.collection.CollectionAdapter
public void setSupportsIsModified(boolean pSupportsIsModified)
setSupportsIsModified
in interface atg.web.collection.CollectionAdapter
pSupportsIsModified
- 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.CollectionAdapter
pIds
- A comma separated list of IDs.pInsertIndex
- The index at which to insert or -1 to append the items.
atg.web.collection.CollectionAdapterException
public java.lang.String getComponentItemRepository()
getComponentItemRepository
in interface atg.web.collection.CollectionAdapter
public 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.CollectionAdapter
pEncodedIndices
- 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 |