|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--com.ibm.eNetwork.ECL.ECLFieldList
ECLFieldList contains a collection of the fields in the presentation space. It provides methods to iterate through the fields, find fields based on location, and find fields containing a given string. Each element of the collection is an instance of ECLField.
ECLFieldList can only be accessed through ECLPS using the GetFieldList() method. ECLFieldList is a static view of the presentation space and does not reflect changes made to the presentation space after its construction. The field list can be updated with a new snapshot of the presentation space using the Refresh() method.
Note:All ECLField objects returned by methods in this class are invalidated when Refresh() is called.
ECLField
,
ECLPS
, Serialized FormMethod Summary | |
---|---|
ECLField |
FindField(int pos)
Finds the field which contains the specified linear position. |
ECLField |
FindField(int row,
int col)
Finds the field which contains the specified row and column coordinate. |
ECLField |
FindField(java.lang.String text,
int direction)
Finds the field which contains the given string. |
ECLField |
FindField(java.lang.String text,
int pos,
int direction)
Finds the field which contains the given string. |
ECLField |
FindField(java.lang.String text,
int row,
int col,
int direction)
Finds the field which contains the given string. |
int |
GetFieldCount()
Gets the number of fields in the field list. |
ECLField |
GetFirstField()
Returns the first field in the field list. |
ECLField |
GetFirstField(int attr)
Gets the first field in the field list which matches the specified attributes. |
ECLField |
GetNextField(ECLField afterThis)
Returns the next field in the field list after the given field. |
ECLField |
GetNextField(ECLField afterThis,
int attr)
Returns the next field in the field list with the specified attributes. |
void |
Refresh()
Refreshes the field list with a snapshot of the fields in the current presentation space. |
void |
Refresh(int planes)
Refreshes the field list with a snapshot of the fields in the current presentation space. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Method Detail |
public void Refresh() throws ECLErr
The new ECLField objects will contain only TEXT plane information.
ECLErr
- Thrown if the plane parameter is not valid or
error occurred building the field list.Refresh(int)
public void Refresh(int planes) throws ECLErr
The new ECLField objects will only contain information about the presentation space planes specified, except for the text and attribute planes which are always available.
planes
- The planes to refresh. The valid values follow
and can be ORed together:
ECLErr
- Thrown if the planes parameter is not valid or
error occurred building the field list.public int GetFieldCount()
public ECLField GetFirstField(int attr)
attr
- The attributes of the desired field. The valid
values follow:
GetNextField(com.ibm.eNetwork.ECL.ECLField, int)
public ECLField GetFirstField()
GetFirstField(int)
,
GetNextField(com.ibm.eNetwork.ECL.ECLField)
,
GetNextField(com.ibm.eNetwork.ECL.ECLField, int)
public ECLField GetNextField(ECLField afterThis, int attr)
afterThis
- The field after which the search will begin.attr
- The attributes of the desired field. Use one of
the following values:
GetFirstField()
,
GetFirstField(int)
,
GetNextField(com.ibm.eNetwork.ECL.ECLField)
public ECLField GetNextField(ECLField afterThis)
afterThis
- The field after which the search will begin.GetFirstField()
,
GetFirstField(int)
,
GetNextField(com.ibm.eNetwork.ECL.ECLField, int)
public ECLField FindField(int pos) throws ECLErr
pos
- Linear positionECLErr
- Thrown if the given position is out of range.FindField(int, int)
public ECLField FindField(int row, int col) throws ECLErr
row
- Row of the field to findcol
- Column of the field to findECLErr
- Thrown if the given position is out of range.FindField(int)
public ECLField FindField(java.lang.String text, int direction) throws ECLErr
If the search string spans more than one field, the field containing the starting position of the string is returned.
text
- String to search for.direction
- Direction to search, either SEARCH_FORWARD or
SEARCH_BACKWARDECLErr
- Thrown if the given position is out of range.FindField(java.lang.String, int, int)
,
FindField(java.lang.String, int, int, int)
public ECLField FindField(java.lang.String text, int pos, int direction) throws ECLErr
If the search string spans more than one field, the field containing the starting position of the string is returned.
text
- String to search for.pos
- Starting position for the search.direction
- Direction to search, either SEARCH_FORWARD or
SEARCH_BACKWARDECLErr
- Thrown if the given position is out of range.FindField(java.lang.String, int)
,
FindField(java.lang.String, int, int, int)
public ECLField FindField(java.lang.String text, int row, int col, int direction) throws ECLErr
If the search string spans more than one field, the field containing the starting position of the string is returned.
text
- String to search for.row
- Starting row for the search.col
- Starting column for the search.direction
- Direction to search, either SEARCH_FORWARD or
SEARCH_BACKWARDECLErr
- Thrown if the given position is out of range.FindField(java.lang.String, int)
,
FindField(java.lang.String, int, int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |