|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.Gui
net.minecraft.src.GuiButton
moapi.gui.TextInputField
public abstract class TextInputField
A part of the inheritance chain for buttons for text input fields to be group identified
Field Summary | |
---|---|
protected net.minecraft.src.FontRenderer |
fontRenderer
For rendering text |
protected boolean |
global
Whether to use global mode or not |
protected GuiController |
gui
The GUI for controlling MOAPI output |
protected ModOption |
option
Option relevant to this getText() field |
protected net.minecraft.src.GuiScreen |
parentGuiScreen
For tabbing functionality |
Fields inherited from class net.minecraft.src.GuiButton |
---|
displayString, drawButton, enabled, height, id, width, xPosition, yPosition |
Fields inherited from class net.minecraft.src.Gui |
---|
zLevel |
Constructor Summary | |
---|---|
TextInputField(int i,
int j,
int k,
net.minecraft.src.FontRenderer r,
GuiController gui)
To interface child with parent |
Method Summary | |
---|---|
void |
drawButton(net.minecraft.client.Minecraft minecraft,
int i,
int j)
Draw a textarea with a label inside and an editable text space at i,j |
protected int |
getCursorCounter()
Get the current cursor counter value |
ModOption |
getOption()
Get the option related to this getText() field |
boolean |
isFocused()
Check whether this text input field is focused or not |
void |
setFocused(boolean flag)
Set whether the textarea is in focus or not |
abstract void |
textboxKeyTyped(char c,
int i)
Method for handling keyboard input |
void |
updateCursorCounter()
Update the cursor counter value |
Methods inherited from class net.minecraft.src.GuiButton |
---|
getHoverState, mouseDragged, mousePressed, mouseReleased |
Methods inherited from class net.minecraft.src.Gui |
---|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawVerticalLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ModOption option
protected boolean global
protected final net.minecraft.src.FontRenderer fontRenderer
protected net.minecraft.src.GuiScreen parentGuiScreen
protected GuiController gui
Constructor Detail |
---|
public TextInputField(int i, int j, int k, net.minecraft.src.FontRenderer r, GuiController gui)
Method Detail |
---|
public abstract void textboxKeyTyped(char c, int i)
c
- Character typesi
- Integer representation of cpublic void drawButton(net.minecraft.client.Minecraft minecraft, int i, int j)
drawButton
in class net.minecraft.src.GuiButton
protected int getCursorCounter()
public void updateCursorCounter()
public void setFocused(boolean flag)
flag
- True when focusedpublic boolean isFocused()
public ModOption getOption()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |