public abstract static class GuiConfigEntries.ButtonEntry extends GuiConfigEntries.ListEntryBase
Modifier and Type | Field and Description |
---|---|
protected GuiButtonExt |
btnValue |
btnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip
Constructor and Description |
---|
ButtonEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement) |
ButtonEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement,
GuiButtonExt button) |
Modifier and Type | Method and Description |
---|---|
void |
drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
int mouseX,
int mouseY,
boolean isSelected) |
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. |
boolean |
mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
Fired when the mouse button is released.
|
void |
updateCursorCounter()
Call
GuiTextField.updateCursorCounter() for any GuiTextField objects in this entry. |
abstract void |
updateValueButtonText()
Updates the displayString of the value button.
|
abstract void |
valueButtonPressed(int slotIndex)
Called when the value button has been clicked.
|
drawToolTip, enabled, getConfigElement, getCurrentValue, getCurrentValues, getEntryRightBound, getLabelWidth, getName, isChanged, isDefault, onGuiClosed, saveConfigElement, setSelected, setToDefault, undoChanges
protected final GuiButtonExt btnValue
public ButtonEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
public ButtonEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement, GuiButtonExt button)
public abstract void updateValueButtonText()
public abstract void valueButtonPressed(int slotIndex)
public void drawEntry(int slotIndex, int x, int y, int listWidth, int slotHeight, int mouseX, int mouseY, boolean isSelected)
drawEntry
in interface GuiListExtended.IGuiListEntry
drawEntry
in class GuiConfigEntries.ListEntryBase
public boolean mousePressed(int index, int x, int y, int mouseEvent, int relativeX, int relativeY)
mousePressed
in interface GuiListExtended.IGuiListEntry
mousePressed
in class GuiConfigEntries.ListEntryBase
public void mouseReleased(int index, int x, int y, int mouseEvent, int relativeX, int relativeY)
mouseReleased
in interface GuiListExtended.IGuiListEntry
mouseReleased
in class GuiConfigEntries.ListEntryBase
public void keyTyped(char eventChar, int eventKey)
GuiConfigEntries.IConfigEntry
GuiTextField.textboxKeyTyped(char, int)
for any GuiTextField
objects that should receive the input provided.keyTyped
in interface GuiConfigEntries.IConfigEntry
keyTyped
in class GuiConfigEntries.ListEntryBase
public void updateCursorCounter()
GuiConfigEntries.IConfigEntry
GuiTextField.updateCursorCounter()
for any GuiTextField objects in this entry.updateCursorCounter
in interface GuiConfigEntries.IConfigEntry
updateCursorCounter
in class GuiConfigEntries.ListEntryBase
public void mouseClicked(int x, int y, int mouseEvent)
GuiConfigEntries.IConfigEntry
GuiTextField.mouseClicked(int, int, int)
for and GuiTextField objects in this entry.mouseClicked
in interface GuiConfigEntries.IConfigEntry
mouseClicked
in class GuiConfigEntries.ListEntryBase