Package com.fs.starfarer.api.ui
Interface TextFieldAPI
- All Superinterfaces:
UIComponentAPI
-
Method Summary
Modifier and TypeMethodDescriptionboolean
appendCharIfPossible
(char c) boolean
appendCharIfPossible
(char c, boolean withSound) void
void
deleteAll
(boolean withSound) void
int
getText()
void
void
grabFocus
(boolean playSound) boolean
hasFocus()
void
boolean
boolean
boolean
boolean
isValidChar
(char c) boolean
void
setBgColor
(Color bgColor) void
setBorderColor
(Color borderColor) void
void
setHandleCtrlV
(boolean handleCtrlV) void
setLimitByStringWidth
(boolean limitByStringWidth) void
setMaxChars
(int maxChars) void
void
setPad
(float pad) void
void
setUndoOnEscape
(boolean undoOnEscape) void
setVerticalCursor
(boolean verticalCursor) void
Methods inherited from interface com.fs.starfarer.api.ui.UIComponentAPI
advance, getOpacity, getPosition, processInput, render, setOpacity
-
Method Details
-
setPad
void setPad(float pad) -
getTextLabelAPI
LabelAPI getTextLabelAPI() -
setMidAlignment
void setMidAlignment() -
setColor
-
setBgColor
-
getText
String getText() -
setText
-
isValidChar
boolean isValidChar(char c) -
isLimitByStringWidth
boolean isLimitByStringWidth() -
setLimitByStringWidth
void setLimitByStringWidth(boolean limitByStringWidth) -
appendCharIfPossible
boolean appendCharIfPossible(char c) -
appendCharIfPossible
boolean appendCharIfPossible(char c, boolean withSound) -
getMaxChars
int getMaxChars() -
setMaxChars
void setMaxChars(int maxChars) -
deleteAll
void deleteAll() -
deleteAll
void deleteAll(boolean withSound) -
deleteLastWord
void deleteLastWord() -
grabFocus
void grabFocus() -
grabFocus
void grabFocus(boolean playSound) -
hasFocus
boolean hasFocus() -
isUndoOnEscape
boolean isUndoOnEscape() -
setUndoOnEscape
void setUndoOnEscape(boolean undoOnEscape) -
isHandleCtrlV
boolean isHandleCtrlV() -
setHandleCtrlV
void setHandleCtrlV(boolean handleCtrlV) -
getBorderColor
Color getBorderColor() -
setBorderColor
-
isVerticalCursor
boolean isVerticalCursor() -
setVerticalCursor
void setVerticalCursor(boolean verticalCursor) -
hideCursor
void hideCursor() -
showCursor
void showCursor()
-