Class MagellanDesktop

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, PreferencesFactory, net.infonode.docking.DockingWindowListener

    public class MagellanDesktop
    extends javax.swing.JPanel
    implements java.awt.event.WindowListener, java.awt.event.ActionListener, PreferencesFactory, net.infonode.docking.DockingWindowListener
    This class represents the Magellan Desktop. It contains all visible components. We use this class to load, set and save their positions.
    Author:
    Roger Butenuth, Andreas Gampe, Thoralf Rickert
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  MagellanDesktop.BackgroundPanel  
      protected class  MagellanDesktop.KeyHandler
      A handler class for key events.
      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BOOKMARKS_IDENTIFIER
      Name of the BOOKMARKS component
      static java.lang.String COMMANDS_IDENTIFIER
      Name of the COMMANDS component
      static java.lang.String DEBUG_IDENTIFIER
      Name of the DEBUG component
      static java.lang.String DESCRIPTION_IDENTIFIER
      Name of the DESCRIPTION component
      static java.lang.String DETAILS_IDENTIFIER
      Name of the DETAILS component
      static java.lang.String DOCKING_LAYOUT_FILE
      The name of the docking layout file
      static java.lang.String ECHECK_IDENTIFIER
      Name of ECheck component
      static java.lang.String HISTORY_IDENTIFIER
      Name of the HISTORY component
      static java.lang.String MAP_IDENTIFIER
      Name of MAP component
      static java.lang.String MESSAGES_IDENTIFIER
      Name of the MESSAGES component
      static java.lang.String MINIMAP_IDENTIFIER
      Name of MINIMAP component
      static java.lang.String NAME_IDENTIFIER
      Name of the NAME component
      static java.lang.String NAMEDESCRIPTION_IDENTIFIER
      Name of the NAME&DESCRIPTION component
      static java.lang.String ORDERS_IDENTIFIER
      Name of the ORDERS component
      static java.lang.String OVERVIEW_IDENTIFIER
      Name of the OVERVIEW component
      static java.lang.String OVERVIEWHISTORY_IDENTIFIER
      Name of the OVERVIEW&HISTORY component
      static java.lang.String TASKS_IDENTIFIER
      Name of the TASKS component
      • Fields inherited from class javax.swing.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent p1)  
      java.awt.Component add​(java.awt.Component c)  
      void add​(java.awt.Component c, java.lang.Object con)  
      void addDockingWindowListener​(net.infonode.docking.DockingWindowListener listener)
      adds the listener to the DockingFrameWork
      protected void buildShortCutTable​(java.util.Collection<java.awt.Component> scomps)
      Based on the components used by the desktop this method builds the KeyStroke-HashMap.
      protected void clearOpaque​(java.awt.Component c)  
      void componentRequestFocus​(java.lang.String id)
      The component with the ID id will gain the focus.
      PreferencesAdapter createPreferencesAdapter()
      Creates the component for the preferences.
      javax.swing.KeyStroke findTranslation​(javax.swing.KeyStroke oldStroke)  
      javax.swing.JMenu getDesktopMenu()
      Returns the current desktop menu.
      static MagellanDesktop getInstance()  
      java.io.File getMagellanSettingsDir()
      Returns the home directory of Magellan.
      java.util.Map<java.lang.String,​java.awt.Component> getManagedComponents()
      Returns all the components available to this desktop.
      java.util.Map<javax.swing.KeyStroke,​java.lang.Object> getShortCutListeners()  
      java.util.Map<javax.swing.KeyStroke,​javax.swing.KeyStroke> getShortCutTranslations()  
      javax.swing.KeyStroke getTranslation​(javax.swing.KeyStroke newStroke)  
      WorkSpace getWorkSpace()
      Returns the workspace of Magellan.
      void init​(Client client, MagellanContext context, java.util.Properties settings, java.util.Map<java.lang.String,​java.awt.Component> components, java.io.File settingsDir)
      Creates new MagellanDesktop
      protected void initDesktopMenu()
      Creates the menu "Desktop" for Magellan.
      protected boolean initSplitSet()
      Initializes the desktop using SplitPanes.
      boolean isIconify()
      Returns the iconification mode.
      protected void loadTranslations()  
      void paintComponent​(java.awt.Graphics g)  
      protected void registerKeyStrokes()
      This method register all KeyStrokes in the KeyStroke-HashMap using registerListener().
      protected void registerListener()
      This registers the key handler at all known containers.
      void registerShortcut​(javax.swing.KeyStroke stroke, java.awt.event.ActionListener al)
      Registers a new KeyStroke/ActionListener pair at the desktop.
      void registerShortcut​(javax.swing.KeyStroke stroke, ShortcutListener sl)
      Registers a new KeyStroke/ShortcutListener pair at the desktop.
      void registerShortcut​(ShortcutListener sl)
      Register a ShortcutListener with all its shortcuts at the desktop.
      void registerTranslation​(javax.swing.KeyStroke newStroke, javax.swing.KeyStroke oldStroke)
      Registers a shortcut translation.
      void removeTranslation​(javax.swing.KeyStroke stroke)  
      void repaint​(java.lang.String id)
      Repaints the component with ID id.
      void repaintAllComponents()
      Refreshes region tree and paints all desktop components.
      void restoreView​(java.lang.String name)
      Makes a view visible.
      void save()
      Writes the configuration of this desktop.
      protected void saveTranslations()  
      void setActive​(java.lang.String viewName)
      Enabled a desktop menu entry for the given View
      void setAllVisible​(boolean visible)
      Activates all frames if in frame mode.
      protected void setClientBounds()
      Sets the Magellan window bounds according to current mode.
      void setIconify​(boolean iconify)
      Sets the iconification mode.
      void setInActive​(java.lang.String viewName)
      Disables a desktop menu entry for the given View
      void setManagedComponents​(java.util.Map<java.lang.String,​java.awt.Component> components)
      Sets the components available for this desktop.
      void setTabVisibility​(boolean showTabs)
      Enables or disables all docking tabs.
      void setVisible​(java.lang.String viewName, boolean setVisible)
      Opens or closes a specific dock.
      void setWorkSpaceChooser​(boolean enabled)  
      void updateLaF()  
      protected void validateDesktopMenu()
      Checks if allo checkboxes in the menu are correctly set
      void viewFocusChanged​(net.infonode.docking.View previouslyFocusedView, net.infonode.docking.View focusedView)  
      void windowActivated​(java.awt.event.WindowEvent p1)
      Check the activation modus: DO NOTHING ON ACTIVATION ACTIVATE ALL WHEN CLIENT IS ACTIVATED ACTIVATE ALL IF ANY WINDOW IS ACTIVATED
      void windowAdded​(net.infonode.docking.DockingWindow addedToWindow, net.infonode.docking.DockingWindow addedWindow)  
      void windowClosed​(java.awt.event.WindowEvent p1)
      Just empty - do nothing if a frame is closed.
      void windowClosed​(net.infonode.docking.DockingWindow window)  
      void windowClosing​(java.awt.event.WindowEvent p1)
      Update the frames menu.
      void windowClosing​(net.infonode.docking.DockingWindow window)  
      void windowDeactivated​(java.awt.event.WindowEvent p1)
      Just empty - do nothing if a frame is inactivated.
      void windowDeiconified​(java.awt.event.WindowEvent p1)
      Check if this event comes from the client window and if all windows should be deiconified - if so, deiconify all and put them to front.
      void windowDocked​(net.infonode.docking.DockingWindow window)  
      void windowDocking​(net.infonode.docking.DockingWindow window)  
      void windowHidden​(net.infonode.docking.DockingWindow window)  
      void windowIconified​(java.awt.event.WindowEvent p1)
      Check if this event comes from the client window and if all windows should be iconified - if so, iconify them.
      void windowMaximized​(net.infonode.docking.DockingWindow window)  
      void windowMaximizing​(net.infonode.docking.DockingWindow window)  
      void windowMinimized​(net.infonode.docking.DockingWindow window)  
      void windowMinimizing​(net.infonode.docking.DockingWindow window)  
      void windowOpened​(java.awt.event.WindowEvent p1)
      Just empty - do nothing if a frame is opened.
      void windowRemoved​(net.infonode.docking.DockingWindow removedFromWindow, net.infonode.docking.DockingWindow removedWindow)  
      void windowRestored​(net.infonode.docking.DockingWindow window)  
      void windowRestoring​(net.infonode.docking.DockingWindow window)  
      void windowShown​(net.infonode.docking.DockingWindow window)  
      void windowUndocked​(net.infonode.docking.DockingWindow window)  
      void windowUndocking​(net.infonode.docking.DockingWindow window)  
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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
      • Methods inherited from class java.awt.Container

        add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, 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
      • Methods inherited from class java.awt.Component

        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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DOCKING_LAYOUT_FILE

        public static final java.lang.String DOCKING_LAYOUT_FILE
        The name of the docking layout file
        See Also:
        Constant Field Values
      • MAP_IDENTIFIER

        public static final java.lang.String MAP_IDENTIFIER
        Name of MAP component
        See Also:
        Constant Field Values
      • MINIMAP_IDENTIFIER

        public static final java.lang.String MINIMAP_IDENTIFIER
        Name of MINIMAP component
        See Also:
        Constant Field Values
      • ECHECK_IDENTIFIER

        public static final java.lang.String ECHECK_IDENTIFIER
        Name of ECheck component
        See Also:
        Constant Field Values
      • MESSAGES_IDENTIFIER

        public static final java.lang.String MESSAGES_IDENTIFIER
        Name of the MESSAGES component
        See Also:
        Constant Field Values
      • NAMEDESCRIPTION_IDENTIFIER

        public static final java.lang.String NAMEDESCRIPTION_IDENTIFIER
        Name of the NAME&DESCRIPTION component
        See Also:
        Constant Field Values
      • NAME_IDENTIFIER

        public static final java.lang.String NAME_IDENTIFIER
        Name of the NAME component
        See Also:
        Constant Field Values
      • DESCRIPTION_IDENTIFIER

        public static final java.lang.String DESCRIPTION_IDENTIFIER
        Name of the DESCRIPTION component
        See Also:
        Constant Field Values
      • DETAILS_IDENTIFIER

        public static final java.lang.String DETAILS_IDENTIFIER
        Name of the DETAILS component
        See Also:
        Constant Field Values
      • ORDERS_IDENTIFIER

        public static final java.lang.String ORDERS_IDENTIFIER
        Name of the ORDERS component
        See Also:
        Constant Field Values
      • COMMANDS_IDENTIFIER

        public static final java.lang.String COMMANDS_IDENTIFIER
        Name of the COMMANDS component
        See Also:
        Constant Field Values
      • OVERVIEW_IDENTIFIER

        public static final java.lang.String OVERVIEW_IDENTIFIER
        Name of the OVERVIEW component
        See Also:
        Constant Field Values
      • HISTORY_IDENTIFIER

        public static final java.lang.String HISTORY_IDENTIFIER
        Name of the HISTORY component
        See Also:
        Constant Field Values
      • OVERVIEWHISTORY_IDENTIFIER

        public static final java.lang.String OVERVIEWHISTORY_IDENTIFIER
        Name of the OVERVIEW&HISTORY component
        See Also:
        Constant Field Values
      • TASKS_IDENTIFIER

        public static final java.lang.String TASKS_IDENTIFIER
        Name of the TASKS component
        See Also:
        Constant Field Values
      • BOOKMARKS_IDENTIFIER

        public static final java.lang.String BOOKMARKS_IDENTIFIER
        Name of the BOOKMARKS component
        See Also:
        Constant Field Values
      • DEBUG_IDENTIFIER

        public static final java.lang.String DEBUG_IDENTIFIER
        Name of the DEBUG component
        See Also:
        Constant Field Values
    • Method Detail

      • init

        public void init​(Client client,
                         MagellanContext context,
                         java.util.Properties settings,
                         java.util.Map<java.lang.String,​java.awt.Component> components,
                         java.io.File settingsDir)
        Creates new MagellanDesktop
      • getWorkSpace

        public WorkSpace getWorkSpace()
        Returns the workspace of Magellan.
      • setWorkSpaceChooser

        public void setWorkSpaceChooser​(boolean enabled)
      • getShortCutListeners

        public java.util.Map<javax.swing.KeyStroke,​java.lang.Object> getShortCutListeners()
      • getShortCutTranslations

        public java.util.Map<javax.swing.KeyStroke,​javax.swing.KeyStroke> getShortCutTranslations()
      • getMagellanSettingsDir

        public java.io.File getMagellanSettingsDir()
        Returns the home directory of Magellan.
      • getDesktopMenu

        public javax.swing.JMenu getDesktopMenu()
        Returns the current desktop menu.
        Returns:
        The current desktop menu.
      • getManagedComponents

        public java.util.Map<java.lang.String,​java.awt.Component> getManagedComponents()
        Returns all the components available to this desktop. Keys are IDs, Values are components.
      • setManagedComponents

        public void setManagedComponents​(java.util.Map<java.lang.String,​java.awt.Component> components)
        Sets the components available for this desktop. This is only useful if called before a mode-change.
      • isIconify

        public boolean isIconify()
        Returns the iconification mode. TRUE means, that all windows are (de)iconified if the main window is (de)iconified.
      • setIconify

        public void setIconify​(boolean iconify)
        Sets the iconification mode. TRUE means, that all windows are (de)iconified if the main window is (de)iconified.
      • initDesktopMenu

        protected void initDesktopMenu()
        Creates the menu "Desktop" for Magellan. At first creates a sub-menu with all frames, then a sub-menu for all available split sets and at last a sub-menu with all layouts.
      • setClientBounds

        protected void setClientBounds()
        Sets the Magellan window bounds according to current mode.
      • validateDesktopMenu

        protected void validateDesktopMenu()
        Checks if allo checkboxes in the menu are correctly set
      • initSplitSet

        protected boolean initSplitSet()
        Initializes the desktop using SplitPanes.
      • buildShortCutTable

        protected void buildShortCutTable​(java.util.Collection<java.awt.Component> scomps)
        Based on the components used by the desktop this method builds the KeyStroke-HashMap. The key is the KeyStroke-Object returned by ShortcutListener.getShortCuts(), the value is the listener object.
      • registerKeyStrokes

        protected void registerKeyStrokes()
        This method register all KeyStrokes in the KeyStroke-HashMap using registerListener().
      • registerListener

        protected void registerListener()
        This registers the key handler at all known containers.
      • loadTranslations

        protected void loadTranslations()
      • saveTranslations

        protected void saveTranslations()
      • registerTranslation

        public void registerTranslation​(javax.swing.KeyStroke newStroke,
                                        javax.swing.KeyStroke oldStroke)
        Registers a shortcut translation.
      • removeTranslation

        public void removeTranslation​(javax.swing.KeyStroke stroke)
      • getTranslation

        public javax.swing.KeyStroke getTranslation​(javax.swing.KeyStroke newStroke)
      • findTranslation

        public javax.swing.KeyStroke findTranslation​(javax.swing.KeyStroke oldStroke)
      • registerShortcut

        public void registerShortcut​(javax.swing.KeyStroke stroke,
                                     ShortcutListener sl)
        Registers a new KeyStroke/ShortcutListener pair at the desktop.
      • registerShortcut

        public void registerShortcut​(ShortcutListener sl)
        Register a ShortcutListener with all its shortcuts at the desktop.
      • registerShortcut

        public void registerShortcut​(javax.swing.KeyStroke stroke,
                                     java.awt.event.ActionListener al)
        Registers a new KeyStroke/ActionListener pair at the desktop. If the given boolean is FALSE, the listener will not be registered at the Client frame. This feature is for menu items.
      • windowDeactivated

        public void windowDeactivated​(java.awt.event.WindowEvent p1)
        Just empty - do nothing if a frame is inactivated.
        Specified by:
        windowDeactivated in interface java.awt.event.WindowListener
      • windowClosed

        public void windowClosed​(java.awt.event.WindowEvent p1)
        Just empty - do nothing if a frame is closed.
        Specified by:
        windowClosed in interface java.awt.event.WindowListener
      • windowDeiconified

        public void windowDeiconified​(java.awt.event.WindowEvent p1)
        Check if this event comes from the client window and if all windows should be deiconified - if so, deiconify all and put them to front.
        Specified by:
        windowDeiconified in interface java.awt.event.WindowListener
      • windowOpened

        public void windowOpened​(java.awt.event.WindowEvent p1)
        Just empty - do nothing if a frame is opened.
        Specified by:
        windowOpened in interface java.awt.event.WindowListener
      • windowIconified

        public void windowIconified​(java.awt.event.WindowEvent p1)
        Check if this event comes from the client window and if all windows should be iconified - if so, iconify them.
        Specified by:
        windowIconified in interface java.awt.event.WindowListener
      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent p1)
        Update the frames menu.
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
      • windowActivated

        public void windowActivated​(java.awt.event.WindowEvent p1)
        Check the activation modus:
        • DO NOTHING ON ACTIVATION
        • ACTIVATE ALL WHEN CLIENT IS ACTIVATED
        • ACTIVATE ALL IF ANY WINDOW IS ACTIVATED
        Specified by:
        windowActivated in interface java.awt.event.WindowListener
      • setAllVisible

        public void setAllVisible​(boolean visible)
        Activates all frames if in frame mode.
      • componentRequestFocus

        public void componentRequestFocus​(java.lang.String id)
        The component with the ID id will gain the focus. If Frame Mode is enabled, the parent frame will be activated.
      • repaint

        public void repaint​(java.lang.String id)
        Repaints the component with ID id.
      • repaintAllComponents

        public void repaintAllComponents()
        Refreshes region tree and paints all desktop components.
      • updateLaF

        public void updateLaF()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent p1)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • setTabVisibility

        public void setTabVisibility​(boolean showTabs)
        Enables or disables all docking tabs.
      • restoreView

        public void restoreView​(java.lang.String name)
        Makes a view visible.
        Parameters:
        name -
      • save

        public void save()
        Writes the configuration of this desktop.
      • add

        public java.awt.Component add​(java.awt.Component c)
        Overrides:
        add in class java.awt.Container
      • add

        public void add​(java.awt.Component c,
                        java.lang.Object con)
        Overrides:
        add in class java.awt.Container
      • clearOpaque

        protected void clearOpaque​(java.awt.Component c)
      • paintComponent

        public void paintComponent​(java.awt.Graphics g)
        Overrides:
        paintComponent in class javax.swing.JComponent
      • setVisible

        public void setVisible​(java.lang.String viewName,
                               boolean setVisible)
        Opens or closes a specific dock.
      • viewFocusChanged

        public void viewFocusChanged​(net.infonode.docking.View previouslyFocusedView,
                                     net.infonode.docking.View focusedView)
        Specified by:
        viewFocusChanged in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.viewFocusChanged(net.infonode.docking.View, net.infonode.docking.View)
      • setActive

        public void setActive​(java.lang.String viewName)
        Enabled a desktop menu entry for the given View
      • setInActive

        public void setInActive​(java.lang.String viewName)
        Disables a desktop menu entry for the given View
      • windowAdded

        public void windowAdded​(net.infonode.docking.DockingWindow addedToWindow,
                                net.infonode.docking.DockingWindow addedWindow)
        Specified by:
        windowAdded in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowAdded(net.infonode.docking.DockingWindow, net.infonode.docking.DockingWindow)
      • windowClosed

        public void windowClosed​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowClosed in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowClosed(net.infonode.docking.DockingWindow)
      • windowClosing

        public void windowClosing​(net.infonode.docking.DockingWindow window)
                           throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowClosing in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowClosing(net.infonode.docking.DockingWindow)
      • windowDocked

        public void windowDocked​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowDocked in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowDocked(net.infonode.docking.DockingWindow)
      • windowDocking

        public void windowDocking​(net.infonode.docking.DockingWindow window)
                           throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowDocking in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowDocking(net.infonode.docking.DockingWindow)
      • windowHidden

        public void windowHidden​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowHidden in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowHidden(net.infonode.docking.DockingWindow)
      • windowMaximized

        public void windowMaximized​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowMaximized in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowMaximized(net.infonode.docking.DockingWindow)
      • windowMaximizing

        public void windowMaximizing​(net.infonode.docking.DockingWindow window)
                              throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowMaximizing in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowMaximizing(net.infonode.docking.DockingWindow)
      • windowMinimized

        public void windowMinimized​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowMinimized in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowMinimized(net.infonode.docking.DockingWindow)
      • windowMinimizing

        public void windowMinimizing​(net.infonode.docking.DockingWindow window)
                              throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowMinimizing in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowMinimizing(net.infonode.docking.DockingWindow)
      • windowRemoved

        public void windowRemoved​(net.infonode.docking.DockingWindow removedFromWindow,
                                  net.infonode.docking.DockingWindow removedWindow)
        Specified by:
        windowRemoved in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowRemoved(net.infonode.docking.DockingWindow, net.infonode.docking.DockingWindow)
      • windowRestored

        public void windowRestored​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowRestored in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowRestored(net.infonode.docking.DockingWindow)
      • windowRestoring

        public void windowRestoring​(net.infonode.docking.DockingWindow window)
                             throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowRestoring in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowRestoring(net.infonode.docking.DockingWindow)
      • windowShown

        public void windowShown​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowShown in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowShown(net.infonode.docking.DockingWindow)
      • windowUndocked

        public void windowUndocked​(net.infonode.docking.DockingWindow window)
        Specified by:
        windowUndocked in interface net.infonode.docking.DockingWindowListener
        See Also:
        DockingWindowListener.windowUndocked(net.infonode.docking.DockingWindow)
      • windowUndocking

        public void windowUndocking​(net.infonode.docking.DockingWindow window)
                             throws net.infonode.docking.OperationAbortedException
        Specified by:
        windowUndocking in interface net.infonode.docking.DockingWindowListener
        Throws:
        net.infonode.docking.OperationAbortedException
        See Also:
        DockingWindowListener.windowUndocking(net.infonode.docking.DockingWindow)
      • addDockingWindowListener

        public void addDockingWindowListener​(net.infonode.docking.DockingWindowListener listener)
        adds the listener to the DockingFrameWork
        Parameters:
        listener -