public interface TextAreaPeer extends TextComponentPeer
TexTArea
.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE
Modifier and Type | Method and Description |
---|---|
Dimension |
getMinimumSize(int rows,
int columns)
Returns the minimum size of a textarea with the specified number of
columns and rows.
|
Dimension |
getPreferredSize(int rows,
int columns)
Returns the preferred size of a textarea with the specified number of
columns and rows.
|
void |
insert(String text,
int pos)
Inserts the specified text at the specified position in the document.
|
void |
replaceRange(String text,
int start,
int end)
Replaces a range of text by the specified string.
|
getCaretPosition, getInputMethodRequests, getSelectionEnd, getSelectionStart, getText, select, setCaretPosition, setEditable, setText
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
void insert(String text, int pos)
text
- the text to insertpos
- the position to insertTextArea.insert(String, int)
void replaceRange(String text, int start, int end)
text
- the replacement stringstart
- the begin of the range to replaceend
- the end of the range to replaceTextArea.replaceRange(String, int, int)
Dimension getPreferredSize(int rows, int columns)
rows
- the number of rowscolumns
- the number of columnsTextArea.getPreferredSize(int, int)
Dimension getMinimumSize(int rows, int columns)
rows
- the number of rowscolumns
- the number of columnsTextArea.getMinimumSize(int, int)
Dracula Javadoc Sample, Made with Allan Im.