org.openxava.actions
Class NavigationFromReferenceBaseAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.ReferenceBaseAction
              extended by org.openxava.actions.NavigationFromReferenceBaseAction
All Implemented Interfaces:
IAction, IChainAction, IChangeControllersAction, IChangeModeAction, IModuleContextAction, IRequestAction
Direct Known Subclasses:
CreateNewFromReferenceAction, ModifyFromReferenceAction

public abstract class NavigationFromReferenceBaseAction
extends ReferenceBaseAction
implements IChangeControllersAction, IChainAction

Author:
Javier Paniza

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openxava.actions.ReferenceBaseAction
ReferenceBaseAction.ViewInfo
 
Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeControllersAction
DEFAULT_CONTROLLERS, EMPTY_CONTROLLER, PREVIOUS_CONTROLLERS, SAME_CONTROLLERS
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
NavigationFromReferenceBaseAction()
           
 
Method Summary
 void execute()
           
 java.lang.String getController()
           
protected abstract  java.lang.String getCustomController()
           
protected abstract  java.lang.String getDefaultController()
           
 java.lang.String getModel()
           
abstract  java.lang.String getNextAction()
          The qualified name of the next action to execute.
 java.lang.String[] getNextControllers()
           
 boolean isShowDialog()
           
 void setController(java.lang.String string)
           
 void setModel(java.lang.String string)
           
 void setShowDialog(boolean showDialog)
           
 
Methods inherited from class org.openxava.actions.ReferenceBaseAction
getKeyProperty, getReferenceSubview, getViewInfo, setKeyProperty, setReferenceSubview
 
Methods inherited from class org.openxava.actions.ViewBaseAction
closeDialog, getModelName, getPreviousView, getPreviousViews, getView, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showDialog, showNewView, showView
 
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, returnToPreviousControllers, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
 

Constructor Detail

NavigationFromReferenceBaseAction

public NavigationFromReferenceBaseAction()
Method Detail

getNextAction

public abstract java.lang.String getNextAction()
                                        throws java.lang.Exception
Description copied from interface: IChainAction
The qualified name of the next action to execute.

Qualified name is name of the controller + name of the action as in controllers.xml file. For example, CRUD.new.

Specified by:
getNextAction in interface IChainAction
Throws:
java.lang.Exception

getCustomController

protected abstract java.lang.String getCustomController()

getDefaultController

protected abstract java.lang.String getDefaultController()

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface IAction
Overrides:
execute in class ReferenceBaseAction
Throws:
java.lang.Exception

getNextControllers

public java.lang.String[] getNextControllers()
                                      throws java.lang.Exception
Specified by:
getNextControllers in interface IChangeControllersAction
Throws:
java.lang.Exception

getModel

public java.lang.String getModel()

setModel

public void setModel(java.lang.String string)

getController

public java.lang.String getController()
                               throws XavaException
Throws:
XavaException

setController

public void setController(java.lang.String string)

isShowDialog

public boolean isShowDialog()

setShowDialog

public void setShowDialog(boolean showDialog)