|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.AbstractGUIAction
net.sf.doolin.gui.action.AbstractSimpleGUIAction
net.sf.doolin.gui.action.DialogAction<T>
T - Type of the data for the dialogpublic abstract class DialogAction<T>
This action opens a dialog.
| Constructor Summary | |
|---|---|
DialogAction()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(ActionContext actionContext)
Executes the action and throws any kind of error. |
ViewOpener<T> |
getDialog()
Gets the dialog. |
DataFactory<T> |
getModelFactory()
Gets the data factory. |
protected void |
onCancelled(ActionContext actionContext,
T bean)
This method is called when the dialog has been cancelled. |
protected abstract void |
onOK(ActionContext actionContext,
T bean)
This method is called when the dialog has been validated. |
void |
setDialog(ViewOpener<T> dialog)
Sets the dialog. |
void |
setModelFactory(DataFactory<T> dataFactory)
Sets the data factory. |
void |
setUseContext(boolean useContext)
Deprecated. Use AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor) |
| Methods inherited from class net.sf.doolin.gui.action.AbstractSimpleGUIAction |
|---|
getIconId, getIconIDExpression, getId, getShortcut, getShortcutExpression, getTextExpression, getTip, getTipExpression, getTitle, init, setBeanName, setIconId, setShortcut, setTip, setTitle, toString |
| Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction |
|---|
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DialogAction()
| Method Detail |
|---|
protected void doExecute(ActionContext actionContext)
throws Exception
AbstractGUIAction
doExecute in class AbstractGUIActionactionContext - the context
Exception - the exceptionpublic ViewOpener<T> getDialog()
public DataFactory<T> getModelFactory()
protected void onCancelled(ActionContext actionContext,
T bean)
throws Exception
actionContext - Action contextbean - Edited bean
Exception - If an error occurs while cancelling the dialog
protected abstract void onOK(ActionContext actionContext,
T bean)
throws Exception
actionContext - Action contextbean - Edited bean
Exception - If an error occurs while validating the dialogpublic void setDialog(ViewOpener<T> dialog)
dialog - the new dialogpublic void setModelFactory(DataFactory<T> dataFactory)
dataFactory - the new data factory@Deprecated public void setUseContext(boolean useContext)
AbstractGUIAction.setActionContextDataExtractor(net.sf.doolin.gui.action.support.ActionContextDataExtractor)
false by default,
meaning that the context data (and not the context contextual data) is
used.
useContext - true if the bean for the dialog is the contextual
data of the action context or its data itself.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||