|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.developpez.ydisanto.swing.undo.UndoMapping
public final class UndoMapping
UndoableJTextManager
Constructor Summary | |
---|---|
UndoMapping(javax.swing.text.JTextComponent component)
Constructs a new UndoMapping with the specified JTextComponent . |
Method Summary | |
---|---|
void |
addUndoListener(UndoListener listener)
Registers UndoListener so that it will receive
ActionEvent s when "undo" or "redo" Action are performed. |
javax.swing.text.JTextComponent |
getComponent()
Returns the JTextComponent . |
javax.swing.Action |
getRedoAction()
Returns the redo Action af the UndoMapping . |
javax.swing.Action |
getUndoAction()
Returns the undo Action af the UndoMapping . |
javax.swing.undo.UndoManager |
getUndoManager()
Returns the UndoManager af the UndoMapping . |
void |
removeUndoListener(UndoListener listener)
Unregisters UndoListener so that it will no longer receive
ActionEvent s. |
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
An undoable edit happened |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoMapping(javax.swing.text.JTextComponent component)
UndoMapping
with the specified JTextComponent
.
component
- a JTextComponent
.Method Detail |
---|
public void addUndoListener(UndoListener listener)
UndoListener
so that it will receive
ActionEvent
s when "undo" or "redo" Action are performed.
listener
- a UndoListener
.public javax.swing.text.JTextComponent getComponent()
JTextComponent
.
JTextComponent
.public javax.swing.Action getRedoAction()
Action
af the UndoMapping
.
Action
af the UndoMapping
.public javax.swing.Action getUndoAction()
Action
af the UndoMapping
.
Action
af the UndoMapping
.public javax.swing.undo.UndoManager getUndoManager()
UndoManager
af the UndoMapping
.
UndoManager
af the UndoMapping
.public void removeUndoListener(UndoListener listener)
UndoListener
so that it will no longer receive
ActionEvent
s.
listener
- a UndoListener
.public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened
in interface javax.swing.event.UndoableEditListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |