|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MTextComponent
An interface that defines the contract for all major kinds of text components.
Field Summary | |
---|---|
static int |
LOWER_CASE
Constant to indicate lower case. |
static int |
MIXED_CASE
Constant to indicate mixed case. |
static int |
UPPER_CASE
Constant to indicate upper case. |
Method Summary | |
---|---|
boolean |
canCopy()
Checks to see if text can be copied from this text component. |
boolean |
canCut()
Checks to see if text can be cut from this text component. |
boolean |
canDelete()
Checks to see if text can be deleted from this text component. |
boolean |
canPaste()
Checks to see if text can be pasted in to this text component. |
boolean |
canRedo()
Checks to see if the changes made to this component can be redone. |
boolean |
canSelectAll()
Checks to see if whole text in this component can be selected. |
boolean |
canUndo()
Cecks to see if the changes made to this text component can be undone. |
void |
copy()
Copies the selected text from this text component to the system clipboard. |
void |
cut()
Cuts the selected text from this text component and places it in the system clipboard. |
void |
delete()
Deletes the selected text from this text component. |
int |
getCharacterCase()
Gets the current chatacter case in use by this text component. |
int |
getMaximumLength()
Returns the maximum number of characters allowed in this text component. |
int |
getUndoLimit()
Returns the current undo/redo limit of this text component. |
void |
paste()
Pastes the contents of system clipboard at the current caret position. |
void |
redo()
Redo the changes to this text component. |
void |
selectAll()
Selects all the text in this text component. |
void |
setCharacterCase(int characterCase)
Sets the character case to the given characterCase . |
void |
setMaximumLength(int maximumLength)
Sets the maxumum number of characters allowed in this text component to the given value, maximumLength . |
void |
setUndoLimit(int limit)
Sets the undo/redo limit to the given limit . |
void |
undo()
Undo the changes made to this text component. |
Field Detail |
---|
static final int MIXED_CASE
static final int LOWER_CASE
static final int UPPER_CASE
Method Detail |
---|
void setCharacterCase(int characterCase)
characterCase
.
characterCase
- Character case to set for this text component.int getCharacterCase()
void setMaximumLength(int maximumLength)
maximumLength
.
maximumLength
- Maximum length to set.int getMaximumLength()
void setUndoLimit(int limit)
limit
.
limit
- Number of changes to be recorded by the undo/redo manager.int getUndoLimit()
void cut()
void copy()
void paste()
void delete()
void selectAll()
void undo()
void redo()
boolean canCut()
true
If the text can be cut from this text component.
false
, otherwise.boolean canCopy()
true
, if text is copiable. false
,
otherwise.boolean canPaste()
true
, if text is pastable. false
,
otherwise.boolean canDelete()
true
, if text can be deleted from this text
component. false
, otherwise.
boolean canSelectAll()
true
, if the text is selectable. false
,
otherwise.boolean canUndo()
true
, if the changes can be undone.
false
, otherwise.boolean canRedo()
true
, if the changes can be redone.
false, otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |