megamek.common.options
Interface IOptions

All Known Implementing Classes:
AbstractOptions, GameOptions, PilotOptions, Quirks, WeaponQuirks

public interface IOptions

Interface that represents the options container


Method Summary
 boolean booleanOption(java.lang.String name)
          Returns the value of the desired option as the boolean
 float floatOption(java.lang.String name)
          Returns the value of the desired option as the float
 java.util.Enumeration<IOptionGroup> getGroups()
          Returns the Enumeration of the option groups in this options container.
 IOption getOption(java.lang.String name)
          Returns the option by name or null if there is no such option
 IOptionInfo getOptionInfo(java.lang.String name)
          Returns the UI specific data to allow the user to set the option
 java.util.Enumeration<IOption> getOptions()
          Returns the Enumeration of the options in this options container.
 int intOption(java.lang.String name)
          Returns the value of the desired option as the int
 java.lang.String stringOption(java.lang.String name)
          Returns the value of the desired option as the String
 

Method Detail

getGroups

java.util.Enumeration<IOptionGroup> getGroups()
Returns the Enumeration of the option groups in this options container.

Returns:
Enumeration of the IOptionGroup

getOptions

java.util.Enumeration<IOption> getOptions()
Returns the Enumeration of the options in this options container. The order of options is not specified.

Returns:
Enumeration of the IOption

getOption

IOption getOption(java.lang.String name)
Returns the option by name or null if there is no such option

Parameters:
name - option name
Returns:
the option or null if there is no such option

getOptionInfo

IOptionInfo getOptionInfo(java.lang.String name)
Returns the UI specific data to allow the user to set the option

Parameters:
name - option name
Returns:
UI specific data
See Also:
IOptionInfo

booleanOption

boolean booleanOption(java.lang.String name)
Returns the value of the desired option as the boolean

Parameters:
name - option name
Returns:
the value of the desired option as the boolean

intOption

int intOption(java.lang.String name)
Returns the value of the desired option as the int

Parameters:
name - option name
Returns:
the value of the desired option as the int

floatOption

float floatOption(java.lang.String name)
Returns the value of the desired option as the float

Parameters:
name - option name
Returns:
the value of the desired option as the float

stringOption

java.lang.String stringOption(java.lang.String name)
Returns the value of the desired option as the String

Parameters:
name - option name
Returns:
the value of the desired option as the String