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 |
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
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, valuesErrorFor
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
type, valueFrom
protected 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
- IllegalArgumentException
protected String defaultAsString()
defaultAsString
in class AbstractProperty<T>
protected String nonLegalValueMsgFor(Object value)
value
- Objectprotected E choiceFrom(String label)
label
- Stringpublic Object[][] choices()
AbstractProperty
choices
in interface PropertyDescriptor<T>
choices
in class AbstractProperty<T>
PropertyDescriptor.choices()
Copyright © 2002-2015 InfoEther. All Rights Reserved.