|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.swing.event.CaretEvent
javax.swing.text.JTextComponent.MutableCaretEvent
Event to use when firing a notification of change to caret position. This is mutable so that the event can be reused since caret events can be fairly high in bandwidth.
| Field Summary | |
private int |
dot
|
private boolean |
dragActive
|
private int |
mark
|
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
(package private) |
JTextComponent.MutableCaretEvent(JTextComponent c)
|
| Method Summary | |
(package private) void |
fire()
|
void |
focusGained(FocusEvent fe)
Invoked when a component gains the keyboard focus. |
void |
focusLost(FocusEvent fe)
Invoked when a component loses the keyboard focus. |
int |
getDot()
Fetches the location of the caret. |
int |
getMark()
Fetches the location of other end of a logical selection. |
void |
mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(MouseEvent e)
Requests focus on the associated text component, and try to set the cursor position. |
void |
mouseReleased(MouseEvent e)
Called when the mouse is released. |
void |
stateChanged(ChangeEvent e)
Invoked when the target of the listener has changed its state. |
String |
toString()
Returns a String representation of this EventObject. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private boolean dragActive
private int dot
private int mark
| Constructor Detail |
JTextComponent.MutableCaretEvent(JTextComponent c)
| Method Detail |
final void fire()
public final String toString()
EventObject
toString in class EventObjectpublic final int getDot()
CaretEvent
getDot in class CaretEventpublic final int getMark()
CaretEvent
getMark in class CaretEventpublic final void stateChanged(ChangeEvent e)
ChangeListener
stateChanged in interface ChangeListenere - a ChangeEvent objectpublic void focusGained(FocusEvent fe)
FocusListener
focusGained in interface FocusListenerpublic void focusLost(FocusEvent fe)
FocusListener
focusLost in interface FocusListenerpublic final void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the mouse eventMouseListener.mousePressed(java.awt.event.MouseEvent)public final void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenere - the mouse eventMouseListener.mouseReleased(java.awt.event.MouseEvent)public final void mouseClicked(MouseEvent e)
MouseListener
mouseClicked in interface MouseListenerpublic final void mouseEntered(MouseEvent e)
MouseListener
mouseEntered in interface MouseListenerpublic final void mouseExited(MouseEvent e)
MouseListener
mouseExited in interface MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||