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:
- 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
|
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 |
TabBaseAction
public TabBaseAction()
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)