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, undo
addEdit, die, getRedoPresentationName, getUndoPresentationName, replaceEdit, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdit, die, getRedoPresentationName, getUndoPresentationName, replaceEdit
public 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 IlvGraphicEdit
before
in class IlvAbstractGraphicEdit
public void after(IlvGraphic g)
after
in interface IlvGraphicEdit
after
in class IlvAbstractGraphicEdit
protected void undoImpl(IlvGraphic g) throws CannotUndoException
undoImpl
in class IlvAbstractGraphicEdit
g
- The graphic object.CannotUndoException
- if canUndo
returns false
canUndo()
public void redoImpl(IlvGraphic g) throws CannotRedoException
redoImpl
in class IlvAbstractGraphicEdit
g
- The graphic object.CannotRedoException
- if canRedo
returns false
canRedo()
public boolean canUndo()
canUndo
in interface UndoableEdit
canUndo
in class AbstractUndoableEdit
public boolean canRedo()
canRedo
in interface UndoableEdit
canRedo
in class AbstractUndoableEdit
public boolean isSignificant()
isSignificant
in interface UndoableEdit
isSignificant
in class AbstractUndoableEdit
public String getPresentationName()
getPresentationName
in interface UndoableEdit
getPresentationName
in class AbstractUndoableEdit
public static void setDebugMode(boolean mode)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.