com.vlsolutions.swing.docking.ui
Class DockViewUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by com.vlsolutions.swing.docking.ui.DockViewUI

public class DockViewUI
extends javax.swing.plaf.PanelUI

This is the UI delegate for the DockView class.

Default behaviour in to install a shadow border on the dockview, but this can be replaced by overriding the 3 installXXXDockableBorder methods.

Since:
2.0

Field Summary
protected  com.vlsolutions.swing.docking.ui.DockViewUI.ViewAncestorListener ancestorListener
          Ancestor listener used to install different borders depending on the usage of the dock view (docked, maximized, tabbed).
 
Constructor Summary
DockViewUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installMaximizedDockableBorder(DockView v)
          Installs a border when the DockView target is unique on the desktop (mamimized, or alone)
protected  void installSingleDockableBorder(DockView v)
          Installs a border when the DockView target is a SingleDockableContainer (not nested in a tabbed container )
protected  void installTabbedDockableBorder(DockView v)
          Installs a border when the DockView target is included in a TabbedDockableContainer.
 void installUI(javax.swing.JComponent c)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ancestorListener

protected com.vlsolutions.swing.docking.ui.DockViewUI.ViewAncestorListener ancestorListener
Ancestor listener used to install different borders depending on the usage of the dock view (docked, maximized, tabbed).

Constructor Detail

DockViewUI

public DockViewUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installSingleDockableBorder

protected void installSingleDockableBorder(DockView v)
Installs a border when the DockView target is a SingleDockableContainer (not nested in a tabbed container )

default is a shadowed border.


installTabbedDockableBorder

protected void installTabbedDockableBorder(DockView v)
Installs a border when the DockView target is included in a TabbedDockableContainer.

Default is a shadow border without top and left shadows


installMaximizedDockableBorder

protected void installMaximizedDockableBorder(DockView v)
Installs a border when the DockView target is unique on the desktop (mamimized, or alone)

Default is a shadow border without top and left shadows



© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications