public class IlvPropertiesEdit extends IlvAbstractGraphicEdit
RedoName, UndoName| Constructor and Description |
|---|
IlvPropertiesEdit(String name,
Class clazz,
String[] getters,
String[] setters)
Creates a new edit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(IlvGraphic g)
Fill the edit with information about the status of the graphic object
after it has changed.
|
void |
before(IlvGraphic g)
Fill the edit with information about the status of the graphic object
before it has changed.
|
boolean |
canRedo()
Returns true if this edit can be redone.
|
boolean |
canUndo()
Returns true if this edit can be undone.
|
String |
getPresentationName()
Returns the presentation name of the edit.
|
boolean |
isSignificant()
Returns whether the edit is significant.
|
void |
redoImpl(IlvGraphic g)
Performs a redo of the properties setting.
|
static void |
setDebugMode(boolean mode)
Sets the debug mode for property edits.
|
protected void |
undoImpl(IlvGraphic g)
Performs an undo of the properties setting.
|
getObject, redo, undoaddEdit, die, getRedoPresentationName, getUndoPresentationName, replaceEdit, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdit, die, getRedoPresentationName, getUndoPresentationName, replaceEditpublic IlvPropertiesEdit(String name, Class clazz, String[] getters, String[] setters)
name - The presentation name of the editclazz - The class that has the get and set methods.getters - The names of the public get methods.setters - The names of the public set methods.public void before(IlvGraphic g)
before in interface IlvGraphicEditbefore in class IlvAbstractGraphicEditpublic void after(IlvGraphic g)
after in interface IlvGraphicEditafter in class IlvAbstractGraphicEditprotected void undoImpl(IlvGraphic g) throws CannotUndoException
undoImpl in class IlvAbstractGraphicEditg - The graphic object.CannotUndoException - if canUndo
returns falsecanUndo()public void redoImpl(IlvGraphic g) throws CannotRedoException
redoImpl in class IlvAbstractGraphicEditg - The graphic object.CannotRedoException - if canRedo
returns falsecanRedo()public boolean canUndo()
canUndo in interface UndoableEditcanUndo in class AbstractUndoableEditpublic boolean canRedo()
canRedo in interface UndoableEditcanRedo in class AbstractUndoableEditpublic boolean isSignificant()
isSignificant in interface UndoableEditisSignificant in class AbstractUndoableEditpublic String getPresentationName()
getPresentationName in interface UndoableEditgetPresentationName in class AbstractUndoableEditpublic static void setDebugMode(boolean mode)
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.