public static class GuiConfigEntries.StringEntry extends GuiConfigEntries.ListEntryBase
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
beforeValue |
protected GuiTextField |
textFieldValue |
btnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip| Constructor and Description |
|---|
StringEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement<?> configElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
Tessellator tessellator,
int mouseX,
int mouseY,
boolean isSelected) |
java.lang.Object |
getCurrentValue()
Gets the current value of this entry as a String.
|
java.lang.Object[] |
getCurrentValues()
Gets the current values of this list entry as a String[].
|
boolean |
isChanged()
Has the value of this entry changed?
|
boolean |
isDefault()
Is this entry's value equal to the default value?
|
void |
keyTyped(char eventChar,
int eventKey)
Handles user keystrokes for any GuiTextField objects in this entry.
|
void |
mouseClicked(int x,
int y,
int mouseEvent)
Call
GuiTextField.mouseClicked() for and GuiTextField objects in this entry. |
boolean |
saveConfigElement()
Handles saving any changes that have been made to this entry back to the underlying object.
|
void |
setToDefault()
Sets this entry's value to the default value.
|
void |
undoChanges()
Handles reverting any changes that have occurred to this entry.
|
void |
updateCursorCounter()
Call
GuiTextField.updateCursorCounter() for any GuiTextField objects in this entry. |
drawToolTip, enabled, getConfigElement, getEntryRightBound, getLabelWidth, getName, mousePressed, mouseReleased, onGuiClosedprotected final GuiTextField textFieldValue
protected final java.lang.String beforeValue
public StringEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement<?> configElement)
public void drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
Tessellator tessellator,
int mouseX,
int mouseY,
boolean isSelected)
drawEntry in interface GuiListExtended.IGuiListEntrydrawEntry in class GuiConfigEntries.ListEntryBasepublic void keyTyped(char eventChar,
int eventKey)
GuiConfigEntries.IConfigEntryGuiTextField.keyTyped() for any GuiTextField
objects that should receive the input provided.keyTyped in interface GuiConfigEntries.IConfigEntrykeyTyped in class GuiConfigEntries.ListEntryBasepublic void updateCursorCounter()
GuiConfigEntries.IConfigEntryGuiTextField.updateCursorCounter() for any GuiTextField objects in this entry.updateCursorCounter in interface GuiConfigEntries.IConfigEntryupdateCursorCounter in class GuiConfigEntries.ListEntryBasepublic void mouseClicked(int x,
int y,
int mouseEvent)
GuiConfigEntries.IConfigEntryGuiTextField.mouseClicked() for and GuiTextField objects in this entry.mouseClicked in interface GuiConfigEntries.IConfigEntrymouseClicked in class GuiConfigEntries.ListEntryBasepublic boolean isDefault()
GuiConfigEntries.IConfigEntryisDefault in interface GuiConfigEntries.IConfigEntryisDefault in class GuiConfigEntries.ListEntryBasepublic void setToDefault()
GuiConfigEntries.IConfigEntrysetToDefault in interface GuiConfigEntries.IConfigEntrysetToDefault in class GuiConfigEntries.ListEntryBasepublic boolean isChanged()
GuiConfigEntries.IConfigEntryisChanged in interface GuiConfigEntries.IConfigEntryisChanged in class GuiConfigEntries.ListEntryBasepublic void undoChanges()
GuiConfigEntries.IConfigEntryundoChanges in interface GuiConfigEntries.IConfigEntryundoChanges in class GuiConfigEntries.ListEntryBasepublic boolean saveConfigElement()
GuiConfigEntries.IConfigEntrysaveConfigElement in interface GuiConfigEntries.IConfigEntrysaveConfigElement in class GuiConfigEntries.ListEntryBasepublic java.lang.Object getCurrentValue()
GuiConfigEntries.IConfigEntrygetCurrentValue in interface GuiConfigEntries.IConfigEntrygetCurrentValue in class GuiConfigEntries.ListEntryBasepublic java.lang.Object[] getCurrentValues()
GuiConfigEntries.IConfigEntrygetCurrentValues in interface GuiConfigEntries.IConfigEntrygetCurrentValues in class GuiConfigEntries.ListEntryBase