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

Method Index

 o addTextListener(TextListener)
Adds the specified text listener to receive text events from this text edit model.
 o modifyParagraphStyle(int, int, ParagraphStyleModifier)
 o modifyTextStyle(int, int, TextStyleModifier)
 o removeTextListener(TextListener)
Removes the specified text listener so it no longer receives text events from this text edit model.
 o replace(int, int, Text)
Replaces the specified range of the rich text of this text edit model with the specified replacement text object.
 o setParagraphStyle(int, int, ParagraphStyle)
 o setTextStyle(int, int, TextStyle)

Methods

 o 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.
 o 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.
 o 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.
 o setTextStyle
 public abstract Undo setTextStyle(int begin,
                                   int end,
                                   TextStyle textStyle)
 o modifyTextStyle
 public abstract Undo modifyTextStyle(int begin,
                                      int end,
                                      TextStyleModifier modifier)
 o setParagraphStyle
 public abstract Undo setParagraphStyle(int begin,
                                        int end,
                                        ParagraphStyle pStyle)
 o modifyParagraphStyle
 public abstract Undo modifyParagraphStyle(int begin,
                                           int end,
                                           ParagraphStyleModifier modifier)

All Packages  Class Hierarchy  This Package  Previous  Next  Index