Package org.openxava.actions
Class TabBaseAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.TabBaseAction
-
- All Implemented Interfaces:
IAction
,IChangeModeAction
,IModuleContextAction
,IRequestAction
- Direct Known Subclasses:
ChangeColumnNameAction
,ConfigureImportAction
,CreateNewMyReportAction
,DeleteSelectedAction
,DeselectRowsAction
,DisableCustomizeListAction
,FilterTabBaseAction
,GenerateReportAction
,GoChangeColumnNameAction
,GoChangeListConfigurationAction
,GoNextPageAction
,GoPageAction
,GoPreviousPageAction
,GoSaveListConfigurationAction
,HideRowsAction
,InitChartAction
,InitListAction
,LoadMoreCardsAction
,MyReportsAction
,OnChangeMyReportColumnBaseAction
,OnChangeMyReportNameAction
,OrderByAction
,RemoveCollectionColumnSumAction
,RemoveColumnSumAction
,RemoveListConfigurationAction
,RemoveMyReportAction
,SaveAction
,SaveListConfigurationNameAction
,SelectListFormatAction
,SetOptimizeChunkSizeAction
,SetPageRowCountAction
,ShowMoreColumnsAction
,ShowRowsAction
,SimpleTemplaterAction
,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
Constructors Constructor Description TabBaseAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCollection()
int
getRow()
This property has value when the action has been clicked from the row.protected int[]
getSelected()
Deprecated.use getSelectedKeysprotected java.util.Map[]
getSelectedKeys()
Returns the keys 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
changeThisPropertyByViewValue, closeDialog, getModelName, getPreviousView, getPreviousViews, getView, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showDialog, showNewView, showView, validateViewValues
-
Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, commit, executeAction, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getQualifiedActionIfAvailable, getRequest, removeActions, returnToPreviousControllers, rollback, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
-
-
-
-
Method Detail
-
getSelected
@Deprecated protected int[] getSelected()
Deprecated.use getSelectedKeysDeprecated since 4.7Returns 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:
-
getSelectedKeys
protected java.util.Map[] getSelectedKeys()
Returns the keys 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)
-
-