public class DockingManager
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JMenuItem[] |
acceleratorItems
The items holding the docking accelerators like "DELETE" also used for separate windows.
|
protected ActionManager |
actionManager
The manager for the high-level shared actions.
|
protected DockingWindow |
activeWindow
Remembers the currently active docking window (e.g. for refresh).
|
protected BackgroundTaskManager |
bgTaskManager
Instance managing the background tasks.
|
protected java.util.Hashtable<java.lang.String,javax.swing.JToggleButton> |
cacheButtonsByActionCmd
Remembers the window buttons associated with the menu items.
|
protected java.util.Hashtable<javax.swing.JToggleButton,DockingWindow> |
cacheWindowByButton
Maps the docking bar buttons and the associated window objects.
|
protected DockingManagerController |
controller
The MVC controller implementing the callbacks.
|
protected com.jgoodies.uif_lite.panel.SimpleInternalFrame |
decoCenter |
protected boolean |
deiconify
Auto-deiconify separate windows?
|
protected DockingCenterView |
dockingCenterView
Viewing component with center component.
|
protected DockingNonCenterView |
dockingNonCenterView
Viewing component without center component.
|
protected DockingCenter |
dockingView
Current viewing component.
|
protected boolean |
exclusiveMode
Flag for exclusive mode.
|
protected DockingWindow |
exclusiveModeActive
Remembers the previous active window when exclusive mode is entered (restored).
|
protected java.awt.event.WindowListener |
frameListener
Listener to monitor the main window state (auto-iconify etc.).
|
protected boolean |
hideOnEscape
Hide windows on ESCAPE?
|
protected boolean |
iconify
Auto-iconify separate windows?
|
protected java.util.Vector<ApplicationStateListener> |
listeners
Container holding the state listeners.
|
protected javax.swing.JMenu |
menu
Menu to associate with this component.
|
static int |
MODE_DOCKING_EXCLUSIVE
Represents the docking mode of windows (window in dock and exclusive).
|
static int |
MODE_DOCKING_PINNED
Represents the docking mode of windows (window in dock and pinned).
|
static int |
MODE_DOCKING_UNPINNED
Represents the docking mode of windows (window in dock and unpinned).
|
protected javax.swing.JPanel |
panelBottom |
protected javax.swing.JPanel |
panelCenter |
protected javax.swing.JPanel |
panelLeft |
protected javax.swing.JPanel |
panelRight |
protected javax.swing.JPanel |
panelTop |
protected javax.swing.JCheckBoxMenuItem |
popupItemAutomatic
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemClose
Popup menu item.
|
protected javax.swing.JCheckBoxMenuItem |
popupItemExclusive
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemHide
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemMoveBottom
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemMoveLeft
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemMoveRight
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemMoveTop
Popup menu item.
|
protected javax.swing.JCheckBoxMenuItem |
popupItemPinned
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemShiftDown
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemShiftLeft
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemShiftRight
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemShiftUp
Popup menu item.
|
protected javax.swing.JMenuItem |
popupItemShow
Popup menu item.
|
protected javax.swing.JCheckBoxMenuItem |
popupItemUnpinned
Popup menu item.
|
protected javax.swing.JCheckBoxMenuItem |
popupItemWindow
Popup menu item.
|
protected java.awt.event.MouseListener |
popupListener
Context menu for window buttons.
|
protected javax.swing.JPopupMenu |
popupMenu
Context menu for window buttons.
|
protected javax.swing.JMenu |
popupMenuMove
Popup menu.
|
protected java.util.Stack<javax.swing.JToggleButton> |
stackBottom
Remembers the sequence of opened docking windows (bottom position).
|
protected java.util.Stack<java.lang.String> |
stackGlobal
Remembers the ID sequence of opened docking windows to be restored.
|
protected java.util.Stack<javax.swing.JToggleButton> |
stackLeft
Remembers the sequence of opened docking windows (left position).
|
protected java.util.Stack<javax.swing.JToggleButton> |
stackRight
Remembers the sequence of opened docking windows (right position).
|
protected java.util.Stack<javax.swing.JToggleButton> |
stackTop
Remembers the sequence of opened docking windows (top position).
|
protected StatusBar |
statusBar
Application status bar if available.
|
protected java.awt.event.FocusListener |
unpinnedListener
Listener implementing the unpinned mode.
|
protected java.awt.Window |
window
The window hosting this docking manager.
|
protected int |
windowCloseAction
How to react if a separate window shall be closed.
|
protected java.awt.event.WindowFocusListener |
windowListener
Listener to (de)activate docking windows in separate windows.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DockingManager()
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
void |
activateObservation(java.awt.Component comp)
Adds mouse listener recursively to docking window components.
|
void |
activateObservation(DockingWindow window)
Adds mouse listener recursively to docking window components.
|
void |
addApplicationStateListener(ApplicationStateListener listener)
Adds a listener reacting on application state changes.
|
javax.swing.JToggleButton |
addWindow(DockingWindow window,
int location)
Adds a new window to be managed here.
|
boolean |
canExit()
Checks if the application can exit.
|
boolean |
closeWindow(DockingWindow window)
Closes the specified docking window if available.
|
void |
deactivateObservation(java.awt.Component comp)
Removes mouse listener recursively from docking window components.
|
void |
deactivateObservation(DockingWindow window)
Removes mouse listener recursively from docking window components.
|
void |
doLayout()
Causes this container to lay out its components.
|
protected void |
finalize()
Clean-up method to help the gc.
|
DockingWindow |
findFirstBestWindow(java.lang.Class type)
Determines the first-best instance of a certain kind currently installed.
|
DockingWindow |
findFirstBestWindow(java.lang.String clazz)
Determines the first-best instance of a certain kind currently installed.
|
DockingWindow[] |
findWindows(java.lang.Class type)
Determines the instances of a certain kind currently installed.
|
static DockingWindow[] |
findWindows(java.awt.Component comp,
java.lang.Class type)
Determines the instances of a certain kind currently installed.
|
static DockingWindow[] |
findWindows(java.awt.Component comp,
java.lang.String clazz)
Determines the instances of a certain kind currently installed.
|
DockingWindow[] |
findWindows(java.lang.String clazz)
Determines the instances of a certain kind currently installed.
|
DockingWindow |
getActiveWindow()
Provides the docking window currently being active (dock or separate window).
|
DockingWindow |
getActiveWindowInDock()
Provides the docking window currently being active in the dock.
|
DockingWindow[] |
getAllWindows()
Provides all windows currently managed by the manager.
|
DockingWindow[] |
getAllWindows(int location)
Provides the windows handled by the desired bar.
|
BackgroundTaskManager |
getBackgroundTaskManager()
Getter for background task manager.
|
java.lang.String[] |
getPressedSequence()
Gets the global opening sequence of docking windows to be restored on application restart.
|
DockingWindow[] |
getSeparateWindows()
Provides the docking windows in separate window mode (own frame).
|
StatusBar |
getStatusBar()
Provides the status bar of the application to print messages, progress etc.
|
protected DockingWindow |
getWindow(java.lang.String id)
Finds the docking window associated with the given ID.
|
static com.jgoodies.uif_lite.panel.SimpleInternalFrame |
getWindowDecoration(DockingWindow window)
Determines the decoration component (internal frame) for a specific docking window.
|
int |
getWindowLocation(DockingWindow window)
Determines the location of the specified docking window.
|
boolean |
hideWindow(DockingWindow window)
Hides the specified docking window if available and currently shown.
|
void |
installDockingAccelerators(javax.swing.JFrame frame)
Convenience to add the docking accelerators like "DELETE" also used for separate windows.
|
static boolean |
isAutomatic(DockingWindow window)
Checks whether the window may be controlled externally.
|
void |
refresh()
Updates the currently active docking window if available.
|
void |
removeApplicationStateListener(ApplicationStateListener listener)
Removes a listener reacting on application state changes.
|
void |
removeWindow(DockingWindow window)
Removes an existing window from the current location.
|
void |
setActionManager(ActionManager manager)
Sets the manager for the high-level shared actions
|
void |
setActiveWindow(DockingWindow window)
Updates the docking window decorations (enabled/disabled).
|
protected void |
setActiveWindow(java.lang.String id)
Updates the docking window decorations (enabled/disabled).
|
void |
setCenterComponent(java.awt.Component comp)
Sets the component to be displayed in the center region of the manager.
|
void |
setDividerSize(int size)
Adjusts the size of the dividers used for dragging.
|
void |
setDockingAccelerators(javax.swing.JMenuItem[] accelitems)
Provides the items holding the docking accelerators like "DELETE" also used for separate windows.
|
void |
setMainWindowActions(boolean iconify,
boolean deiconify)
Configures if ESCAPE hides the docking windows.
|
void |
setMenu(javax.swing.JMenu menu)
Sets the menu representing the current docking windows.
|
void |
setNonCenterBackgroundComponent(java.awt.Component comp)
Sets the component to be displayed in the center region of the manager.
|
void |
setParentWindow(java.awt.Window parent)
Sets the top-level container this docking manager is displayed.
|
void |
setPositions(java.lang.String[] windowIDs,
int location)
Tries to restore the given sorting of windows based on their unique identifiers.
|
void |
setPressedSequence(java.lang.String[] sequence)
Sets the global opening sequence of docking windows to be restored on application restart.
|
void |
setStatusBar(StatusBar bar)
Sets the status bar of the application to print messages, progress etc.
|
void |
setWindowCloseAction(int closeaction)
Configures if ESCAPE hides the docking windows.
|
void |
setWindowCloseOnEscape(boolean enable)
Configures if ESCAPE hides the docking windows.
|
boolean |
showWindow(DockingWindow window)
Shows the specified docking window if available.
|
boolean |
showWindow(DockingWindow window,
boolean show)
Shows the specified docking window if available (only button becomes visible).
|
boolean |
showWindowNonActive(DockingWindow window)
Shows the specified docking window if available but it does not become the active window.
|
TaskDialog |
startBackgroundTask(BackgroundTask bgtask,
javax.swing.Icon icon,
java.lang.String unitid,
TaskDialogCustom comp)
Adds a new task to be executed by the internal background task manager.
|
void |
updateActionDelegate(DockingWindow window)
Updates the action delegate for the active window.
|
void |
updateBar(java.util.Stack stack)
Updates the docking window hierarchy of a specific location after changes were applied.
|
void |
updateButton(DockingWindow window)
Let's the docking manager update the button associated with the given window.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int MODE_DOCKING_PINNED
public static final int MODE_DOCKING_UNPINNED
public static final int MODE_DOCKING_EXCLUSIVE
protected java.util.Hashtable<javax.swing.JToggleButton,DockingWindow> cacheWindowByButton
protected java.util.Stack<javax.swing.JToggleButton> stackTop
protected java.util.Stack<javax.swing.JToggleButton> stackBottom
protected java.util.Stack<javax.swing.JToggleButton> stackLeft
protected java.util.Stack<javax.swing.JToggleButton> stackRight
protected java.util.Stack<java.lang.String> stackGlobal
protected javax.swing.JMenu menu
protected java.util.Hashtable<java.lang.String,javax.swing.JToggleButton> cacheButtonsByActionCmd
protected DockingCenter dockingView
protected DockingCenterView dockingCenterView
protected DockingNonCenterView dockingNonCenterView
protected boolean exclusiveMode
protected DockingWindow exclusiveModeActive
protected java.awt.event.MouseListener popupListener
protected javax.swing.JPopupMenu popupMenu
protected javax.swing.JMenuItem popupItemClose
protected javax.swing.JMenuItem popupItemHide
protected javax.swing.JMenu popupMenuMove
protected javax.swing.JMenuItem popupItemMoveTop
protected javax.swing.JMenuItem popupItemMoveBottom
protected javax.swing.JMenuItem popupItemMoveLeft
protected javax.swing.JMenuItem popupItemMoveRight
protected javax.swing.JMenuItem popupItemShiftUp
protected javax.swing.JMenuItem popupItemShiftDown
protected javax.swing.JMenuItem popupItemShiftLeft
protected javax.swing.JMenuItem popupItemShiftRight
protected javax.swing.JMenuItem popupItemShow
protected javax.swing.JCheckBoxMenuItem popupItemPinned
protected javax.swing.JCheckBoxMenuItem popupItemUnpinned
protected javax.swing.JCheckBoxMenuItem popupItemExclusive
protected javax.swing.JCheckBoxMenuItem popupItemWindow
protected javax.swing.JCheckBoxMenuItem popupItemAutomatic
protected StatusBar statusBar
protected BackgroundTaskManager bgTaskManager
protected java.awt.event.FocusListener unpinnedListener
protected DockingWindow activeWindow
protected DockingManagerController controller
protected ActionManager actionManager
protected java.awt.Window window
protected java.awt.event.WindowFocusListener windowListener
protected javax.swing.JMenuItem[] acceleratorItems
protected boolean hideOnEscape
protected int windowCloseAction
protected java.util.Vector<ApplicationStateListener> listeners
protected boolean iconify
protected boolean deiconify
protected java.awt.event.WindowListener frameListener
protected javax.swing.JPanel panelTop
protected javax.swing.JPanel panelLeft
protected javax.swing.JPanel panelRight
protected javax.swing.JPanel panelBottom
protected javax.swing.JPanel panelCenter
protected com.jgoodies.uif_lite.panel.SimpleInternalFrame decoCenter
public DockingManager()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- Error indicationpublic javax.swing.JToggleButton addWindow(DockingWindow window, int location)
window
- The window to be addedlocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)java.lang.NullPointerException
- Error indicationpublic void activateObservation(DockingWindow window)
window
- The docking windowpublic void activateObservation(java.awt.Component comp)
comp
- The comp, recursed if it is a containerpublic void deactivateObservation(DockingWindow window)
window
- The docking windowpublic void deactivateObservation(java.awt.Component comp)
comp
- The comp, recursed if it is a containerpublic DockingWindow[] getAllWindows(int location)
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)java.lang.IllegalArgumentException
- Error indicationpublic void setPositions(java.lang.String[] windowIDs, int location)
windowIDs
- The sortinglocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)java.lang.IllegalArgumentException
- Error indicationpublic void removeWindow(DockingWindow window)
window
- The window to be removedjava.lang.NullPointerException
- Error indicationpublic void setCenterComponent(java.awt.Component comp)
comp
- The center component, null
deactivatespublic void setNonCenterBackgroundComponent(java.awt.Component comp)
comp
- The background component, null
deactivatespublic void setMenu(javax.swing.JMenu menu)
menu
- The menu reflecting the current docking windowsjava.lang.NullPointerException
- If parameter is null
public void updateBar(java.util.Stack stack)
stack
- The manipulated stack which shall be reflectedpublic void setDividerSize(int size)
size
- The divider sizepublic DockingWindow[] getAllWindows()
public DockingWindow[] getSeparateWindows()
public int getWindowLocation(DockingWindow window)
window
- The window to be displayedTOP, BOTTOM, LEFT, RIGHT
), -1 in error casepublic boolean closeWindow(DockingWindow window)
window
- The desired docking windownull
if not availablepublic boolean showWindow(DockingWindow window)
window
- The desired docking windowpublic boolean showWindow(DockingWindow window, boolean show)
window
- The desired docking windowshow
- Show the window (click button)?public boolean showWindowNonActive(DockingWindow window)
window
- The desired docking windowpublic boolean hideWindow(DockingWindow window)
window
- The desired docking windownull
if not availablepublic void refresh()
protected DockingWindow getWindow(java.lang.String id)
id
- The ID of the docking windownull
if not availablejava.lang.NullPointerException
- If id
is null
protected void setActiveWindow(java.lang.String id)
id
- The ID of the active docking window, null
if non is availablepublic void setActiveWindow(DockingWindow window)
window
- The active docking window, null
if non is availablepublic DockingWindow getActiveWindow()
null
if none is availablepublic DockingWindow getActiveWindowInDock()
null
if none is availablepublic void updateActionDelegate(DockingWindow window)
window
- The window, active window if null
public static com.jgoodies.uif_lite.panel.SimpleInternalFrame getWindowDecoration(DockingWindow window)
window
- The interesting docking windownull
if non is availablepublic void setStatusBar(StatusBar bar)
bar
- The application status bar, may be null
public StatusBar getStatusBar()
null
if not availablepublic DockingWindow[] findWindows(java.lang.String clazz)
clazz
- The window class type to be foundjava.lang.NullPointerException
- Error indicationpublic DockingWindow findFirstBestWindow(java.lang.String clazz)
clazz
- The window class type to be foundnull
java.lang.NullPointerException
- Error indicationpublic DockingWindow[] findWindows(java.lang.Class type)
type
- The window class type to be foundjava.lang.NullPointerException
- Error indicationpublic DockingWindow findFirstBestWindow(java.lang.Class type)
type
- The window class type to be foundnull
java.lang.NullPointerException
- Error indicationpublic static DockingWindow[] findWindows(java.awt.Component comp, java.lang.String clazz)
comp
- The managed componentclazz
- The window class type to be foundjava.lang.NullPointerException
- Error indicationpublic static DockingWindow[] findWindows(java.awt.Component comp, java.lang.Class type)
comp
- The child componenttype
- The window class type to be foundjava.lang.NullPointerException
- Error indicationpublic TaskDialog startBackgroundTask(BackgroundTask bgtask, javax.swing.Icon icon, java.lang.String unitid, TaskDialogCustom comp)
TaskWindow
was added by the application this is used to display the
list of running background tasks. Then the user can choose whether to let the dialog
finish the task or to execute it completely in the background so that the user can work
simultaneously (e.g. downloading a file does not require the user to wait).
bgtask
- The new task to be executedicon
- The icon to be displayedunitid
- The identifier for the configurable unit, use default if null
comp
- The optional custom component, the preferred height should be setnull
if not displayed (background mode)java.lang.NullPointerException
- Error indicationpublic BackgroundTaskManager getBackgroundTaskManager()
public void doLayout()
doLayout
in class java.awt.Container
public void setActionManager(ActionManager manager)
manager
- The action managerpublic java.lang.String[] getPressedSequence()
WindowConfigurator
class to restore the windows exactly
as the user terminated the application. The window IDs can easily be stored persistently.
public void setPressedSequence(java.lang.String[] sequence)
WindowConfigurator
class to restore the windows exactly
as the user terminated the application. The window IDs can easily be stored persistently.
sequence
- The global opening sequence, may have zero-lengthpublic void updateButton(DockingWindow window)
window
- The docking windowpublic static boolean isAutomatic(DockingWindow window)
window
- The docking windowpublic void setDockingAccelerators(javax.swing.JMenuItem[] accelitems)
accelitems
- The acceleratorspublic void installDockingAccelerators(javax.swing.JFrame frame)
frame
- The windowpublic void setParentWindow(java.awt.Window parent)
parent
- The parental window (dialog, frame, ...)java.lang.NullPointerException
- If a parameter is null
public void setWindowCloseOnEscape(boolean enable)
enable
- Use ESCAPE?public void setWindowCloseAction(int closeaction)
closeaction
- One of DockingUnit.CLOSE_DOCK_SHOW
|...java.lang.IllegalArgumentException
- If a parameter is invalidpublic void addApplicationStateListener(ApplicationStateListener listener)
listener
- The listener instancejava.lang.NullPointerException
- If parameter is null
public void removeApplicationStateListener(ApplicationStateListener listener)
listener
- The listener instancejava.lang.NullPointerException
- If parameter is null
public boolean canExit()
false
.
public void setMainWindowActions(boolean iconify, boolean deiconify)
iconify
- Auto-iconify separate windows?deiconify
- Auto-deiconify separate windows?Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.