Class 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
  • Constructor Details

    • TabBaseAction

      public TabBaseAction()
  • Method Details

    • getSelected

      @Deprecated protected int[] getSelected()
      Deprecated.
      use getSelectedKeys
      Deprecated since 4.7

      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:
    • getSelectedKeys

      protected 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 String getCollection()
    • setCollection

      public void setCollection(String collection)
    • setViewObject

      public void setViewObject(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)