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
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 -
Method Summary
Modifier and TypeMethodDescriptionintgetRow()This property has value when the action has been clicked from the row.protected int[]Deprecated.use getSelectedKeysprotected Map[]Returns the keys of the selected rows.protected TabgetTab()voidsetCollection(String collection) voidsetRow(int row) voidsetViewObject(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, validateViewValuesMethods 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
-
Constructor Details
-
TabBaseAction
public TabBaseAction()
-
-
Method Details
-
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
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
- Throws:
XavaException
-
getCollection
-
setCollection
-
setViewObject
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)
-