|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.accpac.sm.ViewFields
@ThreadSafe public final class ViewFields
Represents the collection of fields in an Accpac view
| Method Summary | |
|---|---|
ViewField |
get(int fieldID)
Gets the field with the given ID |
ViewField |
get(java.lang.String name)
Gets the field with the given name |
int |
getCount()
Gets the number of fields exposed by the view |
ViewField |
getFieldByIndex(int index)
Gets the field based on the zero-based index within the
collection. |
View |
getParent()
Returns the View instance that created the current instance |
java.util.Iterator<ViewField> |
iterator()
Gets an iterator on the collection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getCount()
Consider instead simply iterating over the collection:
for (ViewField field : myView.getViewFields())
{
process(field);
}
getFieldByIndex(int),
iterator()public ViewField get(int fieldID)
field with the given ID
fieldID - the field ID
field corresponding to the id
java.lang.IndexOutOfBoundsException - if there is no field with the given id.get(String),
getFieldByIndex(int)public ViewField get(java.lang.String name)
field with the given name
name - the field name
field corresponding to the name
java.lang.IndexOutOfBoundsException - if there is no field with the given name.public ViewField getFieldByIndex(int index)
field based on the zero-based index within the
collection. Consider instead simply iterating over the collection:
for (ViewField field : myView.getViewFields())
{
process(field);
}
index - the zero-based index within the collection
field corresponding to the index
java.lang.IndexOutOfBoundsException - if there is no field with the given index.getCount()public java.util.Iterator<ViewField> iterator()
iterator in interface java.lang.Iterable<ViewField>Iterator on the fields in
the collection.public View getParent()
View instance that created the current instance
View instance that created the current instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||