Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
- All Implemented Interfaces:
UIElementInterface,UITextEntryInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanintintintFields 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 TypeMethodDescriptionvoidvoidvoidvoidvoidfocus()intintbooleangetFrame()floatbooleanintgetInset()intintgetText()voidbooleanbooleanbooleanbooleanbooleanisMasked()booleanbooleanbooleanbooleanbooleanvoidvoidvoidvoidvoidonKeyEnd()voidvoidvoidvoidvoidonKeyUp()voidonMouseDown(double x, double y) onMouseMove(double dx, double dy) voidonMouseMoveOutside(double dx, double dy) onMouseUp(double x, double y) voidonMouseUpOutside(double x, double y) voidonOtherKey(int key) voidvoidvoidonresize()voidvoidvoidputCharacter(char char0) voidrender()voidvoidvoidsetCentreVertically(boolean boolean0) voidsetClearButton(boolean hasButton) voidsetCursorLine(int line) voidsetCursorPos(int charIndex) voidsetDoingTextEntry(boolean boolean0) voidsetEditable(boolean b) voidvoidsetForceUpperCase(boolean _forceUpperCase) voidsetFrameAlpha(float alpha) voidsetHasFrame(boolean hasFrame) voidsetIgnoreFirst(boolean boolean0) voidsetMasked(boolean b) voidsetMaxLines(int _maxLines) voidsetMaxTextLength(int maxtextLength) voidsetMultipleLine(boolean multiple) voidsetOnlyNumbers(boolean _onlyNumbers) voidsetOnlyText(boolean boolean0) voidsetPlaceholderText(String string) voidsetPlaceholderTextColor(ColorInfo colorInfo) voidsetPlaceholderTextRGBA(float float0, float float1, float float2, float float3) voidsetSelectable(boolean b) voidsetSelectingRange(boolean boolean0) voidvoidsetTextColor(ColorInfo newColor) voidsetTextRGBA(float float0, float float1, float float2, float float3) voidsetWrapLines(boolean boolean0) inttoDisplayLine(int textOffset) voidunfocus()voidupdate()voidMethods 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, isModalVisible, 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, setStencilCircle, setStencilRect, setTable, setUIName, setVisible, setWantExtraMouseEvents, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, StartOutline, suspendStencilMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.ui.UITextEntryInterface
getUIName
-
Field Details
-
Lines
-
Frame
-
Text
-
DoingTextEntry
public boolean DoingTextEntry -
TextEntryMaxLength
public int TextEntryMaxLength -
IsEditable
public boolean IsEditable -
multipleLine
public boolean multipleLine -
internalText
-
font
-
NumVisibleLines
public int NumVisibleLines -
TopLineIndex
public int TopLineIndex -
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:
renderin interfaceUIElementInterface- Overrides:
renderin 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:
updatein interfaceUIElementInterface- Overrides:
updatein classUIElement
-
getInset
public int getInset() -
setEditable
public void setEditable(boolean b) -
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceUITextEntryInterface
-
setSelectable
public void setSelectable(boolean b) -
isSelectable
public boolean isSelectable() -
onMouseUp
-
onMouseUpOutside
public void onMouseUpOutside(double x, double y) - Overrides:
onMouseUpOutsidein classUIElement
-
onMouseMove
- Overrides:
onMouseMovein classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy) - Overrides:
onMouseMoveOutsidein classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
- Overrides:
onMouseDownin classUIElement
-
updateText
public void updateText() -
SetText
-
setPlaceholderText
-
getPlaceholderText
-
setPlaceholderTextColor
-
setPlaceholderTextRGBA
public void setPlaceholderTextRGBA(float float0, float float1, float float2, float float3) -
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:
onOtherKeyin 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) -
getHasFrame
public boolean getHasFrame() -
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:
isOnlyNumbersin interfaceUITextEntryInterface
-
setOnlyNumbers
public void setOnlyNumbers(boolean _onlyNumbers) -
isOnlyText
public boolean isOnlyText()- Specified by:
isOnlyTextin interfaceUITextEntryInterface
-
setOnlyText
public void setOnlyText(boolean boolean0) -
resetBlink
public void resetBlink() -
selectAll
public void selectAll()- Specified by:
selectAllin interfaceUITextEntryInterface
-
isDoingTextEntry
public boolean isDoingTextEntry()- Specified by:
isDoingTextEntryin interfaceUITextEntryInterface
-
setDoingTextEntry
public void setDoingTextEntry(boolean boolean0) - Specified by:
setDoingTextEntryin interfaceUITextEntryInterface
-
getFrame
- Specified by:
getFramein interfaceUITextEntryInterface
-
isIgnoreFirst
public boolean isIgnoreFirst()- Specified by:
isIgnoreFirstin interfaceUITextEntryInterface
-
setIgnoreFirst
public void setIgnoreFirst(boolean boolean0) - Specified by:
setIgnoreFirstin interfaceUITextEntryInterface
-
setSelectingRange
public void setSelectingRange(boolean boolean0) - Specified by:
setSelectingRangein interfaceUITextEntryInterface
-
getStandardFrameColour
- Specified by:
getStandardFrameColourin interfaceUITextEntryInterface
-
onKeyEnter
public void onKeyEnter()- Specified by:
onKeyEnterin interfaceUITextEntryInterface
-
onKeyHome
public void onKeyHome()- Specified by:
onKeyHomein interfaceUITextEntryInterface
-
onKeyEnd
public void onKeyEnd()- Specified by:
onKeyEndin interfaceUITextEntryInterface
-
onKeyUp
public void onKeyUp()- Specified by:
onKeyUpin interfaceUITextEntryInterface
-
onKeyDown
public void onKeyDown()- Specified by:
onKeyDownin interfaceUITextEntryInterface
-
onKeyLeft
public void onKeyLeft()- Specified by:
onKeyLeftin interfaceUITextEntryInterface
-
onKeyRight
public void onKeyRight()- Specified by:
onKeyRightin interfaceUITextEntryInterface
-
onKeyBack
public void onKeyBack()- Specified by:
onKeyBackin interfaceUITextEntryInterface
-
onKeyDelete
public void onKeyDelete()- Specified by:
onKeyDeletein interfaceUITextEntryInterface
-
pasteFromClipboard
public void pasteFromClipboard()- Specified by:
pasteFromClipboardin interfaceUITextEntryInterface
-
cutToClipboard
public void cutToClipboard()- Specified by:
cutToClipboardin interfaceUITextEntryInterface
-
copyToClipboard
public void copyToClipboard()- Specified by:
copyToClipboardin interfaceUITextEntryInterface
-
isTextLimit
public boolean isTextLimit()- Specified by:
isTextLimitin interfaceUITextEntryInterface
-
putCharacter
public void putCharacter(char char0) - Specified by:
putCharacterin interfaceUITextEntryInterface
-
setWrapLines
public void setWrapLines(boolean boolean0) -
setCentreVertically
public void setCentreVertically(boolean boolean0)
-