| 
||||||||||
| 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.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
 UndoableEdits 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 UndoableEdits 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 UndoableEdits 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
 UndoableEdits in list.
| Method Detail | 
|---|
public void end()
UndoableEdits to
 this MonitoredEditGroup.
public boolean isInProgress()
UndoableEdits can still be added
 to this MonitoredEditGroup and false otherwise.
public boolean isSignificant()
isSignificant in interface UndoableEditisSignificant in class AbstractUndoableEditpublic void undo()
UndoableEdit.undo() on each
 component UndoableEdit in reverse order.
undo in interface UndoableEditundo in class AbstractUndoableEditpublic void redo()
UndoableEdit.redo() on each
 component UndoableEdit in order.
redo in interface UndoableEditredo in class AbstractUndoableEditprotected boolean mergedEditWithLastEdit(UndoableEdit edit)
public boolean addEdit(UndoableEdit edit)
addEdit in interface UndoableEditaddEdit in class AbstractUndoableEditpublic void die()
die in interface UndoableEditdie in class AbstractUndoableEditpublic 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 UndoableEditgetPresentationName in class AbstractUndoableEditpublic String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in class AbstractUndoableEditpublic String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in class AbstractUndoableEditpublic Icon getIcon()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||