|
||||||||||
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 MonitoredEdit
MonitoredEdit.getParameterValues()
public void setParameterNames(String[] parameterNames)
public Object[] getParameterValues()
MonitoredEdit
getParameterValues
in interface MonitoredEdit
MonitoredEdit.getParameterNames()
public void setParameterValues(Object[] parameterValues)
public String getUndoPresentationName()
getUndoPresentationName
in interface UndoableEdit
getUndoPresentationName
in class AbstractUndoableEdit
public String getRedoPresentationName()
getRedoPresentationName
in interface UndoableEdit
getRedoPresentationName
in class AbstractUndoableEdit
public abstract String getDescription()
MonitoredEdit
getDescription
in interface MonitoredEdit
public void die()
die
in interface UndoableEdit
die
in class AbstractUndoableEdit
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
CannotUndoException
public boolean canUndo()
canUndo
in interface UndoableEdit
canUndo
in class AbstractUndoableEdit
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
CannotRedoException
public boolean canRedo()
canRedo
in interface UndoableEdit
canRedo
in class AbstractUndoableEdit
public void restoreContext(HashMap context)
restoreContext
in interface Restorable
public Object clone() throws CloneNotSupportedException
Copyable
NOTE: 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 Copyable
clone
in class Object
CloneNotSupportedException
- if the clone failed or is not
possible.public Icon getIcon()
Iconic
getIcon
in interface Iconic
public String getName()
Iconic
getName
in interface Iconic
public Icon getLargeIcon()
Iconic
getLargeIcon
in interface Iconic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |