Class DefaultSelectionProperty

java.lang.Object
com.google.gwt.core.ext.DefaultSelectionProperty
All Implemented Interfaces:
SelectionProperty

public class DefaultSelectionProperty extends Object implements SelectionProperty
Default immutable implementation of SelectionProperty that receives its values in its constructor.
  • Constructor Details

    • DefaultSelectionProperty

      public DefaultSelectionProperty(String currentValue, String fallbackValue, String name, SortedSet<String> possibleValues)
      Construct a selection property.
      Parameters:
      currentValue - current value of this property, must not be null
      fallbackValue - the fallback value to use, must not be null
      name - the name of this property, must not be null
      possibleValues - 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
    • DefaultSelectionProperty

      public DefaultSelectionProperty(String currentValue, String fallbackValue, String name, SortedSet<String> possibleValues, Map<String,? extends List<? extends Set<String>>> fallbackValueMap)
      Construct a selection property.
      Parameters:
      currentValue - current value of this property, must not be null
      fallbackValue - the fallback value to use, must not be null
      name - the name of this property, must not be null
      possibleValues - 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
      fallbackValueMap - the map propertyValue to fallback values
  • Method Details