All Packages Class Hierarchy This Package Previous Next Index
Interface jp.kyasu.awt.TextEditModel
- public interface TextEditModel
- extends TextModel
The model interface for an object that acts as a model for
TextEditController
and TextEditView
.
- Version:
- 11 Dec 1997
- Author:
- Kazuki YASUMATSU
- See Also:
- TextComponent, TextEditController, TextEditView, TextModelEvent, TextModelListener
-
addTextListener(TextListener)
- Adds the specified text listener to receive text events from
this text edit model.
-
modifyParagraphStyle(int, int, ParagraphStyleModifier)
-
-
modifyTextStyle(int, int, TextStyleModifier)
-
-
removeTextListener(TextListener)
- Removes the specified text listener so it no longer receives
text events from this text edit model.
-
replace(int, int, Text)
- Replaces the specified range of the rich text of this text edit
model with the specified replacement text object.
-
setParagraphStyle(int, int, ParagraphStyle)
-
-
setTextStyle(int, int, TextStyle)
-
addTextListener
public abstract void addTextListener(TextListener listener)
- Adds the specified text listener to receive text events from
this text edit model.
- Parameters:
- listener - the text listener.
removeTextListener
public abstract void removeTextListener(TextListener listener)
- Removes the specified text listener so it no longer receives
text events from this text edit model.
- Parameters:
- listener - the text listener.
replace
public abstract Undo replace(int begin,
int end,
Text rep)
- Replaces the specified range of the rich text of this text edit
model with the specified replacement text object.
- Parameters:
- begin - the beginning text position to replace, inclusive.
- end - the ending text position to replace, exclusive.
- rep - a replacement
Text
object.
- Returns:
- the undo object for this operation, or
null
if
the undo is not supported.
setTextStyle
public abstract Undo setTextStyle(int begin,
int end,
TextStyle textStyle)
modifyTextStyle
public abstract Undo modifyTextStyle(int begin,
int end,
TextStyleModifier modifier)
setParagraphStyle
public abstract Undo setParagraphStyle(int begin,
int end,
ParagraphStyle pStyle)
modifyParagraphStyle
public abstract Undo modifyParagraphStyle(int begin,
int end,
ParagraphStyleModifier modifier)
All Packages Class Hierarchy This Package Previous Next Index