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

Constructor Index

 o DefaultTextModel(RichText)
Constructs a text model with the specified rich text.
 o DefaultTextModel(RichTextStyle)
Constructs an empty text model with the specified rich text style.

Method Index

 o addTextModelListener(TextModelListener)
Adds the specified text model listener to receive text model events from this text model.
 o getRichText()
Returns the rich text of this text model.
 o removeTextModelListener(TextModelListener)
Removes the specified text model listener so it no longer receives text model events from this text model.
 o setRichText(RichText)
Sets the rich text of this text model to be the specified rich text.

Constructors

 o DefaultTextModel
 public DefaultTextModel(RichTextStyle richTextStyle)
Constructs an empty text model with the specified rich text style.

Parameters:
richTextStyle - the rich text style.
 o DefaultTextModel
 public DefaultTextModel(RichText richText)
Constructs a text model with the specified rich text.

Parameters:
richText - the rich text.

Methods

 o 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.
 o 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.
 o getRichText
 public RichText getRichText()
Returns the rich text of this text model.

Returns:
the rich text.
 o 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