All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.event.TextModelEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----jp.kyasu.awt.event.TextModelEvent

public class TextModelEvent
extends EventObject
The TextModel event that is originated from a TextModel to TextModelListeners.

Version:
11 Mar 1998
Author:
Kazuki YASUMATSU
See Also:
TextModel, TextModelListener

Variable Index

 o TEXT_MODEL_EDITED
The text model is edited.
 o TEXT_MODEL_FIRST
Marks the first integer id for the range of text model event ids.
 o TEXT_MODEL_LAST
Marks the last integer id for the range of text model event ids.
 o TEXT_MODEL_UPDATED
The text model is updated.

Constructor Index

 o TextModelEvent(TextModel, int)
Constructs a text model event with the specified text model (event source) and id.
 o TextModelEvent(TextModel, int, int, int, TextChange)
Constructs a text model event with the specified text model (event source), id, range to paint, and text change object.
 o TextModelEvent(TextModel, int, TextChange)
Constructs a text model event with the specified text model (event source), id, and text change object.

Method Index

 o getID()
Returns the id of this text model event.
 o getModel()
Returns the text model (event source) of this text model event.
 o getPaintBegin()
Returns the beginning index to paint, inclusive.
 o getPaintEnd()
Returns the beginning index to paint, exclusive.
 o getTextChange()
Returns the TextChange object of this text model event.
 o paramString()

Variables

 o TEXT_MODEL_FIRST
 public static final int TEXT_MODEL_FIRST
Marks the first integer id for the range of text model event ids.

 o TEXT_MODEL_LAST
 public static final int TEXT_MODEL_LAST
Marks the last integer id for the range of text model event ids.

 o TEXT_MODEL_EDITED
 public static final int TEXT_MODEL_EDITED
The text model is edited.

 o TEXT_MODEL_UPDATED
 public static final int TEXT_MODEL_UPDATED
The text model is updated.

Constructors

 o TextModelEvent
 public TextModelEvent(TextModel model,
                       int id)
Constructs a text model event with the specified text model (event source) and id. The id must be TEXT_MODEL_UPDATED.

Parameters:
model - the text model (event source).
id - the id.
Throws: IllegalArgumentException
if the id is not TEXT_MODEL_UPDATED.
 o TextModelEvent
 public TextModelEvent(TextModel model,
                       int id,
                       TextChange textChange)
Constructs a text model event with the specified text model (event source), id, and text change object. The id must be TEXT_MODEL_EDITED.

Parameters:
model - the text model (event source).
id - the id.
textChange - the text change infromation.
Throws: IllegalArgumentException
if the id is not TEXT_MODEL_EDITED.
 o TextModelEvent
 public TextModelEvent(TextModel model,
                       int id,
                       int paintBegin,
                       int paintEnd,
                       TextChange textChange)
Constructs a text model event with the specified text model (event source), id, range to paint, and text change object. The id must be TEXT_MODEL_EDITED.

Parameters:
model - the text model (event source).
id - the id.
paintBegin - the beginning index to paint, inclusive.
paintEnd - the ending index to paint, exclusive.
textChange - the text change infromation.
Throws: IllegalArgumentException
if the id is not TEXT_MODEL_EDITED.

Methods

 o getID
 public int getID()
Returns the id of this text model event.

 o getModel
 public TextModel getModel()
Returns the text model (event source) of this text model event.

 o getPaintBegin
 public int getPaintBegin()
Returns the beginning index to paint, inclusive.

 o getPaintEnd
 public int getPaintEnd()
Returns the beginning index to paint, exclusive.

 o getTextChange
 public TextChange getTextChange()
Returns the TextChange object of this text model event. This operation is valid when id is TEXT_MODEL_EDITED.

 o paramString
 public String paramString()

All Packages  Class Hierarchy  This Package  Previous  Next  Index