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.booleanReturns true if the selection is currently empty.voidIndicates that the entire result set should be updated.voidShows a simple error message to the user.default JDialogshowPopup(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 voidvalueAdded(Object value) Indicates that a value has been added.voidvaluesRemoved(List<Object> values) Indicates that values have been removed.voidvaluesUpdated(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.
-