|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextComponentPeer
Disabled: no SafeJ information.
The peer interface for TextComponent
.
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.
Field Summary |
---|
Fields inherited from interface java.awt.peer.ComponentPeer |
---|
DEFAULT_OPERATION, NO_EMBEDDED_CHECK, RESET_OPERATION, SET_BOUNDS, SET_CLIENT_SIZE, SET_LOCATION, SET_SIZE |
Method Summary | |
---|---|
int |
getCaretPosition()
Returns the current caret position. |
InputMethodRequests |
getInputMethodRequests()
Returns the input method requests. |
int |
getSelectionEnd()
Returns the end index of the current selection. |
int |
getSelectionStart()
Returns the start index of the current selection. |
String |
getText()
Returns the current content of the text component. |
void |
select(int selStart,
int selEnd)
Selects an area of the text component. |
void |
setCaretPosition(int pos)
Sets the caret position of the text component. |
void |
setEditable(boolean editable)
Sets if the text component should be editable or not. |
void |
setText(String l)
Sets the content for the text component. |
Method Detail |
---|
void setEditable(boolean editable)
editable
- true
for editable text components,
false
for non-editable text componentsTextComponent.setEditable(boolean)
String getText()
TextComponent.getText()
void setText(String l)
l
- the content to setTextComponent.setText(String)
int getSelectionStart()
TextComponent.getSelectionStart()
int getSelectionEnd()
TextComponent.getSelectionEnd()
void select(int selStart, int selEnd)
selStart
- the start index of the new selectionselEnd
- the end index of the new selectionTextComponent.select(int, int)
void setCaretPosition(int pos)
pos
- the caret position to setTextComponent.setCaretPosition(int)
int getCaretPosition()
TextComponent.getCaretPosition()
InputMethodRequests getInputMethodRequests()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |