Starsector API
Loading...
Searching...
No Matches
TextFieldAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.ui;
2
3import java.awt.Color;
4
5public interface TextFieldAPI extends UIComponentAPI {
6
7 void setPad(float pad);
10 void setColor(Color color);
11 void setBgColor(Color bgColor);
12 String getText();
13 void setText(String string);
14 boolean isValidChar(char c);
16 void setLimitByStringWidth(boolean limitByStringWidth);
17 boolean appendCharIfPossible(char c);
18 boolean appendCharIfPossible(char c, boolean withSound);
20 void setMaxChars(int maxChars);
21 void deleteAll();
22 void deleteAll(boolean withSound);
24 void grabFocus();
25 void grabFocus(boolean playSound);
26 boolean hasFocus();
27 boolean isUndoOnEscape();
28 void setUndoOnEscape(boolean undoOnEscape);
29 boolean isHandleCtrlV();
30 void setHandleCtrlV(boolean handleCtrlV);
32 void setBorderColor(Color borderColor);
34 void setVerticalCursor(boolean verticalCursor);
35 void hideCursor();
36 void showCursor();
37
38}
void setBorderColor(Color borderColor)
void grabFocus(boolean playSound)
boolean appendCharIfPossible(char c, boolean withSound)
void setVerticalCursor(boolean verticalCursor)
void deleteAll(boolean withSound)
void setLimitByStringWidth(boolean limitByStringWidth)
void setHandleCtrlV(boolean handleCtrlV)
void setUndoOnEscape(boolean undoOnEscape)