|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
ilog.views.appframe.docview.project.IlvAbstractDataContainerUndoableEdit
ilog.views.appframe.docview.project.IlvRemoveNodeEdit
public class IlvRemoveNodeEdit
A concrete subclass of IlvAbstractDataContainerUndoableEdit to
remove a node from a data container.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
IlvRemoveNodeEdit(IlvDataContainer dataContainer,
Object parent,
Object node)
Creates an edit that removes a node from the specified data container. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns the index where the node that this edit removes was inserted in the child array of the parent of the node. |
Object |
getNode()
Returns the node that this edit removes. |
Object |
getParentNode()
Returns the parent node that this edit removes a child node from. |
void |
redo()
Removes the node associated with this edit from its parent. |
void |
undo()
Adds the node removed by this edit to the previous parent of the node given by the method getParentNode() at the insertion index given
by getIndex(). |
| Methods inherited from class ilog.views.appframe.docview.project.IlvAbstractDataContainerUndoableEdit |
|---|
getDataContainer |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvRemoveNodeEdit(IlvDataContainer dataContainer,
Object parent,
Object node)
dataContainer - The data container to remove a node from.parent - The parent node to remove a child node from or
null.node - The node to remove.| Method Detail |
|---|
public Object getParentNode()
public Object getNode()
public int getIndex()
getParentNode()
public void undo()
throws CannotUndoException
getParentNode() at the insertion index given
by getIndex().
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoExceptionAbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoExceptionAbstractUndoableEdit.canRedo(),
getParentNode()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||