org.openxava.actions
Class TabBaseAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.TabBaseAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction
Direct Known Subclasses:
CustomizeListAction, DeleteSelectedAction, DeselectRowsAction, FilterAction, GenerateReportAction, GoNextPageAction, GoPageAction, GoPreviousPageAction, HideRowsAction, InitListAction, MoveColumnToLeftAction, MoveColumnToRightAction, OrderByAction, RemoveColumnAction, RemoveColumnSumAction, SetPageRowCountAction, ShowRowsAction, SumColumnAction, ViewDetailAction

public abstract class TabBaseAction
extends ViewBaseAction

Base class for actions that works with Tabs.

It's not needed to inject the xava_tab objects to these actions. These actions obtain the appropriate tab object depend on the current collection or if not a collection from main list mode.

Author:
Javier Paniza

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
TabBaseAction()
           
 
Method Summary
 java.lang.String getCollection()
           
 int getRow()
          This property has value when the action has been clicked from the row.
protected  int[] getSelected()
          Returns the indexes of the selected rows.
protected  Tab getTab()
           
 void setCollection(java.lang.String collection)
           
 void setRow(int row)
           
 void setViewObject(java.lang.String viewObject)
          Extract from the viewObject the name of the collection.
 
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
execute
 
Methods inherited from interface org.openxava.actions.IAction
execute
 
Methods inherited from interface org.openxava.actions.IAction
execute
 

Constructor Detail

TabBaseAction

public TabBaseAction()
Method Detail

getSelected

protected int[] getSelected()
Returns the indexes of the selected rows.

If row property has value return an array with it as unique value. This happens when the action has been clicked from the row,

Returns:

getTab

protected Tab getTab()
              throws XavaException
Throws:
XavaException

getCollection

public java.lang.String getCollection()

setCollection

public void setCollection(java.lang.String collection)

setViewObject

public void setViewObject(java.lang.String viewObject)
Extract from the viewObject the name of the collection.

Useful for using Tab actions for collections.


getRow

public int getRow()
This property has value when the action has been clicked from the row.

If not its value is -1.


setRow

public void setRow(int row)