public class AemList extends Object implements Iterable<AemListItem>
| Constructor and Description |
|---|
AemList() |
| Modifier and Type | Method and Description |
|---|---|
AemListItem |
addItem()
Adds a single item at the end of the list.
|
AemList |
clear()
Clears the list.
|
AemListItem |
getItem(int index)
Returns item from list, selected by index.
|
String |
getItemValue(int index,
String fieldLabel,
Class<?> dialogFieldType)
Gets value of the field identified by label.
|
AemListItem |
getLastItem() |
Iterator<AemListItem> |
iterator() |
AemList |
removeItem(AemListItem item)
Removes the item from the list and waits for 1 second.
|
AemList |
removeItem(int index)
Selects item by index and removes it from the list.
|
AemList |
setItemValue(String fieldValue,
int index,
String fieldLabel,
Class<?> dialogFieldType)
Selects list item by index and sets the value for the field identified by label.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic AemListItem getItem(int index)
index - item indexpublic AemList setItemValue(String fieldValue, int index, String fieldLabel, Class<?> dialogFieldType)
fieldValue - field valueindex - item indexfieldLabel - field labeldialogFieldType - dialog field typepublic String getItemValue(int index, String fieldLabel, Class<?> dialogFieldType)
index - item indexfieldLabel - field labeldialogFieldType - dialog field typpublic AemList removeItem(int index)
Do not use it in loop, because each removal causes creating of new collection with size -1. So it is easy to get IndexOutOfBoundsException.
index - item indexpublic AemList removeItem(AemListItem item)
item - list itempublic AemList clear()
public AemListItem addItem()
public AemListItem getLastItem()
public int size()
public Iterator<AemListItem> iterator()
iterator in interface Iterable<AemListItem>Copyright © 2016–2018 Cognifide Ltd.. All rights reserved.