All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.event.TextPositionEvent

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

public class TextPositionEvent
extends AWTEvent
The TextPosition event that is originated from a TextEditView object to TextPositionListeners.

Version:
13 Apr 1998
Author:
Kazuki YASUMATSU
See Also:
TextEditView, TextPositionListener

Variable Index

 o TEXT_POSITION_CHANGED
The text position changed event.
 o TEXT_POSITION_FIRST
Marks the first integer id for the range of text position event ids.
 o TEXT_POSITION_LAST
Marks the last integer id for the range of text position event ids.

Constructor Index

 o TextPositionEvent(Object, int, TextPositionInfo, TextPositionInfo)
Constructs a TextPositionEvent object with the specified source, id, beginning position, and ending position.

Method Index

 o getSelectionBegin()
Returns the beginning position information of the selection.
 o getSelectionBeginIndex()
Returns the beginning position index of the selection.
 o getSelectionBeginLineIndex()
Returns the beginning position line index of the selection.
 o getSelectionEnd()
Returns the ending position information of the selection.
 o getSelectionEndIndex()
Returns the ending position index of the selection.
 o getSelectionEndLineIndex()
Returns the ending position line index of the selection.
 o paramString()
 o selectionIsCaret()
Returns true if the selection is caret, i.e., null selection.

Variables

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

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

 o TEXT_POSITION_CHANGED
 public static final int TEXT_POSITION_CHANGED
The text position changed event.

Constructors

 o TextPositionEvent
 public TextPositionEvent(Object source,
                          int id,
                          TextPositionInfo begin,
                          TextPositionInfo end)
Constructs a TextPositionEvent object with the specified source, id, beginning position, and ending position.

Parameters:
source - the object where the event originated.
id - the event type.
begin - the beginning position of the selection, inclusive.
end - the ending position of the selection, exclusive.

Methods

 o getSelectionBegin
 public TextPositionInfo getSelectionBegin()
Returns the beginning position information of the selection.

 o getSelectionEnd
 public TextPositionInfo getSelectionEnd()
Returns the ending position information of the selection.

 o getSelectionBeginIndex
 public int getSelectionBeginIndex()
Returns the beginning position index of the selection.

 o getSelectionEndIndex
 public int getSelectionEndIndex()
Returns the ending position index of the selection.

 o getSelectionBeginLineIndex
 public int getSelectionBeginLineIndex()
Returns the beginning position line index of the selection.

 o getSelectionEndLineIndex
 public int getSelectionEndLineIndex()
Returns the ending position line index of the selection.

 o selectionIsCaret
 public boolean selectionIsCaret()
Returns true if the selection is caret, i.e., null selection.

 o paramString
 public String paramString()
Overrides:
paramString in class AWTEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index