com.alee.laf.desktoppane
Class WebInternalFrameUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.InternalFrameUI
          extended by javax.swing.plaf.basic.BasicInternalFrameUI
              extended by com.alee.laf.desktoppane.WebInternalFrameUI

public class WebInternalFrameUI
extends javax.swing.plaf.basic.BasicInternalFrameUI

Custom UI for JInternalFrame component.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI.BasicInternalFrameListener, javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener, javax.swing.plaf.basic.BasicInternalFrameUI.ComponentHandler, javax.swing.plaf.basic.BasicInternalFrameUI.GlassPaneDispatcher, javax.swing.plaf.basic.BasicInternalFrameUI.InternalFrameLayout, javax.swing.plaf.basic.BasicInternalFrameUI.InternalFramePropertyChangeListener
 
Field Summary
protected  boolean focused
          Whether internal frame is focused or owns focused component or not.
protected  FocusTracker focusTracker
          Panel focus tracker.
protected  int sideSpacing
          Style settings.
 
Fields inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
 
Constructor Summary
WebInternalFrameUI(javax.swing.JInternalFrame b)
          Constructs new internal frame UI.
 
Method Summary
protected  javax.swing.JComponent createEastPane(javax.swing.JInternalFrame w)
          Creates and returns internal pane east panel.
protected  javax.swing.JComponent createNorthPane(javax.swing.JInternalFrame w)
          Creates and returns internal pane north panel.
protected  javax.swing.JComponent createSouthPane(javax.swing.JInternalFrame w)
          Creates and returns internal pane south panel.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns an instance of the WebInternalFrameUI for the specified component.
protected  javax.swing.JComponent createWestPane(javax.swing.JInternalFrame w)
          Creates and returns internal pane west panel.
 void installUI(javax.swing.JComponent c)
          Installs UI in the specified component.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints internal frame.
 void uninstallUI(javax.swing.JComponent c)
          Uninstalls UI from the specified component.
 
Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameUI
activateFrame, closeFrame, createBorderListener, createComponentListener, createDesktopManager, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createPropertyChangeListener, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installDefaults, installKeyboardActions, installListeners, installMouseHandlers, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sideSpacing

protected int sideSpacing
Style settings.


focusTracker

protected FocusTracker focusTracker
Panel focus tracker.


focused

protected boolean focused
Whether internal frame is focused or owns focused component or not.

Constructor Detail

WebInternalFrameUI

public WebInternalFrameUI(javax.swing.JInternalFrame b)
Constructs new internal frame UI.

Parameters:
b - internal frame to which this UI will be applied
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns an instance of the WebInternalFrameUI for the specified component. This tricky method is used by UIManager to create component UIs when needed.

Parameters:
c - component that will use UI instance
Returns:
instance of the WebInternalFrameUI

installUI

public void installUI(javax.swing.JComponent c)
Installs UI in the specified component.

Overrides:
installUI in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
c - component for this UI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.

Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
c - component with this UI

createNorthPane

protected javax.swing.JComponent createNorthPane(javax.swing.JInternalFrame w)
Creates and returns internal pane north panel.

Overrides:
createNorthPane in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
w - internal pane to process
Returns:
north panel for specified internal frame

createWestPane

protected javax.swing.JComponent createWestPane(javax.swing.JInternalFrame w)
Creates and returns internal pane west panel.

Overrides:
createWestPane in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
w - internal pane to process
Returns:
west panel for specified internal frame

createEastPane

protected javax.swing.JComponent createEastPane(javax.swing.JInternalFrame w)
Creates and returns internal pane east panel.

Overrides:
createEastPane in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
w - internal pane to process
Returns:
east panel for specified internal frame

createSouthPane

protected javax.swing.JComponent createSouthPane(javax.swing.JInternalFrame w)
Creates and returns internal pane south panel.

Overrides:
createSouthPane in class javax.swing.plaf.basic.BasicInternalFrameUI
Parameters:
w - internal pane to process
Returns:
south panel for specified internal frame

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paints internal frame.

Overrides:
paint in class javax.swing.plaf.ComponentUI
Parameters:
g - graphics
c - component