|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.edit.AbstractGUIEdit
public abstract class AbstractGUIEdit
Abstract ancestor for GUIEdit implementations, which provides support
for the message and for the life-cycle.
| Constructor Summary | |
|---|---|
AbstractGUIEdit(String msgKey,
Object... msgParameters)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canRedo()
Can this task be done again |
boolean |
canUndo()
Can this task be undone |
protected abstract void |
doTask()
Runs the main task. |
String |
getDisplayName()
Gets a display name for this task |
boolean |
isDone()
Checks if the task has been done. |
void |
perform()
Performs this task |
void |
redo()
Redoes this task |
protected void |
setDone(boolean done)
Sets if the task has been done. |
void |
undo()
Undoes this task |
protected abstract void |
undoTask()
Undoes the main task. |
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractGUIEdit(String msgKey,
Object... msgParameters)
msgKey - Key for the messagemsgParameters - Parameters for the message| Method Detail |
|---|
public boolean canRedo()
GUIEdit
canRedo in interface GUIEdittrue if this task can be done againpublic boolean canUndo()
GUIEdit
canUndo in interface GUIEdittrue if this task can be undoneprotected abstract void doTask()
public String getDisplayName()
GUIEdit
getDisplayName in interface GUIEditpublic boolean isDone()
true if the task has been done.public void perform()
GUIEdit
perform in interface GUIEditpublic void redo()
GUIEdit
redo in interface GUIEditprotected void setDone(boolean done)
done - true if the task has been done.public void undo()
GUIEdit
undo in interface GUIEditprotected abstract void undoTask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||