|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.primary.view.impl.choice.AbstractChoiceAction
org.jtheque.primary.view.impl.choice.AbstractDeleteChoiceAction
public abstract class AbstractDeleteChoiceAction
An abstract delete action for the choice view.
Constructor Summary | |
---|---|
AbstractDeleteChoiceAction()
|
Method Summary | |
---|---|
protected void |
addDeleters(Deleter<? extends org.jtheque.core.managers.persistence.able.Entity>... deleters)
Set the deleters to use to execute the action. |
protected static void |
addEditIfDeleted(boolean deleted,
UndoableEdit edit)
Add an edit to undo-redo manager if deleted. |
boolean |
canDoAction(String action)
Indicate if this action can do the type of action. |
void |
execute()
Execute the action. |
Methods inherited from class org.jtheque.primary.view.impl.choice.AbstractChoiceAction |
---|
getContent, getSelectedItem, setContent, setSelectedItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDeleteChoiceAction()
Method Detail |
---|
protected final void addDeleters(Deleter<? extends org.jtheque.core.managers.persistence.able.Entity>... deleters)
deleters
- The deleters to use.public final boolean canDoAction(String action)
ChoiceAction
action
- The type of action.
true
if the action can do this type else false
.public void execute()
ChoiceAction
protected static void addEditIfDeleted(boolean deleted, UndoableEdit edit)
deleted
- The boolean tag of the delete operation.edit
- The undoable edit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |