zombie.ui
Class UITextBox2

java.lang.Object
  extended by zombie.ui.UIElement
      extended by zombie.ui.UITextBox2

public class UITextBox2
extends UIElement

Author:
Nick

Field Summary
 Color BadColour
           
 boolean bMask
           
 boolean Centred
           
static boolean ConsoleHasFocus
           
 boolean DoingTextEntry
           
 UINineGrid Frame
           
 Color GoodColour
           
 boolean ignoreFirst
           
 java.lang.String internalText
           
 boolean IsEditable
           
 java.lang.String maskChr
           
 Color NuetralColour
           
 Color NuetralColour2
           
 boolean ResizeParent
           
 Color StandardFrameColour
           
 java.lang.String Text
           
 Color TextEntryCursorColour
           
 Color TextEntryCursorColour2
           
 int TextEntryCursorPos
           
 Color TextEntryFrameColour
           
 int TextEntryMaxLength
           
 int ToSelectionIndex
           
 
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)
           
 
Method Summary
 void ClearHighlights()
           
 void clearInput()
           
 void focus()
           
 boolean getForceUpperCase()
           
 java.lang.String getInternalText()
           
 int getMaxTextLength()
           
 java.lang.String getText()
           
 void ignoreFirstInput()
           
 void onCommandEntered()
           
 boolean onMouseDown(int x, int y)
           
 boolean onMouseMove(int dx, int dy)
           
 void onMouseMoveOutside(int dx, int dy)
           
 boolean onMouseUp(int x, int y)
           
 void onMouseUpOutside(int x, int y)
           
 void onresize()
           
 void render()
           
 void setEditable(boolean b)
           
 void setForceUpperCase(boolean forceUpperCase)
           
 void setMasked(boolean b)
           
 void setMaxTextLength(int maxtextLength)
           
 void SetText(java.lang.String text)
           
 void unfocus()
           
 void update()
           
 void updateText()
           
 
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
 

Field Detail

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
Constructor Detail

UITextBox2

public UITextBox2(UIFont font,
                  int x,
                  int y,
                  int width,
                  int height,
                  java.lang.String text,
                  boolean HasFrame)
Method Detail

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)