T - public abstract class AbstractEnumeratedProperty<E,T> extends AbstractProperty<T>
| Modifier and Type | Field and Description |
|---|---|
protected Object[][] |
choices |
protected Map<String,E> |
choicesByLabel |
protected Map<E,String> |
labelsByChoice |
| Constructor and Description |
|---|
AbstractEnumeratedProperty(String theName,
String theDescription,
String[] theLabels,
E[] theChoices,
int[] choiceIndices,
float theUIOrder,
boolean isMulti) |
| Modifier and Type | Method and Description |
|---|---|
protected E |
choiceFrom(String label)
Method choiceFrom.
|
Object[][] |
choices()
Returns a set of choice tuples if available, returns null if none are
defined.
|
protected String |
defaultAsString() |
protected String |
nonLegalValueMsgFor(Object value)
Method nonLegalValueMsgFor.
|
addAttributesTo, areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valueErrorFor, valuesErrorForclone, finalize, getClass, notify, notifyAll, wait, wait, waittype, valueFromprotected Object[][] choices
public AbstractEnumeratedProperty(String theName, String theDescription, String[] theLabels, E[] theChoices, int[] choiceIndices, float theUIOrder, boolean isMulti)
theName - theDescription - theLabels - theChoices - choiceIndices - theUIOrder - isMulti - IllegalArgumentExceptionprotected String defaultAsString()
defaultAsString in class AbstractProperty<T>protected String nonLegalValueMsgFor(Object value)
value - Objectprotected E choiceFrom(String label)
label - Stringpublic Object[][] choices()
AbstractPropertychoices in interface PropertyDescriptor<T>choices in class AbstractProperty<T>PropertyDescriptor.choices()Copyright © 2002-2014 InfoEther. All Rights Reserved.