|
||||||||||
| 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.IlvAddNodeEdit
public class IlvAddNodeEdit
A concrete subclass of IlvAbstractDataContainerUndoableEdit for
adding a node object to a data container.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
IlvAddNodeEdit(IlvDataContainer dataContainer,
Object parent,
Object node,
int index)
Creates an edit that adds a node to the specified data container. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns the insertion index. |
Object |
getNode()
Returns the node that this edit adds. |
Object |
getParentNode()
Returns the parent node this edit adds a node to. |
void |
redo()
Adds the node given by the method getNode() to the parent node given
by the method getParentNode(). |
void |
undo()
Removes the node added by this edit. |
| 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 IlvAddNodeEdit(IlvDataContainer dataContainer,
Object parent,
Object node,
int index)
dataContainer - The data container to add a node to.parent - The parent node to add a node to - can be null.node - The node to addindex - The insertion index of the node in the
child array of the parent node. If equal to -1, the
node will be added at the last position in the array.| Method Detail |
|---|
public Object getParentNode()
public Object getNode()
public int getIndex()
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoExceptionAbstractUndoableEdit.canUndo(),
redo()
public void redo()
throws CannotRedoException
getNode() to the parent node given
by the method getParentNode().
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoExceptionAbstractUndoableEdit.canRedo()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||