org.openxava.actions
Class ViewDetailAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.TabBaseAction
              extended by org.openxava.actions.ViewDetailAction
All Implemented Interfaces:
IAction, IChainAction, IChangeModeAction, IModelAction, IModuleContextAction, IRequestAction
Direct Known Subclasses:
DeleteAction

public class ViewDetailAction
extends TabBaseAction
implements IChainAction, IModelAction

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
ViewDetailAction()
           
 
Method Summary
 void execute()
           
 int getIncrement()
           
 Tab getMainTab()
           
 java.lang.String getNextAction()
          The qualified name of the next action to execute.
 int getRow()
          This property has value when the action has been clicked from the row.
protected  Tab getTab()
           
 boolean isAtListBegin()
           
 boolean isGoFirst()
           
 boolean isNoElementsInList()
           
 void setGoFirst(boolean b)
           
 void setIncrement(int i)
           
 void setMainTab(Tab mainTab)
           
 void setModel(java.lang.String modelName)
           
 void setNextAction(java.lang.String string)
           
 void setRow(int i)
           
 
Methods inherited from class org.openxava.actions.TabBaseAction
getCollection, getSelected, setCollection, setViewObject
 
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

ViewDetailAction

public ViewDetailAction()
Method Detail

getTab

protected Tab getTab()
              throws XavaException
Overrides:
getTab in class TabBaseAction
Throws:
XavaException

execute

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

getRow

public int getRow()
Description copied from class: TabBaseAction
This property has value when the action has been clicked from the row.

If not its value is -1.

Overrides:
getRow in class TabBaseAction

setRow

public void setRow(int i)
Overrides:
setRow in class TabBaseAction

getNextAction

public java.lang.String getNextAction()
                               throws XavaException
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:
XavaException

setNextAction

public void setNextAction(java.lang.String string)

getIncrement

public int getIncrement()

setIncrement

public void setIncrement(int i)

isGoFirst

public boolean isGoFirst()

setGoFirst

public void setGoFirst(boolean b)

isNoElementsInList

public boolean isNoElementsInList()

isAtListBegin

public boolean isAtListBegin()

setModel

public void setModel(java.lang.String modelName)
Specified by:
setModel in interface IModelAction

getMainTab

public Tab getMainTab()

setMainTab

public void setMainTab(Tab mainTab)