zombie.ui
Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
public class UITextBox2
- extends UIElement
- Author:
- Nick
Fields inherited from class zombie.ui.UIElement |
anchorBottom, anchorLeft, anchorRight, anchorTop, bScrollChildren, bScrollWithParent, capture, clickedValue, Controls, defaultDraw, followGameWorld, height, IgnoreLossControl, Parent, playerContext, table, visible, width, x, y |
Constructor Summary |
UITextBox2(UIFont font,
int x,
int y,
int width,
int height,
java.lang.String text,
boolean HasFrame)
|
Methods inherited from class zombie.ui.UIElement |
AddChild, bringToTop, ButtonClicked, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextRight, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTexture, DrawTextureCol, DrawTextureColor, DrawTextureIgnoreOffset, DrawTextureScaled, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawUVSliceTexture, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getParent, getPlayerContext, getScrollChildren, getScrollWithParent, getTable, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isCapture, isDefaultDraw, isFollowGameWorld, isIgnoreLossControl, isVisible, onMouseWheel, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setFollowGameWorld, setHeight, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setScrollChildren, setScrollWithParent, setStencilRect, setTable, setVisible, setWidth, setWidthSilent, setX, setXScroll, setY, setYScroll, suspendStencil |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleHasFocus
public static boolean ConsoleHasFocus
ResizeParent
public boolean ResizeParent
Frame
public UINineGrid Frame
Text
public java.lang.String Text
Centred
public boolean Centred
StandardFrameColour
public Color StandardFrameColour
TextEntryFrameColour
public Color TextEntryFrameColour
TextEntryCursorColour
public Color TextEntryCursorColour
TextEntryCursorColour2
public Color TextEntryCursorColour2
NuetralColour
public Color NuetralColour
NuetralColour2
public Color NuetralColour2
BadColour
public Color BadColour
GoodColour
public Color GoodColour
DoingTextEntry
public boolean DoingTextEntry
TextEntryCursorPos
public int TextEntryCursorPos
TextEntryMaxLength
public int TextEntryMaxLength
IsEditable
public boolean IsEditable
ToSelectionIndex
public int ToSelectionIndex
internalText
public java.lang.String internalText
maskChr
public java.lang.String maskChr
bMask
public boolean bMask
ignoreFirst
public boolean ignoreFirst
UITextBox2
public UITextBox2(UIFont font,
int x,
int y,
int width,
int height,
java.lang.String text,
boolean HasFrame)
ClearHighlights
public void ClearHighlights()
setMasked
public void setMasked(boolean b)
onresize
public void onresize()
- Overrides:
onresize
in class UIElement
render
public void render()
- Overrides:
render
in class UIElement
getText
public java.lang.String getText()
getInternalText
public java.lang.String getInternalText()
update
public void update()
- Overrides:
update
in class UIElement
setEditable
public void setEditable(boolean b)
onMouseUp
public boolean onMouseUp(int x,
int y)
- Overrides:
onMouseUp
in class UIElement
onMouseUpOutside
public void onMouseUpOutside(int x,
int y)
onMouseMove
public boolean onMouseMove(int dx,
int dy)
- Overrides:
onMouseMove
in class UIElement
onMouseMoveOutside
public void onMouseMoveOutside(int dx,
int dy)
- Overrides:
onMouseMoveOutside
in class UIElement
focus
public void focus()
unfocus
public void unfocus()
ignoreFirstInput
public void ignoreFirstInput()
onMouseDown
public boolean onMouseDown(int x,
int y)
- Overrides:
onMouseDown
in class UIElement
updateText
public void updateText()
SetText
public void SetText(java.lang.String text)
clearInput
public void clearInput()
onCommandEntered
public void onCommandEntered()
getMaxTextLength
public int getMaxTextLength()
setMaxTextLength
public void setMaxTextLength(int maxtextLength)
getForceUpperCase
public boolean getForceUpperCase()
setForceUpperCase
public void setForceUpperCase(boolean forceUpperCase)