Interface MTQueryActionProvider.Support
- Enclosing interface:
- MTQueryActionProvider
public static interface MTQueryActionProvider.Support
-
Method Summary
Modifier and TypeMethodDescriptioncreateRevisionHandler
(Component invoker, Point p) Creates a utility for tracking locked revisions and showing them to the user.Returns all values in the current filter.getQuery()
The query that was executed to obtain the result.Returns an optional query id.Returns the current query result being displayed.Returns a reference to the component where the results are shown.boolean
Returns true if the selection is currently empty.void
Indicates that the entire result set should be updated.void
Shows a simple error message to the user.default JDialog
showPopup
(JComponent content, Optional<String> description, Runnable onOk, Runnable onCancel, Supplier<Boolean> inputValid, Component invoker, Point p, boolean closeOnValidationError) Shows a popup for performing an action.showPopup
(JComponent content, Optional<String> description, Runnable onOk, Runnable onCancel, Supplier<Boolean> inputValid, Component invoker, Point p, boolean hideable, boolean closeOnValidationError) Shows a popup for performing an action.default void
valueAdded
(Object value) Indicates that a value has been added.void
valuesRemoved
(List<Object> values) Indicates that values have been removed.void
valuesUpdated
(List<Object> values) Indicates that values have been updated.
-
Method Details
-
getQuery
MTQuery getQuery()The query that was executed to obtain the result. This should never need to be executed but it can be used to obtain the current state of the query, such as checking if it is filtering out "unused" objects for removal. -
getQueryResult
Optional<MTQueryResult> getQueryResult()Returns the current query result being displayed. -
getQueryID
Returns an optional query id. This can be- Returns:
-
isEmptySelection
boolean isEmptySelection()Returns true if the selection is currently empty. -
getAllValues
Returns all values in the current filter. -
getResultComponent
Component getResultComponent()Returns a reference to the component where the results are shown. -
createRevisionHandler
Creates a utility for tracking locked revisions and showing them to the user. -
showPopup
default JDialog showPopup(JComponent content, Optional<String> description, Runnable onOk, Runnable onCancel, Supplier<Boolean> inputValid, Component invoker, Point p, boolean closeOnValidationError) Shows a popup for performing an action. -
showPopup
JDialog showPopup(JComponent content, Optional<String> description, Runnable onOk, Runnable onCancel, Supplier<Boolean> inputValid, Component invoker, Point p, boolean hideable, boolean closeOnValidationError) Shows a popup for performing an action. -
showError
Shows a simple error message to the user. -
valueAdded
Indicates that a value has been added. -
valuesUpdated
Indicates that values have been updated. -
valuesRemoved
Indicates that values have been removed. -
resultUpdated
void resultUpdated()Indicates that the entire result set should be updated.
-