001package com.fs.starfarer.api.ui;
002
003import java.awt.Color;
004
005public interface TextFieldAPI extends UIComponentAPI {
006
007        void setPad(float pad);
008        LabelAPI getTextLabelAPI();
009        void setMidAlignment();
010        void setColor(Color color);
011        void setBgColor(Color bgColor);
012        String getText();
013        void setText(String string);
014        boolean isValidChar(char c);
015        boolean isLimitByStringWidth();
016        void setLimitByStringWidth(boolean limitByStringWidth);
017        boolean appendCharIfPossible(char c);
018        boolean appendCharIfPossible(char c, boolean withSound);
019        int getMaxChars();
020        void setMaxChars(int maxChars);
021        void deleteAll();
022        void deleteAll(boolean withSound);
023        void deleteLastWord();
024        void grabFocus();
025        void grabFocus(boolean playSound);
026        boolean hasFocus();
027        boolean isUndoOnEscape();
028        void setUndoOnEscape(boolean undoOnEscape);
029        boolean isHandleCtrlV();
030        void setHandleCtrlV(boolean handleCtrlV);
031        Color getBorderColor();
032        void setBorderColor(Color borderColor);
033        boolean isVerticalCursor();
034        void setVerticalCursor(boolean verticalCursor);
035        void hideCursor();
036        void showCursor();
037
038}