All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface dtai.gwt.TextGadget

public interface TextGadget
TextGadget


Method Index

 o getCaretPosition()
Returns the position of the text insertion caret for the text component.
 o getSelectedText()
Returns the selected text contained in this TextComponent.
 o getSelectionEnd()
Returns the selected text's end position.
 o getSelectionStart()
Returns the selected text's start position.
 o getText()
Returns the text contained in this TextComponent.
 o isEditable()
Returns the boolean indicating whether this TextComponent is editable or not.
 o select(int, int)
Selects the text found between the specified start and end locations.
 o selectAll()
Selects all the text in the TextComponent.
 o setCaretPosition(int)
Sets the position of the text insertion caret for the TextComponent Throws: IllegalArgumentException If position is less than 0.
 o setEditable(boolean)
Sets the specified boolean to indicate whether or not this TextComponent should be editable.
 o setSelectionEnd(int)
Sets the selection end to the specified position.
 o setSelectionStart(int)
Sets the selection start to the specified position.
 o setText(String)
Sets the text of this TextComponent to the specified text.

Methods

 o setText
 public abstract void setText(String t)
Sets the text of this TextComponent to the specified text.

Parameters:
t - - the new text to be set
See Also:
getText
 o getText
 public abstract String getText()
Returns the text contained in this TextComponent.

Returns:
String
See Also:
setText
 o getSelectedText
 public abstract String getSelectedText()
Returns the selected text contained in this TextComponent.

Returns:
String
See Also:
setText
 o isEditable
 public abstract boolean isEditable()
Returns the boolean indicating whether this TextComponent is editable or not.

Returns:
boolean
See Also:
setEditable
 o setEditable
 public abstract void setEditable(boolean b)
Sets the specified boolean to indicate whether or not this TextComponent should be editable.

Parameters:
b - - the boolean to be set
See Also:
isEditable
 o getSelectionStart
 public abstract int getSelectionStart()
Returns the selected text's start position.

Returns:
int
 o setSelectionStart
 public abstract void setSelectionStart(int selectionStart)
Sets the selection start to the specified position. The new starting point is constrained to be before or at the current selection end.

Parameters:
selectionStart - - the start position of the text
 o getSelectionEnd
 public abstract int getSelectionEnd()
Returns the selected text's end position.

Returns:
int
 o setSelectionEnd
 public abstract void setSelectionEnd(int selectionEnd)
Sets the selection end to the specified position. The new end point is constrained to be at or after the current selection start.

Parameters:
selectionEnd - - the start position of the text
 o select
 public abstract void select(int selectionStart,
                             int selectionEnd)
Selects the text found between the specified start and end locations.

Parameters:
selectionStart - - the start position of the text
selectionEnd - - the end position of the text
 o selectAll
 public abstract void selectAll()
Selects all the text in the TextComponent.

 o setCaretPosition
 public abstract void setCaretPosition(int position)
Sets the position of the text insertion caret for the TextComponent Throws: IllegalArgumentException If position is less than 0.

Parameters:
position - - the position
 o getCaretPosition
 public abstract int getCaretPosition()
Returns the position of the text insertion caret for the text component.

Returns:
the position of the text insertion caret for the text component.

All Packages  Class Hierarchy  This Package  Previous  Next  Index