T
- public abstract class AbstractEnumeratedProperty<E,T> extends AbstractProperty<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[][] |
choices |
protected java.util.Map<java.lang.String,E> |
choicesByLabel |
protected java.util.Map<E,java.lang.String> |
labelsByChoice |
Constructor and Description |
---|
AbstractEnumeratedProperty(java.lang.String theName,
java.lang.String theDescription,
java.lang.String[] theLabels,
E[] theChoices,
int[] choiceIndices,
float theUIOrder,
boolean isMulti) |
Modifier and Type | Method and Description |
---|---|
protected E |
choiceFrom(java.lang.String label)
Method choiceFrom.
|
java.lang.Object[][] |
choices()
Returns a set of choice tuples if available, returns null if none are
defined.
|
protected java.lang.String |
defaultAsString() |
protected java.lang.String |
nonLegalValueMsgFor(java.lang.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 java.util.Map<java.lang.String,E> choicesByLabel
protected java.util.Map<E,java.lang.String> labelsByChoice
protected java.lang.Object[][] choices
public AbstractEnumeratedProperty(java.lang.String theName, java.lang.String theDescription, java.lang.String[] theLabels, E[] theChoices, int[] choiceIndices, float theUIOrder, boolean isMulti)
theName
- theDescription
- theLabels
- theChoices
- choiceIndices
- theUIOrder
- isMulti
- java.lang.IllegalArgumentException
protected java.lang.String defaultAsString()
defaultAsString
in class AbstractProperty<T>
protected java.lang.String nonLegalValueMsgFor(java.lang.Object value)
value
- Objectprotected E choiceFrom(java.lang.String label)
label
- Stringpublic java.lang.Object[][] choices()
AbstractProperty
choices
in interface PropertyDescriptor<T>
choices
in class AbstractProperty<T>
PropertyDescriptor.choices()
Copyright © 2002-2014 InfoEther. All Rights Reserved.