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
TextModelListener
s.
- Version:
- 11 Mar 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- TextModel, TextModelListener
-
TEXT_MODEL_EDITED
- The text model is edited.
-
TEXT_MODEL_FIRST
- Marks the first integer id for the range of text model event ids.
-
TEXT_MODEL_LAST
- Marks the last integer id for the range of text model event ids.
-
TEXT_MODEL_UPDATED
- The text model is updated.
-
TextModelEvent(TextModel, int)
- Constructs a text model event with the specified text model (event
source) and id.
-
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.
-
TextModelEvent(TextModel, int, TextChange)
- Constructs a text model event with the specified text model (event
source), id, and text change object.
-
getID()
- Returns the id of this text model event.
-
getModel()
- Returns the text model (event source) of this text model event.
-
getPaintBegin()
- Returns the beginning index to paint, inclusive.
-
getPaintEnd()
- Returns the beginning index to paint, exclusive.
-
getTextChange()
- Returns the
TextChange
object of this text model event.
-
paramString()
-
TEXT_MODEL_FIRST
public static final int TEXT_MODEL_FIRST
- Marks the first integer id for the range of text model event ids.
TEXT_MODEL_LAST
public static final int TEXT_MODEL_LAST
- Marks the last integer id for the range of text model event ids.
TEXT_MODEL_EDITED
public static final int TEXT_MODEL_EDITED
- The text model is edited.
TEXT_MODEL_UPDATED
public static final int TEXT_MODEL_UPDATED
- The text model is updated.
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.
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.
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.
getID
public int getID()
- Returns the id of this text model event.
getModel
public TextModel getModel()
- Returns the text model (event source) of this text model event.
getPaintBegin
public int getPaintBegin()
- Returns the beginning index to paint, inclusive.
getPaintEnd
public int getPaintEnd()
- Returns the beginning index to paint, exclusive.
getTextChange
public TextChange getTextChange()
- Returns the
TextChange
object of this text model event.
This operation is valid when id is TEXT_MODEL_EDITED.
paramString
public String paramString()
All Packages Class Hierarchy This Package Previous Next Index