All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.DefaultTextModel
java.lang.Object
|
+----jp.kyasu.awt.DefaultTextModel
- public class DefaultTextModel
- extends Object
- implements TextModel, Serializable
The DefaultTextModel
class is a default implementation of
the TextModel
interface.
- Version:
- 27 Dec 1997
- Author:
- Kazuki YASUMATSU
-
DefaultTextModel(RichText)
- Constructs a text model with the specified rich text.
-
DefaultTextModel(RichTextStyle)
- Constructs an empty text model with the specified rich text style.
-
addTextModelListener(TextModelListener)
- Adds the specified text model listener to receive text model events
from this text model.
-
getRichText()
- Returns the rich text of this text model.
-
removeTextModelListener(TextModelListener)
- Removes the specified text model listener so it no longer receives
text model events from this text model.
-
setRichText(RichText)
- Sets the rich text of this text model to be the specified rich text.
DefaultTextModel
public DefaultTextModel(RichTextStyle richTextStyle)
- Constructs an empty text model with the specified rich text style.
- Parameters:
- richTextStyle - the rich text style.
DefaultTextModel
public DefaultTextModel(RichText richText)
- Constructs a text model with the specified rich text.
- Parameters:
- richText - the rich text.
addTextModelListener
public void addTextModelListener(TextModelListener listener)
- Adds the specified text model listener to receive text model events
from this text model.
- Parameters:
- listener - the text model listener.
removeTextModelListener
public void removeTextModelListener(TextModelListener listener)
- Removes the specified text model listener so it no longer receives
text model events from this text model.
- Parameters:
- listener - the text model listener.
getRichText
public RichText getRichText()
- Returns the rich text of this text model.
- Returns:
- the rich text.
setRichText
public synchronized void setRichText(RichText richText)
- Sets the rich text of this text model to be the specified rich text.
- Parameters:
- richText - the rich text.
All Packages Class Hierarchy This Package Previous Next Index