Package megamek.common.options
Class AbstractOptionsInfo
java.lang.Object
megamek.common.options.AbstractOptionsInfo
- All Implemented Interfaces:
IOptionsInfo
Abstract base class for Singletons representing Options' static information
such as displayable name, description etc. The derived classes must implement
the Singleton pattern
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getGroupDisplayableName
(String groupName) Returns the user-friendly NLS dependent name suitable for displaying in the options editor dialogs etc.Returns theEnumeration
of theIBasicOptionGroup
getOptionInfo
(String name) Returns theIOptionInfo
for the specified option
-
Field Details
-
GROUP_SUFFIX
- See Also:
-
OPTION_SUFFIX
- See Also:
-
DISPLAYABLE_NAME_SUFFIX
- See Also:
-
DESCRIPTION_SUFFIX
- See Also:
-
-
Constructor Details
-
AbstractOptionsInfo
Protected constructor. It is called only by descendants. The name must be unique because it's used to query the NLS dependent information from the resource bundle.- Parameters:
name
- options info name
-
-
Method Details
-
getOptionInfo
Description copied from interface:IOptionsInfo
Returns theIOptionInfo
for the specified option- Specified by:
getOptionInfo
in interfaceIOptionsInfo
- Parameters:
name
- option name- Returns:
- the
IOptionInfo
for the specified option - See Also:
-
getGroups
Description copied from interface:IOptionsInfo
Returns theEnumeration
of theIBasicOptionGroup
- Specified by:
getGroups
in interfaceIOptionsInfo
- Returns:
- the
Enumeration
of theIBasicOptionGroup
-
getGroupDisplayableName
Returns the user-friendly NLS dependent name suitable for displaying in the options editor dialogs etc.- Parameters:
groupName
- the group name which we want the display format- Returns:
- group displayable name
-