Class ReportCellSortAscending
- 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.ReportCellSortAscending
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportCellSortAscending extends AbstractReportCellSort
ReportCellSortAscending
will enable users to request the sorting of a given field on the grid in ascending order.- Since:
- MicroStrategy Web 8.0.1
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.transforms.contextmenus.AbstractReportCellSort
COLSORT, ROWSORT, SORT_ASCENDING, SORT_DESCENDING
-
-
Constructor Summary
Constructors Constructor Description ReportCellSortAscending(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 ascending.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 ascending 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
-
ReportCellSortAscending
public ReportCellSortAscending(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 ascending.- 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 ascending 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.
-
-