public class TextField extends TextComponent
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected java.awt.event.ActionListener |
actionListener |
protected static java.lang.String |
actionListenerK
Internal constant for serialization
|
static RichTextStyle |
DEFAULT_FIELD_STYLE
The default rich text style for the text field.
|
CHAR_WRAP, columns, DEFAULT_HORIZONTAL_STYLE, DEFAULT_VERTICAL_STYLE, editController, editModel, editView, NO_WRAP, NOT_EDITABLE_BACKGROUND, NOT_EDITABLE_FOREGROUND, NOT_EDITABLE_SELECTION_BACKGROUND, NOT_EDITABLE_SELECTION_FOREGROUND, rows, savedBackgroundColor, savedForegroundColor, savedSelectionBackgroundColor, savedSelectionForegroundColor, SCROLLBARS_BOTH, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE, SCROLLBARS_VERTICAL_ONLY, textListener, textListenerK, textPositionListeners, WORD_WRAPfocusTraversable| コンストラクタと説明 |
|---|
TextField()
Constructs a new text field.
|
TextField(int columns)
Constructs a new TextField with the specified number of columns.
|
TextField(RichText richText)
Constructs a new text field initialized with the specified rich text.
|
TextField(RichText richText,
int columns)
Constructs a new text field initialized with the specified rich text
to be displayed, and wide enough to hold the specified number of
characters.
|
TextField(java.lang.String string)
Constructs a new text field initialized with the specified string.
|
TextField(java.lang.String string,
int columns)
Constructs a new text field initialized with the specified string
to be displayed, and wide enough to hold the specified number of
characters.
|
TextField(TextEditModel model)
Constructs a new text field with the specified model.
|
TextField(TextEditModel model,
int columns)
Constructs a new text field with the specified model and wide enough
to hold the specified number of characters.
|
TextField(TextEditModel model,
int columns,
VBorder border)
Constructs a new text field with the specified model, wide enough
to hold the specified number of characters, and border visual.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to recieve action events from
this text field.
|
boolean |
echoCharIsSet()
Indicates whether or not this text field has a character set
for echoing.
|
char |
getEchoChar()
Returns the character that is to be used for echoing.
|
java.awt.Dimension |
getMinimumSize()
Returns the minumum dimensions for this text field.
|
java.awt.Dimension |
getMinimumSize(int columns)
Returns the minumum dimensions for a text field with the specified
number of columns.
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this text field.
|
java.awt.Dimension |
getPreferredSize(int columns)
Returns the preferred size of this text field with the specified
number of columns.
|
java.awt.Dimension |
getPreferredSize(int rows,
int columns)
Determines the preferred size of a text component with the specified
number of rows and columns.
|
int |
getScrollbarThickness()
Returns the thickness of the scroll bar.
|
int |
getScrollbarVisibility()
Returns an enumerated value that indicates which scroll bars
the text component uses.
|
java.awt.Dimension |
minimumSize(int columns)
非推奨です。
As of JDK version 1.1,
replaced by
getMinimumSize(int). |
protected void |
notifyActionListeners()
Notifies the action event to the action listeners.
|
java.awt.Dimension |
preferredSize(int columns)
非推奨です。
As of JDK version 1.1,
replaced by
getPreferredSize(int). |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer receives
action events from this text field.
|
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this component.
|
void |
setEchoChar(char c)
Sets the echo character for this text field.
|
void |
setEchoCharacter(char c)
非推奨です。
As of JDK version 1.1,
replaced by
setEchoChar(char). |
void |
setEditable(boolean b)
Sets the flag that determines whether or not this text component is
editable.
|
void |
setScrollbarThickness(int thickness)
Sets the thickness of the scroll bar.
|
addKeyAction, addTextListener, addTextPositionListener, append, append, append, appendText, backward_character, backward_word, beep, beginning_of_file, beginning_of_line, clearSoftTab, clearUndo, copy_clipboard, createTextComponent, createTextComponent, cut_clipboard, delete_next_character, delete_next_word, delete_previous_character, delete_previous_word, delete_selection, delete_to_end_of_line, delete_to_start_of_line, deselect_all, end_of_file, end_of_line, find_word, forward_character, forward_word, getCaretColor, getCaretPosition, getColumns, getController, getCurrentTextStyle, getEditMenu, getEventSource, getKeyAction, getKeyBinding, getKeymap, getLineWrap, getLocationOfText, getMinimumSize, getModel, getParagraphStyleAt, getParagraphStyleCount, getParagraphStyles, getParagraphStyles, getPopupMenu, getRichText, getRows, getSelectedText, getSelectedTEXT, getSelectionBackground, getSelectionEnd, getSelectionForeground, getSelectionStart, getSoftTab, getText, getTEXT, getText, getTextCaret, getTextStyleAt, getTextStyleCount, getTextStyles, getTextStyles, getView, goto_line, insert_character, insert_string, insert, insert, insert, insertText, isAutoIndentEnabled, isClickable, isClickToFocus, isEditable, isMouseFocus, isShowMatchEnabled, isSoftTab, kill_next_character, kill_next_word, kill_previous_character, kill_previous_word, kill_selection, kill_to_end_of_line, kill_to_start_of_line, minimumSize, modifyRangeParagraphStyle, modifyRangeParagraphStyle, modifyRangeTextStyle, modifyRangeTextStyle, modifySelectionParagraphStyle, modifySelectionParagraphStyle, modifySelectionTextStyle, modifySelectionTextStyle, newbreak, newline_and_indent, newline, next_line, next_page, paragraphStyles, paragraphStyles, paste_clipboard, performKeyAction, performKeyAction, preferredSize, previous_line, previous_page, print, print, print, print, print, processEvent, redraw_display, removeKeyAction, removeKeyActionNamed, removeTextListener, removeTextPositionListener, replaceRange, replaceRange, replaceRange, replaceSelection, replaceSelection, replaceSelection, replaceText, select_all, select_line, select_word, select, select, select, selectAll, selectionIsCaret, setAutoIndentEnabled, setBackground, setCaretColor, setCaretPosition, setCaretPosition, setClickable, setClickToFocus, setColumns, setCursor, setEditable, setEnabled, setFont, setForeground, setKeymap, setLineWrap, setLocationOfText, setMouseFocus, setPopupMenu, setRangeParagraphStyle, setRangeParagraphStyle, setRangeTextStyle, setRangeTextStyle, setRichText, setRows, setSelectionBackground, setSelectionEnd, setSelectionForeground, setSelectionParagraphStyle, setSelectionParagraphStyle, setSelectionStart, setSelectionTextStyle, setSelectionTextStyle, setShowMatchEnabled, setSoftTab, setText, setTEXT, setTextCaret, tab, textPositionChanged, textStyles, textStyles, textValueChanged, undo, unkilladdFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, delegateFocusEvent, delegateKeyEvent, delegateMouseEvent, focusGained, focusLost, getToolTipText, getToolTipVisual, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setToolTipText, setToolTipText, setToolTipVisualaddNotify, bounds, disable, doLayout, enable, enable, getBounds, getFrame, getInsets, getLocation, getSize, hide, insets, isDirectNotification, isFocusTraversable, layout, location, minimumSize, postOldEvent, preferredSize, repaintNow, requestFocus, reshape, setFocusTraversable, setVisible, show, show, size, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, list, list, locate, paint, paintComponents, paramString, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected transient java.awt.event.ActionListener actionListener
public static final RichTextStyle DEFAULT_FIELD_STYLE
protected static final java.lang.String actionListenerK
public TextField()
public TextField(java.lang.String string)
string - the string to be displayed.public TextField(int columns)
columns - the number of columnspublic TextField(java.lang.String string,
int columns)
string - the string to be displayed.columns - the number of characters.public TextField(RichText richText)
richText - the rich text to be displayed.public TextField(RichText richText, int columns)
richText - the rich text to be displayed.columns - the number of characters.public TextField(TextEditModel model)
model - the text edit model.public TextField(TextEditModel model, int columns)
model - the text edit model.columns - the number of characters.public TextField(TextEditModel model, int columns, VBorder border)
model - the text edit model.columns - the number of characters.border - the border visual of the text field.public void setBounds(int x,
int y,
int width,
int height)
setBounds クラス内 KContainerpublic void addActionListener(java.awt.event.ActionListener l)
l - the action listener.public void removeActionListener(java.awt.event.ActionListener l)
l - the action listener.protected void notifyActionListeners()
public void setEditable(boolean b)
setEditable クラス内 TextComponentb - a flag indicating whether this text component should be user
editable.TextComponent.isEditable(),
TextComponent.setEditable(boolean, boolean)public int getScrollbarVisibility()
getScrollbarVisibility クラス内 TextComponentTextComponent.SCROLLBARS_BOTH,
TextComponent.SCROLLBARS_VERTICAL_ONLY,
TextComponent.SCROLLBARS_HORIZONTAL_ONLY,
TextComponent.SCROLLBARS_NONEpublic java.awt.Dimension getPreferredSize(int rows,
int columns)
getPreferredSize クラス内 TextComponentrows - the number of rows.columns - the number of columns, ignored.public int getScrollbarThickness()
getScrollbarThickness クラス内 TextComponentTextComponent.setScrollbarThickness(int)public void setScrollbarThickness(int thickness)
setScrollbarThickness クラス内 TextComponent#setScrollbarThickness()public char getEchoChar()
setEchoChar(char),
echoCharIsSet()public void setEchoChar(char c)
c - the echo character for this text field.getEchoChar(),
echoCharIsSet()public void setEchoCharacter(char c)
setEchoChar(char).public boolean echoCharIsSet()
true if this text field has a character set
for echoing; false otherwise.getEchoChar(),
setEchoChar(char)public java.awt.Dimension getPreferredSize(int columns)
columns - the number of columns.public java.awt.Dimension preferredSize(int columns)
getPreferredSize(int).public java.awt.Dimension getPreferredSize()
getPreferredSize クラス内 TextComponentpublic java.awt.Dimension getMinimumSize(int columns)
columns - the number of columns in this text field.public java.awt.Dimension minimumSize(int columns)
getMinimumSize(int).public java.awt.Dimension getMinimumSize()
getMinimumSize クラス内 TextComponent