All Packages Class Hierarchy This Package Previous Next Index
Interface tea.set.TextEdit
- public interface interface TextEdit
TextEdit is an interface shared by all text editing widget in the
Tea Set widget collection.
- See Also:
- MaskText
-
append(String)
- Append text to the end.
-
clearSelection()
- Clear selection.
-
getColumns()
- Returns the number of columns in this TextEdit.
-
getCursorPos()
- Get cursor position.
-
getSelectedText()
- Return selected (highlighted) text.
-
getSelectionEnd()
- Get the end position of selection.
-
getSelectionStart()
- Get the starting position of selection.
-
getText()
- Get text value.
-
insert(String, int)
- Insert text at the position.
-
isEditable()
- Return true if editable (default).
-
remove(int, int)
- Remove text in the range.
-
select(int, int)
- Select the text in the range.
-
selectAll()
- Select all text.
-
setColumns(int)
- Sets the number of columns in this TextEdit.
-
setCursorPos(int)
- Set cursor at position.
-
setEditable(boolean)
- Set editable to true of false.
-
setInsertMode(boolean)
- Set insertion mode to true or false (overwrite).
-
setText(String)
- Set the value of text.
getColumns
public abstract int getColumns()
- Returns the number of columns in this TextEdit.
setColumns
public abstract void setColumns(int columns)
- Sets the number of columns in this TextEdit.
- Parameters:
- columns - the number of columns
setInsertMode
public abstract void setInsertMode(boolean mode)
- Set insertion mode to true or false (overwrite).
- Parameters:
- true - for insert mode and false for overwrite mode.
setText
public abstract void setText(String t)
- Set the value of text.
- Parameters:
- t - cell text.
getText
public abstract String getText()
- Get text value.
- Returns:
- cell text.
getSelectedText
public abstract String getSelectedText()
- Return selected (highlighted) text.
- Returns:
- selected text.
isEditable
public abstract boolean isEditable()
- Return true if editable (default).
- Returns:
- true if cell is editable.
setEditable
public abstract void setEditable(boolean t)
- Set editable to true of false.
- Parameters:
- t - cell editable to true or false.
getSelectionStart
public abstract int getSelectionStart()
- Get the starting position of selection.
- Returns:
- starting position of selected text.
getSelectionEnd
public abstract int getSelectionEnd()
- Get the end position of selection.
- Returns:
- ending position of selected text.
select
public abstract void select(int selStart,
int selEnd)
- Select the text in the range.
- Parameters:
- selStart - starting position of selection.
- selEnd - ending position of selection.
selectAll
public abstract void selectAll()
- Select all text.
clearSelection
public abstract void clearSelection()
- Clear selection.
append
public abstract void append(String str)
- Append text to the end.
- Parameters:
- str - text to append to cell.
insert
public abstract void insert(String str,
int pos)
- Insert text at the position.
- Parameters:
- str - text to insert.
- pos - insertion position.
setCursorPos
public abstract void setCursorPos(int pos)
- Set cursor at position.
- Parameters:
- pos - cursor position.
getCursorPos
public abstract int getCursorPos()
- Get cursor position.
- Returns:
- cursor position.
remove
public abstract void remove(int start,
int end)
- Remove text in the range.
- Parameters:
- start - starting position of text to remove.
- end - ending position of text to remove.
All Packages Class Hierarchy This Package Previous Next Index