|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
dsto.dfc.swing.undo.AbstractMonitoredEdit
public abstract class AbstractMonitoredEdit
Abstract implementation of the MonitoredEdit interface.
| Field Summary | |
|---|---|
protected boolean |
alive
|
static Icon |
ICON
|
protected String[] |
parameterNames
|
protected Object[] |
parameterValues
|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Fields inherited from interface dsto.dfc.swing.icons.Iconic |
|---|
NULL_ICON |
| Constructor Summary | |
|---|---|
AbstractMonitoredEdit()
For bean serialisation only |
|
AbstractMonitoredEdit(String[] parameterNames,
Object[] parameterValues)
|
|
| Method Summary | |
|---|---|
boolean |
canRedo()
|
boolean |
canUndo()
|
Object |
clone()
Create a completely separate copy of this object and any mutable objects owned by the object. |
void |
die()
|
abstract String |
getDescription()
Returns a human-readable description of what the edit does. |
Icon |
getIcon()
The small (16x16) icon for the object. |
Icon |
getLargeIcon()
The large (32x32) icon. |
String |
getName()
The human-readable name for the object. |
String[] |
getParameterNames()
Get the (human readable) names of the parameters to this command. |
Object[] |
getParameterValues()
Get the parameter values of this command. |
String |
getRedoPresentationName()
|
String |
getUndoPresentationName()
|
void |
redo()
|
void |
restoreContext(HashMap context)
|
void |
setParameterNames(String[] parameterNames)
|
void |
setParameterValues(Object[] parameterValues)
|
void |
undo()
|
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, getPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.undo.UndoableEdit |
|---|
addEdit, getPresentationName, isSignificant, replaceEdit |
| Field Detail |
|---|
public static Icon ICON
protected boolean alive
protected String[] parameterNames
protected Object[] parameterValues
| Constructor Detail |
|---|
public AbstractMonitoredEdit()
public AbstractMonitoredEdit(String[] parameterNames,
Object[] parameterValues)
| Method Detail |
|---|
public String[] getParameterNames()
MonitoredEdit
getParameterNames in interface MonitoredEditMonitoredEdit.getParameterValues()public void setParameterNames(String[] parameterNames)
public Object[] getParameterValues()
MonitoredEdit
getParameterValues in interface MonitoredEditMonitoredEdit.getParameterNames()public void setParameterValues(Object[] parameterValues)
public String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in class AbstractUndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in class AbstractUndoableEditpublic abstract String getDescription()
MonitoredEdit
getDescription in interface MonitoredEditpublic void die()
die in interface UndoableEditdie in class AbstractUndoableEdit
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoExceptionpublic boolean canUndo()
canUndo in interface UndoableEditcanUndo in class AbstractUndoableEdit
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoExceptionpublic boolean canRedo()
canRedo in interface UndoableEditcanRedo in class AbstractUndoableEditpublic void restoreContext(HashMap context)
restoreContext in interface Restorable
public Object clone()
throws CloneNotSupportedException
CopyableNOTE: subclasses should not remove the CloneNotSupportedException throws clause if they themselves support subclassing: removing the CloneNotSupportedException declaration stops subclasses from indicating that a clone was not possible.
clone in interface Copyableclone in class ObjectCloneNotSupportedException - if the clone failed or is not
possible.public Icon getIcon()
Iconic
getIcon in interface Iconicpublic String getName()
Iconic
getName in interface Iconicpublic Icon getLargeIcon()
Iconic
getLargeIcon in interface Iconic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||