|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.undo.AbstractUndoableEdit dsto.dfc.swing.undo.MonitoredEditGroup
public class MonitoredEditGroup
Groups a number of edits. Design driver is to allow edits executed as part of an InVision process to be grouped together, but could be used for many organisational purposes.
Field Summary | |
---|---|
static Icon |
ICON
|
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
MonitoredEditGroup()
Constructor for bean serialisation. |
|
MonitoredEditGroup(EditListModel list)
|
|
MonitoredEditGroup(EditListModel list,
String name)
Creates a MonitoredEditGroup with the name name with the
UndoableEdit s in list. |
|
MonitoredEditGroup(String name)
|
Method Summary | |
---|---|
boolean |
addEdit(UndoableEdit edit)
Add an edit to the group. |
void |
die()
Indicates that this edit is no longer required and subsequently cannot be used. |
void |
end()
Prevents the further additions of UndoableEdit s to
this MonitoredEditGroup . |
UndoableEdit |
getEdit(int index)
Accesses the UndoableEdit at the
index |
int |
getEditCount()
Access method for the number of edits held in the MonitoredEditGroup
at this time. |
List |
getEdits()
Access method for the edit list. |
Icon |
getIcon()
|
String |
getName()
Access method for the name property. |
String |
getPresentationName()
|
String |
getRedoPresentationName()
|
String |
getUndoPresentationName()
|
boolean |
isInProgress()
Returns true if UndoableEdit s can still be added
to this MonitoredEditGroup and false otherwise. |
boolean |
isSignificant()
Returns true if any of its component edits are significant. |
protected boolean |
mergedEditWithLastEdit(UndoableEdit edit)
Attempts to merge edit with the last edit. |
void |
redo()
Currently invokes UndoableEdit.redo() on each
component UndoableEdit in order. |
void |
setName(String newName)
Sets the value of the name property. |
void |
undo()
Currently invokes UndoableEdit.undo() on each
component UndoableEdit in reverse order. |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
canRedo, canUndo, replaceEdit, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Icon ICON
Constructor Detail |
---|
public MonitoredEditGroup()
public MonitoredEditGroup(String name)
public MonitoredEditGroup(EditListModel list)
public MonitoredEditGroup(EditListModel list, String name)
MonitoredEditGroup
with the name name with the
UndoableEdit
s in list.
Method Detail |
---|
public void end()
UndoableEdit
s to
this MonitoredEditGroup
.
public boolean isInProgress()
UndoableEdit
s can still be added
to this MonitoredEditGroup
and false otherwise.
public boolean isSignificant()
isSignificant
in interface UndoableEdit
isSignificant
in class AbstractUndoableEdit
public void undo()
UndoableEdit.undo()
on each
component UndoableEdit
in reverse order.
undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
public void redo()
UndoableEdit.redo()
on each
component UndoableEdit
in order.
redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
protected boolean mergedEditWithLastEdit(UndoableEdit edit)
public boolean addEdit(UndoableEdit edit)
addEdit
in interface UndoableEdit
addEdit
in class AbstractUndoableEdit
public void die()
die
in interface UndoableEdit
die
in class AbstractUndoableEdit
public String getName()
public void setName(String newName)
newName
- The new value of the name propertypublic List getEdits()
public int getEditCount()
MonitoredEditGroup
at this time.
public UndoableEdit getEdit(int index) throws IndexOutOfBoundsException
UndoableEdit
at the
indexth position.
- Throws:
IndexOutOfBoundsException
- If the index is not within the valid range.
public String getPresentationName()
getPresentationName
in interface UndoableEdit
getPresentationName
in class AbstractUndoableEdit
public String getUndoPresentationName()
getUndoPresentationName
in interface UndoableEdit
getUndoPresentationName
in class AbstractUndoableEdit
public String getRedoPresentationName()
getRedoPresentationName
in interface UndoableEdit
getRedoPresentationName
in class AbstractUndoableEdit
public Icon getIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |