Interface Suspendable

All Known Implementing Classes:
AbstractSuspendable, SuspendableActionListener, SuspendableDocumentListener, SuspendableItemListener, SuspendableListDataListener, SuspendableTableModelListener

public interface Suspendable
This interface is intended for use with UI components that will be interacted with by users, as well as programmatically. It provides a method to disable normal responses if required.
  • Method Summary

    Modifier and Type Method Description
    static void doSuspended​(Runnable action, Suspendable... itemsToSuspend)
    Perform an operation after suspending the specified items.
    boolean isSuspended()
    Check if the item is suspended.
    void resume()
    Re-enable normal actions after a call to suspend()
    void suspend()
    Suspend all normal actions until resume() is called.
  • Method Details

    • suspend

      void suspend()
      Suspend all normal actions until resume() is called.
    • resume

      void resume()
      Re-enable normal actions after a call to suspend()
    • isSuspended

      boolean isSuspended()
      Check if the item is suspended.
      Returns:
      if the item is suspended
    • doSuspended

      static void doSuspended​(Runnable action, Suspendable... itemsToSuspend)
      Perform an operation after suspending the specified items. These may be nested.
      Parameters:
      action - The action to perform
      itemsToSuspend - The items to suspend before the action.