java.awt.peer
Interface TextComponentPeer

All Superinterfaces:
ComponentPeer
All Known Subinterfaces:
TextAreaPeer, TextFieldPeer

public interface TextComponentPeer
extends ComponentPeer

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.
 
Methods inherited from interface java.awt.peer.ComponentPeer
applyShape, canDetermineObscurity, checkImage, coalescePaintEvent, createBuffers, createImage, createImage, createVolatileImage, destroyBuffers, dispose, flip, getBackBuffer, getColorModel, getFontMetrics, getGraphics, getGraphicsConfiguration, getLocationOnScreen, getMinimumSize, getPreferredSize, getToolkit, handleEvent, handlesWheelScrolling, isFocusable, isObscured, isReparentSupported, layout, paint, prepareImage, print, reparent, requestFocus, setBackground, setBounds, setEnabled, setFont, setForeground, setVisible, setZOrder, updateCursorImmediately, updateGraphicsData
 

Method Detail

setEditable

void setEditable(boolean editable)
Class is disabled.

Sets if the text component should be editable or not.

Parameters:
editable - true for editable text components, false for non-editable text components
See Also:
TextComponent.setEditable(boolean)

getText

String getText()
Class is disabled.

Returns the current content of the text component.

Returns:
the current content of the text component
See Also:
TextComponent.getText()

setText

void setText(String l)
Class is disabled.

Sets the content for the text component.

Parameters:
l - the content to set
See Also:
TextComponent.setText(String)

getSelectionStart

int getSelectionStart()
Class is disabled.

Returns the start index of the current selection.

Returns:
the start index of the current selection
See Also:
TextComponent.getSelectionStart()

getSelectionEnd

int getSelectionEnd()
Class is disabled.

Returns the end index of the current selection.

Returns:
the end index of the current selection
See Also:
TextComponent.getSelectionEnd()

select

void select(int selStart,
            int selEnd)
Class is disabled.

Selects an area of the text component.

Parameters:
selStart - the start index of the new selection
selEnd - the end index of the new selection
See Also:
TextComponent.select(int, int)

setCaretPosition

void setCaretPosition(int pos)
Class is disabled.

Sets the caret position of the text component.

Parameters:
pos - the caret position to set
See Also:
TextComponent.setCaretPosition(int)

getCaretPosition

int getCaretPosition()
Class is disabled.

Returns the current caret position.

Returns:
the current caret position
See Also:
TextComponent.getCaretPosition()

getInputMethodRequests

InputMethodRequests getInputMethodRequests()
Class is disabled.

Returns the input method requests.

Returns:
the input method requests