Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
- All Implemented Interfaces:
UIElementInterface
,UITextEntryInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
boolean
static boolean
int
boolean
boolean
boolean
boolean
boolean
int
int
gnu.trove.list.array.TIntArrayList
int
Fields inherited from class zombie.ui.UIElement
alwaysBack, alwaysOnTop, anchorBottom, anchorLeft, anchorRight, anchorTop, bScrollChildren, bScrollWithParent, capture, clickedValue, Controls, defaultDraw, followGameWorld, height, IgnoreLossControl, maxDrawHeight, Parent, playerContext, table, visible, width, x, y
-
Constructor Summary
ConstructorsConstructorDescriptionUITextBox2
(UIFont _font, int x, int y, int width, int height, String text, boolean _HasFrame) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
focus()
int
int
boolean
getFrame()
float
int
getInset()
int
int
getText()
void
boolean
boolean
boolean
boolean
boolean
isMasked()
boolean
boolean
boolean
boolean
boolean
void
void
void
void
void
onKeyEnd()
void
void
void
void
void
onKeyUp()
void
onMouseDown
(double x, double y) onMouseMove
(double dx, double dy) void
onMouseMoveOutside
(double dx, double dy) onMouseUp
(double x, double y) void
onMouseUpOutside
(double x, double y) void
onOtherKey
(int key) void
void
void
onresize()
void
void
void
putCharacter
(char char0) void
render()
void
void
void
setCentreVertically
(boolean boolean0) void
setClearButton
(boolean hasButton) void
setCursorLine
(int line) void
setCursorPos
(int charIndex) void
setDoingTextEntry
(boolean boolean0) void
setEditable
(boolean b) void
void
setForceUpperCase
(boolean _forceUpperCase) void
setFrameAlpha
(float alpha) void
setHasFrame
(boolean hasFrame) void
setIgnoreFirst
(boolean boolean0) void
setMasked
(boolean b) void
setMaxLines
(int _maxLines) void
setMaxTextLength
(int maxtextLength) void
setMultipleLine
(boolean multiple) void
setOnlyNumbers
(boolean _onlyNumbers) void
setOnlyText
(boolean boolean0) void
setSelectable
(boolean b) void
setSelectingRange
(boolean boolean0) void
void
setTextColor
(ColorInfo newColor) void
setTextRGBA
(float float0, float float1, float float2, float float3) void
setWrapLines
(boolean boolean0) int
toDisplayLine
(int textOffset) void
unfocus()
void
update()
void
Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawItemIcon, DrawLine, DrawScriptItemIcon, DrawSubTextureRGBA, DrawText, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIcon, DrawTextureIconMask, DrawTextureIgnoreOffset, DrawTexturePercentage, DrawTexturePercentageBottomUp, DrawTextureScaled, DrawTextureScaledAspect, DrawTextureScaledAspect2, DrawTextureScaledAspect3, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawTextureTiled, DrawTextureTiledX, DrawTextureTiledY, DrawTextureTiledYOffset, DrawUVSliceTexture, EndOutline, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getRenderThisPlayerOnly, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAlwaysOnTop, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isBackMost, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isForceCursorVisible, isIgnoreLossControl, isKeyConsumed, isMouseOver, isOverElement, isPointOver, isReallyVisible, isVisible, isWantExtraMouseEvents, isWantKeyEvents, onConsumeKeyPress, onConsumeKeyRelease, onConsumeKeyRepeat, onConsumeMouseButtonDown, onConsumeMouseButtonUp, onConsumeMouseMove, onConsumeMouseWheel, onExtendMouseMoveOutside, onKeyPress, onKeyRelease, onKeyRepeat, onMouseButtonDown, onMouseButtonDownOutside, onMouseButtonUpOutside, onMouseWheel, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setForceCursorVisible, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setRenderClippedChildren, setRenderThisPlayerOnly, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWantExtraMouseEvents, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, StartOutline, suspendStencil, tryGetTableValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.ui.UITextEntryInterface
getUIName
-
Field Details
-
ConsoleHasFocus
public static boolean ConsoleHasFocus -
Lines
-
Frame
-
Text
-
Centred
public boolean Centred -
CentreVertically
public boolean CentreVertically -
StandardFrameColour
-
TextEntryFrameColour
-
TextEntryCursorColour
-
TextEntryCursorColour2
-
NuetralColour
-
NuetralColour2
-
BadColour
-
GoodColour
-
DoingTextEntry
public boolean DoingTextEntry -
TextEntryCursorPos
public int TextEntryCursorPos -
TextEntryMaxLength
public int TextEntryMaxLength -
IsEditable
public boolean IsEditable -
IsSelectable
public boolean IsSelectable -
CursorLine
public int CursorLine -
multipleLine
public boolean multipleLine -
TextOffsetOfLineStart
public gnu.trove.list.array.TIntArrayList TextOffsetOfLineStart -
ToSelectionIndex
public int ToSelectionIndex -
internalText
-
maskChr
-
bMask
public boolean bMask -
ignoreFirst
public boolean ignoreFirst -
bAlwaysPaginate
public boolean bAlwaysPaginate -
bTextChanged
public boolean bTextChanged
-
-
Constructor Details
-
UITextBox2
-
-
Method Details
-
setFont
-
ClearHighlights
public void ClearHighlights() -
setMasked
public void setMasked(boolean b) -
isMasked
public boolean isMasked() -
onresize
-
render
public void render()- Specified by:
render
in interfaceUIElementInterface
- Overrides:
render
in classUIElement
-
getFrameAlpha
public float getFrameAlpha() -
setFrameAlpha
public void setFrameAlpha(float alpha) -
setTextColor
-
setTextRGBA
public void setTextRGBA(float float0, float float1, float float2, float float3) -
getText
-
getInternalText
-
update
public void update()- Specified by:
update
in interfaceUIElementInterface
- Overrides:
update
in classUIElement
-
getInset
public int getInset() -
setEditable
public void setEditable(boolean b) -
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceUITextEntryInterface
-
setSelectable
public void setSelectable(boolean b) -
isSelectable
public boolean isSelectable() -
onMouseUp
-
onMouseUpOutside
public void onMouseUpOutside(double x, double y) - Overrides:
onMouseUpOutside
in classUIElement
-
onMouseMove
- Overrides:
onMouseMove
in classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy) - Overrides:
onMouseMoveOutside
in classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
- Overrides:
onMouseDown
in classUIElement
-
updateText
public void updateText() -
SetText
-
clearInput
public void clearInput() -
onPressUp
public void onPressUp() -
onPressDown
public void onPressDown() -
onCommandEntered
public void onCommandEntered() -
onTextChange
public void onTextChange() -
onOtherKey
public void onOtherKey(int key) - Specified by:
onOtherKey
in interfaceUITextEntryInterface
-
onLostFocus
public void onLostFocus() -
getMaxTextLength
public int getMaxTextLength() -
setMaxTextLength
public void setMaxTextLength(int maxtextLength) -
getForceUpperCase
public boolean getForceUpperCase() -
setForceUpperCase
public void setForceUpperCase(boolean _forceUpperCase) -
setHasFrame
public void setHasFrame(boolean hasFrame) -
setClearButton
public void setClearButton(boolean hasButton) -
toDisplayLine
public int toDisplayLine(int textOffset) -
setMultipleLine
public void setMultipleLine(boolean multiple) -
isMultipleLine
public boolean isMultipleLine() -
getCursorLine
public int getCursorLine() -
setCursorLine
public void setCursorLine(int line) -
getCursorPos
public int getCursorPos() -
setCursorPos
public void setCursorPos(int charIndex) -
getMaxLines
public int getMaxLines() -
setMaxLines
public void setMaxLines(int _maxLines) -
isFocused
public boolean isFocused() -
isOnlyNumbers
public boolean isOnlyNumbers()- Specified by:
isOnlyNumbers
in interfaceUITextEntryInterface
-
setOnlyNumbers
public void setOnlyNumbers(boolean _onlyNumbers) -
isOnlyText
public boolean isOnlyText()- Specified by:
isOnlyText
in interfaceUITextEntryInterface
-
setOnlyText
public void setOnlyText(boolean boolean0) -
resetBlink
public void resetBlink() -
selectAll
public void selectAll()- Specified by:
selectAll
in interfaceUITextEntryInterface
-
isDoingTextEntry
public boolean isDoingTextEntry()- Specified by:
isDoingTextEntry
in interfaceUITextEntryInterface
-
setDoingTextEntry
public void setDoingTextEntry(boolean boolean0) - Specified by:
setDoingTextEntry
in interfaceUITextEntryInterface
-
getFrame
- Specified by:
getFrame
in interfaceUITextEntryInterface
-
isIgnoreFirst
public boolean isIgnoreFirst()- Specified by:
isIgnoreFirst
in interfaceUITextEntryInterface
-
setIgnoreFirst
public void setIgnoreFirst(boolean boolean0) - Specified by:
setIgnoreFirst
in interfaceUITextEntryInterface
-
setSelectingRange
public void setSelectingRange(boolean boolean0) - Specified by:
setSelectingRange
in interfaceUITextEntryInterface
-
getStandardFrameColour
- Specified by:
getStandardFrameColour
in interfaceUITextEntryInterface
-
onKeyEnter
public void onKeyEnter()- Specified by:
onKeyEnter
in interfaceUITextEntryInterface
-
onKeyHome
public void onKeyHome()- Specified by:
onKeyHome
in interfaceUITextEntryInterface
-
onKeyEnd
public void onKeyEnd()- Specified by:
onKeyEnd
in interfaceUITextEntryInterface
-
onKeyUp
public void onKeyUp()- Specified by:
onKeyUp
in interfaceUITextEntryInterface
-
onKeyDown
public void onKeyDown()- Specified by:
onKeyDown
in interfaceUITextEntryInterface
-
onKeyLeft
public void onKeyLeft()- Specified by:
onKeyLeft
in interfaceUITextEntryInterface
-
onKeyRight
public void onKeyRight()- Specified by:
onKeyRight
in interfaceUITextEntryInterface
-
onKeyBack
public void onKeyBack()- Specified by:
onKeyBack
in interfaceUITextEntryInterface
-
onKeyDelete
public void onKeyDelete()- Specified by:
onKeyDelete
in interfaceUITextEntryInterface
-
pasteFromClipboard
public void pasteFromClipboard()- Specified by:
pasteFromClipboard
in interfaceUITextEntryInterface
-
cutToClipboard
public void cutToClipboard()- Specified by:
cutToClipboard
in interfaceUITextEntryInterface
-
copyToClipboard
public void copyToClipboard()- Specified by:
copyToClipboard
in interfaceUITextEntryInterface
-
isTextLimit
public boolean isTextLimit()- Specified by:
isTextLimit
in interfaceUITextEntryInterface
-
putCharacter
public void putCharacter(char char0) - Specified by:
putCharacter
in interfaceUITextEntryInterface
-
setWrapLines
public void setWrapLines(boolean boolean0) -
setCentreVertically
public void setCentreVertically(boolean boolean0)
-