Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
- All Implemented Interfaces:
UIElementInterface, UITextEntryInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanintbooleanintintFields inherited from class UIElement
alwaysBack, alwaysOnTop, anchorBottom, anchorLeft, anchorRight, anchorTop, capture, clickedValue, controls, defaultDraw, followGameWorld, height, ignoreLossControl, maxDrawHeight, parent, playerContext, scrollChildren, scrollWithParent, 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 eventChar) voidrender()voidvoidvoidsetCentreVertically(boolean b) voidsetClearButton(boolean hasButton) voidsetCursorLine(int line) voidsetCursorPos(int charIndex) voidsetDoingTextEntry(boolean value) voidsetEditable(boolean b) voidvoidsetForceUpperCase(boolean forceUpperCase) voidsetFrameAlpha(float alpha) voidsetHasFrame(boolean hasFrame) voidsetIgnoreFirst(boolean value) voidsetMasked(boolean b) voidsetMaxLines(int maxLines) voidsetMaxTextLength(int maxTextLength) voidsetMultipleLine(boolean multiple) voidsetOnlyNumbers(boolean onlyNumbers) voidsetOnlyText(boolean onlyText) voidsetPlaceholderText(String text) voidsetPlaceholderTextColor(ColorInfo color) voidsetPlaceholderTextRGBA(float r, float g, float b, float a) voidsetSelectable(boolean b) voidsetSelectingRange(boolean value) voidvoidsetTextColor(ColorInfo newColor) voidsetTextRGBA(float r, float g, float b, float a) voidsetWrapLines(boolean b) inttoDisplayLine(int textOffset) voidunfocus()voidupdate()voidMethods inherited from class UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawItemIcon, DrawLine, DrawPolygon, 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 Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 -
alwaysPaginate
public boolean alwaysPaginate -
textChanged
public boolean textChanged
-
-
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 r, float g, float b, float a) -
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 r, float g, float b, float a) -
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 onlyText) -
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 value) - Specified by:
setDoingTextEntryin interfaceUITextEntryInterface
-
getFrame
- Specified by:
getFramein interfaceUITextEntryInterface
-
isIgnoreFirst
public boolean isIgnoreFirst()- Specified by:
isIgnoreFirstin interfaceUITextEntryInterface
-
setIgnoreFirst
public void setIgnoreFirst(boolean value) - Specified by:
setIgnoreFirstin interfaceUITextEntryInterface
-
setSelectingRange
public void setSelectingRange(boolean value) - 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 eventChar) - Specified by:
putCharacterin interfaceUITextEntryInterface
-
setWrapLines
public void setWrapLines(boolean b) -
setCentreVertically
public void setCentreVertically(boolean b)
-