|
||||||||||
| 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.IlvNodePropertyChangeEdit
public class IlvNodePropertyChangeEdit
A concrete subclass of IlvAbstractDataContainerUndoableEdit for
changing the property of a node of a data container.
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
IlvNodePropertyChangeEdit(IlvDataContainer dataContainer,
Object parent,
Object node,
int index,
String propertyName,
Object oldValue,
Object newValue)
Creates an edit that changes a property of a node of a data container. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Returns the index of the node in the child array of its parent. |
Object |
getNewValue()
Returns the new value of the property. |
Object |
getNode()
Returns the node to change the property of. |
Object |
getOldValue()
Returns the value of the property before it was changed. |
Object |
getParentNode()
Returns the parent of the node to change the property of. |
String |
getPropertyName()
Returns the name of the property to change the value of. |
void |
redo()
Sets the property of the node with the name given by getPropertyName()
to the value given by getNewValue(). |
void |
undo()
Sets the property of the node with the name given by getPropertyName()
to the value given by getOldValue(). |
| 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 IlvNodePropertyChangeEdit(IlvDataContainer dataContainer,
Object parent,
Object node,
int index,
String propertyName,
Object oldValue,
Object newValue)
dataContainer - The data container that contains the node to change
a property of.parent - The parent of the node to change a property of - can be
null.node - The node to change the property of.index - The index of the node in the
child array of the parent node.propertyName - The name of the property to change.oldValue - The value of the property before it was changed.newValue - The new value of the property.| Method Detail |
|---|
public Object getParentNode()
public Object getNode()
public int getIndex()
public String getPropertyName()
public Object getOldValue()
getNewValue(),
getPropertyName()public Object getNewValue()
getOldValue(),
getPropertyName()
public void undo()
throws CannotUndoException
getPropertyName()
to the value given by getOldValue().
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoExceptionAbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
getPropertyName()
to the value given by getNewValue().
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 | |||||||||