|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing a Select type of EbiPortletPreference. It provides methods that are useful for working with single valued preferences bound to a set of valid values. All values set for this preference must be one in the list of Allowable Values. If not, the validate() method will throw a EboPortletPreferenceValidationException indicating that the value is not acceptable.
Inner Class Summary | |
static interface |
EbiPortletPreferenceSelect.AllowableValue
Interface for a value object for sets of value/displayValue pairs for an option. |
Fields inherited from interface com.novell.afw.portlet.api.EbiPortletPreference |
TYPE_BOOLEAN,
TYPE_COMPLEX,
TYPE_INTEGER,
TYPE_PASSWORD,
TYPE_SELECT,
TYPE_STRING |
Method Summary | |
void |
addAllowableValue(String value,
String displayValue)
Adds an AllowableValue to the list. |
void |
addAllowableValue(String value,
String displayValue,
int insertIndex)
Inserts an AllowableValue to the list at the index specified. |
List |
getAllowableValues()
Returns an unmodifiable List of EbiPortletPreferenceSelect.AllowableValue objects sorted in the order that they should be displayed in UI. |
void |
removeAllowableValue(int index)
Removes an AllowableValue from the list of values allowed. |
void |
replaceAllowableValue(String value,
String displayValue,
int index)
Replaces the allowable value at the index specified with the value and display value provided. |
Methods implemented from interface com.novell.afw.portlet.api.EbiPortletPreference |
getDataType,
getDescription,
getDisplayableXML,
getDisplayName,
getLocale,
getName,
getValue,
getValue,
getValues,
getValues,
isEncrypted,
isHiddenFromUser,
isMultiValued,
isReadOnly,
isRequired,
setDescription,
setDisplayName,
setHiddenFromUser,
setMultiValued,
setReadOnly,
setRequired,
setValue,
setValues,
validate |
Method Detail |
public List getAllowableValues()
public void addAllowableValue(String value, String displayValue)
value
- The acutal value to which the entered value should be constrained.displayValue
- The value that the UI should use to display the value.public void addAllowableValue(String value, String displayValue, int insertIndex) throws IndexOutOfBoundsException
value
- The acutal value to which the entered value should be constrained.displayValue
- The value that the UI should use to display the value.insertIndex
- The position at which to insert this allowable value.public void removeAllowableValue(int index) throws IndexOutOfBoundsException
index
- the position at which the removal should be done.public void replaceAllowableValue(String value, String displayValue, int index)
value
- String new value to insert.displayValue
- String the new displayValue to insert.index
- int index of the value to replace.
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |