public abstract class JTextComponent extends JComponent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_bold |
protected int |
_caretPosition
Index (from the start of the string) where next character will
be inserted.
|
protected java.lang.StringBuffer |
_document |
protected boolean |
_editable |
_border_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
JTextComponent() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCaretPosition() |
java.lang.String |
getDocument() |
java.lang.String |
getText() |
boolean |
isEditable()
Returns the boolean flag indicating whether this TextComponent
is editable or not.
|
void |
setCaretPosition(int caret_) |
void |
setDocument(java.lang.String document_) |
void |
setEditable(boolean editable_)
Sets the boolean that indicates whether this TextComponent should be
editable or not.
|
void |
setFont(Font font_) |
void |
setText(java.lang.String text_) |
draw, getBorder, getInsets, setBorderaddFocusListener, addKeyListener, contains, contains, debug, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isRecursivelyVisible, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setBounds, setBounds, setBounds, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColorprotected int _caretPosition
protected java.lang.StringBuffer _document
protected boolean _editable
protected boolean _bold
public java.lang.String getDocument()
public void setDocument(java.lang.String document_)
public java.lang.String getText()
public void setText(java.lang.String text_)
public int getCaretPosition()
public void setCaretPosition(int caret_)
public boolean isEditable()
public void setEditable(boolean editable_)
public void setFont(Font font_)