public static class GuiConfigEntries.IntegerEntry extends GuiConfigEntries.StringEntry
Modifier and Type | Field and Description |
---|---|
protected int |
beforeValue |
textFieldValue
btnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip
Constructor and Description |
---|
IntegerEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
isChanged()
Has the value of this entry changed?
|
void |
keyTyped(char eventChar,
int eventKey)
Handles user keystrokes for any GuiTextField objects in this entry.
|
boolean |
saveConfigElement()
Handles saving any changes that have been made to this entry back to the underlying object.
|
void |
undoChanges()
Handles reverting any changes that have occurred to this entry.
|
drawEntry, getCurrentValue, getCurrentValues, isDefault, mouseClicked, setToDefault, updateCursorCounter
drawToolTip, enabled, getConfigElement, getEntryRightBound, getLabelWidth, getName, mousePressed, mouseReleased, onGuiClosed, setSelected
public IntegerEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
public void keyTyped(char eventChar, int eventKey)
GuiConfigEntries.IConfigEntry
GuiTextField.keyTyped()
for any GuiTextField
objects that should receive the input provided.keyTyped
in interface GuiConfigEntries.IConfigEntry
keyTyped
in class GuiConfigEntries.StringEntry
public boolean isChanged()
GuiConfigEntries.IConfigEntry
isChanged
in interface GuiConfigEntries.IConfigEntry
isChanged
in class GuiConfigEntries.StringEntry
public void undoChanges()
GuiConfigEntries.IConfigEntry
undoChanges
in interface GuiConfigEntries.IConfigEntry
undoChanges
in class GuiConfigEntries.StringEntry
public boolean saveConfigElement()
GuiConfigEntries.IConfigEntry
saveConfigElement
in interface GuiConfigEntries.IConfigEntry
saveConfigElement
in class GuiConfigEntries.StringEntry