public static class GuiConfigEntries.CategoryEntry extends GuiConfigEntries.ListEntryBase
| Modifier and Type | Field and Description |
|---|---|
protected GuiButtonExt |
btnSelectCategory |
protected GuiScreen |
childScreen |
btnDefault, btnUndoChanges, configElement, defaultHoverChecker, defaultToolTip, drawLabel, isValidValue, mc, name, owningEntryList, owningScreen, toolTip, tooltipHoverChecker, undoHoverChecker, undoToolTip| Constructor and Description |
|---|
CategoryEntry(GuiConfig owningScreen,
GuiConfigEntries owningEntryList,
IConfigElement configElement) |
| Modifier and Type | Method and Description |
|---|---|
protected GuiScreen |
buildChildScreen()
This method is called in the constructor and is used to set the childScreen field.
|
void |
drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
int mouseX,
int mouseY,
boolean isSelected,
float partial) |
void |
drawToolTip(int mouseX,
int mouseY)
Handles drawing any tooltips that apply to this entry.
|
boolean |
enabled()
Is this list entry enabled?
|
java.lang.String |
getCurrentValue()
Gets the current value of this entry.
|
java.lang.String[] |
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.
|
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. |
boolean |
mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
void |
mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY) |
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. |
getConfigElement, getName, onGuiClosed, updatePositionprotected GuiScreen childScreen
protected final GuiButtonExt btnSelectCategory
public CategoryEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList, IConfigElement configElement)
protected GuiScreen buildChildScreen()
public void drawEntry(int slotIndex,
int x,
int y,
int listWidth,
int slotHeight,
int mouseX,
int mouseY,
boolean isSelected,
float partial)
drawEntry in interface GuiListExtended.IGuiListEntrydrawEntry in class GuiConfigEntries.ListEntryBasepublic void drawToolTip(int mouseX,
int mouseY)
GuiConfigEntries.IConfigEntrydrawToolTip in interface GuiConfigEntries.IConfigEntrydrawToolTip in class GuiConfigEntries.ListEntryBasepublic boolean mousePressed(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mousePressed in interface GuiListExtended.IGuiListEntrymousePressed in class GuiConfigEntries.ListEntryBasepublic void mouseReleased(int index,
int x,
int y,
int mouseEvent,
int relativeX,
int relativeY)
mouseReleased in interface GuiListExtended.IGuiListEntrymouseReleased 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 void keyTyped(char eventChar,
int eventKey)
GuiConfigEntries.IConfigEntryGuiTextField.textboxKeyTyped(char, int) 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(int, int, int) for and GuiTextField objects in this entry.mouseClicked in interface GuiConfigEntries.IConfigEntrymouseClicked in class GuiConfigEntries.ListEntryBasepublic boolean saveConfigElement()
GuiConfigEntries.IConfigEntrysaveConfigElement in interface GuiConfigEntries.IConfigEntrysaveConfigElement 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 enabled()
GuiConfigEntries.IConfigEntryenabled in interface GuiConfigEntries.IConfigEntryenabled in class GuiConfigEntries.ListEntryBasepublic int getLabelWidth()
GuiConfigEntries.IConfigEntrygetLabelWidth in interface GuiConfigEntries.IConfigEntrygetLabelWidth in class GuiConfigEntries.ListEntryBasepublic int getEntryRightBound()
GuiConfigEntries.IConfigEntrygetEntryRightBound in interface GuiConfigEntries.IConfigEntrygetEntryRightBound in class GuiConfigEntries.ListEntryBasepublic java.lang.String getCurrentValue()
GuiConfigEntries.IConfigEntrygetCurrentValue in interface GuiConfigEntries.IConfigEntrygetCurrentValue in class GuiConfigEntries.ListEntryBasepublic java.lang.String[] getCurrentValues()
GuiConfigEntries.IConfigEntrygetCurrentValues in interface GuiConfigEntries.IConfigEntrygetCurrentValues in class GuiConfigEntries.ListEntryBase