Class ReportCellSortColAscending
- 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.ReportCellSortColAscending
-
- All Implemented Interfaces:
ContextMenuItemBuilder
public class ReportCellSortColAscending extends AbstractReportCellSort
ReportCellSortColAscending
will enable users to request the column sorting of a given field on the grid in ascending 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 ReportCellSortColAscending(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
-
ReportCellSortColAscending
public ReportCellSortColAscending(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.
-
-