Interface MTQueryActionProvider
- All Superinterfaces:
Comparable<MTQueryActionProvider>
Provides actions that can be performed on the result
of queries (or a subset of it).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
getActions
(MTQueryActionProvider.Support support, List<Object> selectedValues) Returns a list of action groups, where each group is a list of actions that can be performed given a query and a selected subset of its result.default MTQueryActionProvider.Priority
Returns the priority of the action provider.default List<MTQueryActionProvider.QueryAction>
getSidebarActions
(MTQueryActionProvider.Support support, List<Object> selectedValues) Returns actions that should be shown when list results are shown in a sidebar.
-
Method Details
-
getPriority
Returns the priority of the action provider. High priority action provider will be given more priority than normal and low when showing the actions to the user, e.g. be first in a popup menu. -
compareTo
- Specified by:
compareTo
in interfaceComparable<MTQueryActionProvider>
-
getActions
List<List<MTQueryActionProvider.QueryAction>> getActions(MTQueryActionProvider.Support support, List<Object> selectedValues) Returns a list of action groups, where each group is a list of actions that can be performed given a query and a selected subset of its result.- Parameters:
support
- A support object that can be used to complete the necessary actions and notify the result view of any updates.selectedValues
- The currently selected values.
-
getSidebarActions
default List<MTQueryActionProvider.QueryAction> getSidebarActions(MTQueryActionProvider.Support support, List<Object> selectedValues) Returns actions that should be shown when list results are shown in a sidebar.
-