|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewFieldPresentationList
The ViewFieldPresentationList
interface corresponds to the list
of values that a field may take.
Normally you obtain such a list by calling
ViewField.getPresentationList()
on a field.
Alternatively a subclass of ViewField
may want to use the
ViewFieldPresentationListFactory
to create one to return.
Method Summary | |
---|---|
int |
getCount()
Gets the number of presentation items defined in the list |
java.lang.String |
getFieldString()
Gets the display string defined for the current field value |
ViewField |
getParent()
Gets the ViewField object to which the presentation list belongs |
java.lang.String |
getPredefinedString(int index)
Gets the predefined display string of a presentation item according to the zero-base index in the list. |
java.lang.Object |
getPredefinedValue(int index)
Gets the predefined value of a presentation item according to the zero-based index in the list. |
void |
refresh()
Refreshes the presentation list from the underlying view. |
int |
setFieldValue(int index)
Sets the current field value as the predefined value of the specified presentation item. |
Method Detail |
---|
int getCount()
java.lang.String getFieldString()
ViewField getParent()
ViewField
to which the list belongsjava.lang.String getPredefinedString(int index)
index
- the zero-based index that identifies the presentation item
java.lang.Object getPredefinedValue(int index)
index
- the zero-based index that identifies the presentation item
void refresh()
java.lang.UnsupportedOperationException
- if the list does not support this.int setFieldValue(int index)
This is equivalent to
getParent().setValue(getPredefinedValue(index),true)
index
- The zero-based index that identifies the presentation item in
the list.
0
on total success10
(OLD_ERRNUM_WARNING)
if the view returned it<0
(a warning) if the view returned itViewException.FieldInvalid
if the view stated
the field id is not valid
ViewException.FieldDisabled
if the view stated that
the field was disabled
ViewException.FieldReadonly
if the view stated that
the field was Read-onlyViewException
- if an error occurred other than those permitted errors listed
in the return values. Call ViewException.getReason()
to
get the error code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |