Class BasicInternalFrameUI

Direct Known Subclasses:
MetalInternalFrameUI, SynthInternalFrameUI

public class BasicInternalFrameUI extends InternalFrameUI
A basic L&F implementation of JInternalFrame.
  • Field Details Link icon

    • frame Link icon

      protected JInternalFrame frame
      frame
    • borderListener Link icon

      protected MouseInputAdapter borderListener
      Border listener
    • propertyChangeListener Link icon

      protected PropertyChangeListener propertyChangeListener
      Property change listener
    • internalFrameLayout Link icon

      protected LayoutManager internalFrameLayout
      Internal frame layout
    • componentListener Link icon

      protected ComponentListener componentListener
      Component listener
    • glassPaneDispatcher Link icon

      protected MouseInputListener glassPaneDispatcher
      Glass pane dispatcher
    • northPane Link icon

      protected JComponent northPane
      North pane
    • southPane Link icon

      protected JComponent southPane
      South pane
    • westPane Link icon

      protected JComponent westPane
      West pane
    • eastPane Link icon

      protected JComponent eastPane
      East pane
    • titlePane Link icon

      protected BasicInternalFrameTitlePane titlePane
      Title pane
    • openMenuKey Link icon

      @Deprecated protected KeyStroke openMenuKey
      Deprecated.
      As of Java 2 platform v1.3.
      As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
  • Constructor Details Link icon

    • BasicInternalFrameUI Link icon

      public BasicInternalFrameUI(JInternalFrame b)
      Constructs a BasicInternalFrameUI.
      Parameters:
      b - the internal frame
  • Method Details Link icon

    • createUI Link icon

      public static ComponentUI createUI(JComponent b)
      Returns a component UI.
      Parameters:
      b - a component
      Returns:
      a component UI
    • installUI Link icon

      public void installUI(JComponent c)
      Installs the UI.
      Overrides:
      installUI in class ComponentUI
      Parameters:
      c - the component
      See Also:
    • uninstallUI Link icon

      public void uninstallUI(JComponent c)
      Uninstalls the UI.
      Overrides:
      uninstallUI in class ComponentUI
      Parameters:
      c - the component
      See Also:
    • installDefaults Link icon

      protected void installDefaults()
      Installs the defaults.
    • installKeyboardActions Link icon

      protected void installKeyboardActions()
      Installs the keyboard actions.
    • installComponents Link icon

      protected void installComponents()
      Installs the components.
    • installListeners Link icon

      protected void installListeners()
      Installs the listeners.
      Since:
      1.3
    • uninstallDefaults Link icon

      protected void uninstallDefaults()
      Uninstalls the defaults.
    • uninstallComponents Link icon

      protected void uninstallComponents()
      Uninstalls the components.
    • uninstallListeners Link icon

      protected void uninstallListeners()
      Uninstalls the listeners.
      Since:
      1.3
    • uninstallKeyboardActions Link icon

      protected void uninstallKeyboardActions()
      Uninstalls the keyboard actions.
    • createLayoutManager Link icon

      protected LayoutManager createLayoutManager()
      Creates the layout manager.
      Returns:
      the layout manager
    • createPropertyChangeListener Link icon

      protected PropertyChangeListener createPropertyChangeListener()
      Creates the property change listener.
      Returns:
      the property change listener
    • getPreferredSize Link icon

      public Dimension getPreferredSize(JComponent x)
      Returns the preferred size.
      Overrides:
      getPreferredSize in class ComponentUI
      Parameters:
      x - the component
      Returns:
      the preferred size
      See Also:
    • getMinimumSize Link icon

      public Dimension getMinimumSize(JComponent x)
      Returns the minimum size.
      Overrides:
      getMinimumSize in class ComponentUI
      Parameters:
      x - the component
      Returns:
      the minimum size
      See Also:
    • getMaximumSize Link icon

      public Dimension getMaximumSize(JComponent x)
      Returns the maximum size.
      Overrides:
      getMaximumSize in class ComponentUI
      Parameters:
      x - the component
      Returns:
      the maximum size
      See Also:
    • replacePane Link icon

      protected void replacePane(JComponent currentPane, JComponent newPane)
      Installs necessary mouse handlers on newPane and adds it to the frame. Reverse process for the currentPane.
      Parameters:
      currentPane - this JComponent is the current pane being viewed that has mouse handlers installed
      newPane - this JComponent is the pane which will be added and have mouse handlers installed
    • deinstallMouseHandlers Link icon

      protected void deinstallMouseHandlers(JComponent c)
      Deinstalls the mouse handlers.
      Parameters:
      c - the component
    • installMouseHandlers Link icon

      protected void installMouseHandlers(JComponent c)
      Installs the mouse handlers.
      Parameters:
      c - the component
    • createNorthPane Link icon

      protected JComponent createNorthPane(JInternalFrame w)
      Creates the north pane.
      Parameters:
      w - the internal frame
      Returns:
      the north pane
    • createSouthPane Link icon

      protected JComponent createSouthPane(JInternalFrame w)
      Creates the north pane.
      Parameters:
      w - the internal frame
      Returns:
      the north pane
    • createWestPane Link icon

      protected JComponent createWestPane(JInternalFrame w)
      Creates the west pane.
      Parameters:
      w - the internal frame
      Returns:
      the west pane
    • createEastPane Link icon

      protected JComponent createEastPane(JInternalFrame w)
      Creates the east pane.
      Parameters:
      w - the internal frame
      Returns:
      the east pane
    • createBorderListener Link icon

      protected MouseInputAdapter createBorderListener(JInternalFrame w)
      Creates the border listener.
      Parameters:
      w - the internal frame
      Returns:
      the border listener
    • createInternalFrameListener Link icon

      protected void createInternalFrameListener()
      Creates the internal frame listener.
    • isKeyBindingRegistered Link icon

      protected final boolean isKeyBindingRegistered()
      Returns whether or no the key binding is registered.
      Returns:
      whether or no the key binding is registered
    • setKeyBindingRegistered Link icon

      protected final void setKeyBindingRegistered(boolean b)
      Sets the key binding registration.
      Parameters:
      b - new value for key binding registration
    • isKeyBindingActive Link icon

      public final boolean isKeyBindingActive()
      Returns whether or no the key binding is active.
      Returns:
      whether or no the key binding is active
    • setKeyBindingActive Link icon

      protected final void setKeyBindingActive(boolean b)
      Sets the key binding activity.
      Parameters:
      b - new value for key binding activity
    • setupMenuOpenKey Link icon

      protected void setupMenuOpenKey()
      Setup the menu open key.
    • setupMenuCloseKey Link icon

      protected void setupMenuCloseKey()
      Setup the menu close key.
    • getNorthPane Link icon

      public JComponent getNorthPane()
      Returns the north pane.
      Returns:
      the north pane
    • setNorthPane Link icon

      public void setNorthPane(JComponent c)
      Sets the north pane.
      Parameters:
      c - the new north pane
    • getSouthPane Link icon

      public JComponent getSouthPane()
      Returns the south pane.
      Returns:
      the south pane
    • setSouthPane Link icon

      public void setSouthPane(JComponent c)
      Sets the south pane.
      Parameters:
      c - the new south pane
    • getWestPane Link icon

      public JComponent getWestPane()
      Returns the west pane.
      Returns:
      the west pane
    • setWestPane Link icon

      public void setWestPane(JComponent c)
      Sets the west pane.
      Parameters:
      c - the new west pane
    • getEastPane Link icon

      public JComponent getEastPane()
      Returns the east pane.
      Returns:
      the east pane
    • setEastPane Link icon

      public void setEastPane(JComponent c)
      Sets the east pane.
      Parameters:
      c - the new east pane
    • getDesktopManager Link icon

      protected DesktopManager getDesktopManager()
      Returns the proper DesktopManager. Calls getDesktopPane() to find the JDesktop component and returns the desktopManager from it. If this fails, it will return a default DesktopManager that should work in arbitrary parents.
      Returns:
      the proper DesktopManager
    • createDesktopManager Link icon

      protected DesktopManager createDesktopManager()
      Creates the desktop manager.
      Returns:
      the desktop manager
    • closeFrame Link icon

      protected void closeFrame(JInternalFrame f)
      This method is called when the user wants to close the frame. The playCloseSound Action is fired. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • maximizeFrame Link icon

      protected void maximizeFrame(JInternalFrame f)
      This method is called when the user wants to maximize the frame. The playMaximizeSound Action is fired. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • minimizeFrame Link icon

      protected void minimizeFrame(JInternalFrame f)
      This method is called when the user wants to minimize the frame. The playRestoreDownSound Action is fired. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • iconifyFrame Link icon

      protected void iconifyFrame(JInternalFrame f)
      This method is called when the user wants to iconify the frame. The playMinimizeSound Action is fired. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • deiconifyFrame Link icon

      protected void deiconifyFrame(JInternalFrame f)
      This method is called when the user wants to deiconify the frame. The playRestoreUpSound Action is fired. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • activateFrame Link icon

      protected void activateFrame(JInternalFrame f)
      This method is called when the frame becomes selected. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • deactivateFrame Link icon

      protected void deactivateFrame(JInternalFrame f)
      This method is called when the frame is no longer selected. This action is delegated to the desktopManager.
      Parameters:
      f - the JInternalFrame being viewed
    • createComponentListener Link icon

      protected ComponentListener createComponentListener()
      Creates a component listener.
      Returns:
      a component listener
    • createGlassPaneDispatcher Link icon

      protected MouseInputListener createGlassPaneDispatcher()
      Creates a GlassPaneDispatcher.
      Returns:
      a GlassPaneDispatcher