public static interface GuiConfigEntries.IConfigEntry extends GuiListExtended.IGuiListEntry
Modifier and Type | Method and Description |
---|---|
void |
drawToolTip(int mouseX,
int mouseY)
Handles drawing any tooltips that apply to this entry.
|
boolean |
enabled()
Is this list entry enabled?
|
IConfigElement |
getConfigElement()
Gets the IConfigElement object owned by this entry.
|
java.lang.Object |
getCurrentValue()
Gets the current value of this entry.
|
java.lang.Object[] |
getCurrentValues()
Gets the current values of this list entry.
|
int |
getEntryRightBound()
Gets this entry's right-hand x boundary.
|
int |
getLabelWidth()
Gets this entry's label width.
|
java.lang.String |
getName()
Gets the name of the ConfigElement owned by this entry.
|
boolean |
isChanged()
Has the value of this entry changed?
|
boolean |
isDefault()
Is this entry's value equal to the default value? Generally true should be returned if this entry is not a property or category
entry.
|
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(int, int, int) for and GuiTextField objects in this entry. |
void |
onGuiClosed()
This method is called when the parent GUI is closed.
|
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. |
drawEntry, mousePressed, mouseReleased, updatePosition
IConfigElement getConfigElement()
java.lang.String getName()
java.lang.Object getCurrentValue()
java.lang.Object[] getCurrentValues()
boolean enabled()
void keyTyped(char eventChar, int eventKey)
GuiTextField.textboxKeyTyped(char, int)
for any GuiTextField
objects that should receive the input provided.void updateCursorCounter()
GuiTextField.updateCursorCounter()
for any GuiTextField objects in this entry.void mouseClicked(int x, int y, int mouseEvent)
GuiTextField.mouseClicked(int, int, int)
for and GuiTextField objects in this entry.boolean isDefault()
void setToDefault()
void undoChanges()
boolean isChanged()
boolean saveConfigElement()
void drawToolTip(int mouseX, int mouseY)
int getLabelWidth()
int getEntryRightBound()
void onGuiClosed()