com.threerings.parlor.data
Class RangeParameter

java.lang.Object
  extended by com.threerings.parlor.data.Parameter
      extended by com.threerings.parlor.data.RangeParameter
All Implemented Interfaces:
Streamable

public class RangeParameter
extends Parameter

Models a parameter that can contain an integer value in a specified range.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 int maximum
          The maximum value of this parameter.
 int minimum
          The minimum value of this parameter.
 int start
          The starting value for this parameter.
 
Fields inherited from class com.threerings.parlor.data.Parameter
ident, name, tip
 
Constructor Summary
RangeParameter()
           
 
Method Summary
 Object getDefaultValue()
          Returns the default value of this parameter.
 String getLabel()
          Returns the translation key for this parameter's label.
 
Methods inherited from class com.threerings.parlor.data.Parameter
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

minimum

public int minimum
The minimum value of this parameter.


maximum

public int maximum
The maximum value of this parameter.


start

public int start
The starting value for this parameter.

Constructor Detail

RangeParameter

public RangeParameter()
Method Detail

getLabel

public String getLabel()
Description copied from class: Parameter
Returns the translation key for this parameter's label.

Specified by:
getLabel in class Parameter

getDefaultValue

public Object getDefaultValue()
Description copied from class: Parameter
Returns the default value of this parameter.

Specified by:
getDefaultValue in class Parameter