public class DialogBlocker extends Object
| Constructor and Description |
|---|
DialogBlocker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAllowedKeyStroke(KeyStroke stroke)
Add the specified key stroke to the set of key strokes that will be
allowed through even if a dialog is blocked.
|
static void |
addAllowedKeyStrokesFromMenuBar(JMenuBar menuBar)
Internal use. Invoked by the application controller.
|
static void |
addAllowedMnemonicsFromButtons(Component component)
* Internal use. Invoked by the application controller.
|
static void |
block(RootPaneContainer rootPane)
Block the specified container and displays a wait cursor.
|
static boolean |
isBlocked(Component rootPane)
Checks if the specified window component is blocked.
|
static void |
unblock(RootPaneContainer rootPane)
Unblocks the specified container and shows the default cusor.
|
public static void block(RootPaneContainer rootPane)
rootPane - the component to block.public static void unblock(RootPaneContainer rootPane)
rootPane - the component to unblock.public static boolean isBlocked(Component rootPane)
rootPane - the window componenttrue if blocked.public static void addAllowedKeyStrokesFromMenuBar(JMenuBar menuBar)
Adds all registred accelerators from the menu bar to the list of allowed key strokes.
menuBar - the application menu bar.public static void addAllowedMnemonicsFromButtons(Component component)
Adds the mnenmonics from the component. The component can be an AbstractButton, or it can be a Container containing abstract buttons.
component - either a button or a container with buttons.public static void addAllowedKeyStroke(KeyStroke stroke)
stroke - the key stroke to allow through.Copyright © 2006–2018 Esito AS. All rights reserved.