Interface MTQueryActionProvider.Support

Enclosing interface:
MTQueryActionProvider

public static interface MTQueryActionProvider.Support
  • 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

      default Optional<String> getQueryID()
      Returns an optional query id. This can be
      Returns:
    • isEmptySelection

      boolean isEmptySelection()
      Returns true if the selection is currently empty.
    • getAllValues

      List<Object> getAllValues()
      Returns all values in the current filter.
    • getResultComponent

      Component getResultComponent()
      Returns a reference to the component where the results are shown.
    • createRevisionHandler

      MTQueryActionProvider.RevisionHandler createRevisionHandler(Component invoker, Point p)
      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

      void showError(String errorMessage)
      Shows a simple error message to the user.
    • valueAdded

      default void valueAdded(Object value)
      Indicates that a value has been added.
    • valuesUpdated

      void valuesUpdated(List<Object> values)
      Indicates that values have been updated.
    • valuesRemoved

      void valuesRemoved(List<Object> values)
      Indicates that values have been removed.
    • resultUpdated

      void resultUpdated()
      Indicates that the entire result set should be updated.