Package zombie
Class SandboxOptions.EnumSandboxOption
java.lang.Object
zombie.config.ConfigOption
zombie.config.IntegerConfigOption
zombie.config.EnumConfigOption
zombie.SandboxOptions.EnumSandboxOption
- All Implemented Interfaces:
SandboxOptions.SandboxOption
- Enclosing class:
- SandboxOptions
public static class SandboxOptions.EnumSandboxOption extends EnumConfigOption implements SandboxOptions.SandboxOption
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringshortNameprotected java.lang.StringtableNameprotected java.lang.Stringtranslationprotected java.lang.StringvalueTranslationFields inherited from class zombie.config.IntegerConfigOption
defaultValue, max, min, valueFields inherited from class zombie.config.ConfigOption
name -
Constructor Summary
Constructors Constructor Description EnumSandboxOption(SandboxOptions owner, java.lang.String name, int numValues, int defaultValue) -
Method Summary
Modifier and Type Method Description ConfigOptionasConfigOption()voidfromTable(KahluaTable table)java.lang.StringgetShortName()java.lang.StringgetTableName()java.lang.StringgetTooltip()java.lang.StringgetTranslatedName()java.lang.StringgetValueTranslation()java.lang.StringgetValueTranslationByIndex(int index)SandboxOptions.SandboxOptionsetTranslation(java.lang.String translation)SandboxOptions.EnumSandboxOptionsetValueTranslation(java.lang.String translation)voidtoTable(KahluaTable table)Methods inherited from class zombie.config.EnumConfigOption
getNumValues, getTypeMethods inherited from class zombie.config.IntegerConfigOption
getDefaultValue, getMax, getMin, getValue, getValueAsObject, getValueAsString, isValidString, parse, resetToDefault, setDefaultToCurrentValue, setValue, setValueFromObjectMethods inherited from class zombie.config.ConfigOption
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
translation
protected java.lang.String translation -
tableName
protected java.lang.String tableName -
shortName
protected java.lang.String shortName -
valueTranslation
protected java.lang.String valueTranslation
-
-
Constructor Details
-
EnumSandboxOption
public EnumSandboxOption(SandboxOptions owner, java.lang.String name, int numValues, int defaultValue)
-
-
Method Details
-
asConfigOption
- Specified by:
asConfigOptionin interfaceSandboxOptions.SandboxOption
-
getShortName
public java.lang.String getShortName()- Specified by:
getShortNamein interfaceSandboxOptions.SandboxOption
-
getTableName
public java.lang.String getTableName()- Specified by:
getTableNamein interfaceSandboxOptions.SandboxOption
-
setTranslation
- Specified by:
setTranslationin interfaceSandboxOptions.SandboxOption
-
getTranslatedName
public java.lang.String getTranslatedName()- Specified by:
getTranslatedNamein interfaceSandboxOptions.SandboxOption
-
getTooltip
public java.lang.String getTooltip()- Specified by:
getTooltipin interfaceSandboxOptions.SandboxOption
-
fromTable
- Specified by:
fromTablein interfaceSandboxOptions.SandboxOption
-
toTable
- Specified by:
toTablein interfaceSandboxOptions.SandboxOption
-
setValueTranslation
-
getValueTranslation
public java.lang.String getValueTranslation() -
getValueTranslationByIndex
public java.lang.String getValueTranslationByIndex(int index)
-