Class ReportCellSortColDescending
- java.lang.Object
-
- com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
-
- com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellSort
-
- com.microstrategy.web.app.transforms.contextmenus.ReportCellSortColDescending
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportCellSortColDescending extends AbstractReportCellSort
ReportCellSortColDescending
will enable users to request the column sorting of a given field on the grid in descending order.- Since:
- MicroStrategy Web 8.0.2
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellSort
COLSORT, ROWSORT, SORT_ASCENDING, SORT_DESCENDING
-
-
Constructor Summary
Constructors Constructor Description ReportCellSortColDescending(Shortcut definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextMenuItem
createItem(TransformContext context)
Overwrites the parent method by adding the check image if the current sorting selected for the target object is already descending.protected java.lang.String
getJSCode(TransformContext context)
Overwrites the parent method by specifying the event information that will ultimately populate the menu option with the request information needed for submitting the sort descending manipulation.-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellSort
getJSCode, getSortEvent, getSortType, isActionEnabled, isSortAscending, isSorted, setSortType
-
Methods inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellContextMenuItemBuilder
canDefineDerivedElements, getCell, getFormalParameter, getIntValue, getPassThroughMode, getStringValue, getTransform, isFeatureAvailable, isIframeEnabled, isItemAvailable, isRW, isTrue
-
Methods inherited from class com.microstrategy.web.app.gui.ContextMenu.DefaultContextMenuItemBuilder
createItem, getDefinition, getItemKey, getScript
-
-
-
-
Constructor Detail
-
ReportCellSortColDescending
public ReportCellSortColDescending(Shortcut definition)
-
-
Method Detail
-
createItem
public ContextMenuItem createItem(TransformContext context)
Overwrites the parent method by adding the check image if the current sorting selected for the target object is already descending.- Specified by:
createItem
in interfaceContextMenuItemBuilder
- Overrides:
createItem
in classAbstractReportCellContextMenuItemBuilder
- Parameters:
context
-TransformContext
initialized instance with the information on where this option will be used- Returns:
- a new instance of a
ContextMenuItem
initialized with the option information to present to the user.
-
getJSCode
protected java.lang.String getJSCode(TransformContext context)
Overwrites the parent method by specifying the event information that will ultimately populate the menu option with the request information needed for submitting the sort descending manipulation.- Specified by:
getJSCode
in classAbstractReportCellContextMenuItemBuilder
- Parameters:
context
-TransformContext
initialized instance with the information on where this option will be used- Returns:
- String value with the JavaScript information to trigger when the option is selected.
-
-