Package com.illumon.iris.gui.actions
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 TypeMethodDescriptionstatic voiddoSuspended(Runnable action, Suspendable... itemsToSuspend) Perform an operation after suspending the specified items.booleanCheck if the item is suspended.voidresume()Re-enable normal actions after a call tosuspend()voidsuspend()Suspend all normal actions untilresume()is called.
-
Method Details
-
suspend
void suspend()Suspend all normal actions untilresume()is called. -
resume
void resume()Re-enable normal actions after a call tosuspend() -
isSuspended
boolean isSuspended()Check if the item is suspended.- Returns:
- if the item is suspended
-
doSuspended
Perform an operation after suspending the specified items. These may be nested.- Parameters:
action- The action to performitemsToSuspend- The items to suspend before the action.
-