|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.core.ext.DefaultSelectionProperty
public class DefaultSelectionProperty
Default immutable implementation of SelectionProperty that receives its values in its constructor.
| Constructor Summary | |
|---|---|
DefaultSelectionProperty(java.lang.String currentValue,
java.lang.String fallbackValue,
java.lang.String name,
java.util.SortedSet<java.lang.String> possibleValues)
Construct a selection property. |
|
DefaultSelectionProperty(java.lang.String currentValue,
java.lang.String fallbackValue,
java.lang.String name,
java.util.SortedSet<java.lang.String> possibleValues,
java.util.Map<java.lang.String,? extends java.util.List<? extends java.util.Set<java.lang.String>>> fallbackValueMap)
Construct a selection property. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCurrentValue()
The value for the permutation currently being considered. |
java.lang.String |
getFallbackValue()
Gets the fallback value for the property. |
java.util.List<? extends java.util.Set<java.lang.String>> |
getFallbackValues(java.lang.String value)
Returns the list of fall back values for a given value. |
java.lang.String |
getName()
The name of the property. |
java.util.SortedSet<java.lang.String> |
getPossibleValues()
Returns the possible values for the property in sorted order. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSelectionProperty(java.lang.String currentValue,
java.lang.String fallbackValue,
java.lang.String name,
java.util.SortedSet<java.lang.String> possibleValues)
currentValue - current value of this property, must not be nullfallbackValue - the fallback value to use, must not be nullname - the name of this property, must not be nullpossibleValues - the set of possible values, must not be null and
will be returned to callers, so a copy should be passed into this
ctor if the caller will use this set later
public DefaultSelectionProperty(java.lang.String currentValue,
java.lang.String fallbackValue,
java.lang.String name,
java.util.SortedSet<java.lang.String> possibleValues,
java.util.Map<java.lang.String,? extends java.util.List<? extends java.util.Set<java.lang.String>>> fallbackValueMap)
currentValue - current value of this property, must not be nullfallbackValue - the fallback value to use, must not be nullname - the name of this property, must not be nullpossibleValues - the set of possible values, must not be null and
will be returned to callers, so a copy should be passed into this
ctor if the caller will use this set laterfallbackValueMap - the map propertyValue to fallback values| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getCurrentValue()
SelectionProperty
getCurrentValue in interface SelectionPropertypublic java.lang.String getFallbackValue()
SelectionProperty
getFallbackValue in interface SelectionPropertypublic java.util.List<? extends java.util.Set<java.lang.String>> getFallbackValues(java.lang.String value)
SelectionProperty
getFallbackValues in interface SelectionPropertyvalue - the property value
public java.lang.String getName()
SelectionProperty
getName in interface SelectionPropertypublic java.util.SortedSet<java.lang.String> getPossibleValues()
SelectionProperty
getPossibleValues in interface SelectionPropertypublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||