com.vlsolutions.swing.docking.ui

Class DockViewTitleBarUI

Implemented Interfaces:
PropertyChangeListener

public class DockViewTitleBarUI
extends PanelUI
implements PropertyChangeListener

A UI for the DockViewTitleBar.
Since:
2.0

Field Summary

protected DockViewTitleBar
titleBar

Constructor Summary

DockViewTitleBarUI(DockViewTitleBar tb)

Method Summary

protected void
configureAttachButton(JButton btn)
installs the icons and tooltip suitable for an attach button
protected void
configureButtons(DockViewTitleBar tb)
Update the buttons to track state changes (for example, the maximize button can become "restore" when the view is maximized.
protected void
configureCloseButton(JButton btn)
installs the icons and tooltip suitable for a close button
protected void
configureDockButton(JButton btn)
installs the icons and tooltip suitable for a dock button
protected void
configureFloatButton(JButton btn)
installs the icons and tooltip suitable for a float button
protected void
configureHideButton(JButton btn)
installs the icons and tooltip suitable for a hide button
protected void
configureMaximizeButton(JButton btn)
installs the icons and tooltip suitable for a maximize button
protected void
configureRestoreButton(JButton btn)
installs the icons and tooltip suitable for a restore button.
static ComponentUI
createUI(JComponent c)
protected void
installBackground()
Installs the default background of the title bar
protected void
installButtons()
configure the title bar buttons
protected void
installLabel()
Installs default on the titlebar label
protected void
installTitleBorder(JComponent c)
installs the border of the title bar
void
installUI(JComponent c)
void
paint(Graphics g, JComponent c)
Custom title bar painting : uses a gradient from the background color to the control highlight color.
void
propertyChange(PropertyChangeEvent e)
Listen to property changes in the DockKey or the title bar
protected void
uninstallTitleBorder(JComponent c)
uninstalls the icons and tooltip suitable for a close button
void
uninstallUI(JComponent c)

Field Details

titleBar

protected DockViewTitleBar titleBar

Constructor Details

DockViewTitleBarUI

public DockViewTitleBarUI(DockViewTitleBar tb)

Method Details

configureAttachButton

protected void configureAttachButton(JButton btn)
installs the icons and tooltip suitable for an attach button

configureButtons

protected void configureButtons(DockViewTitleBar tb)
Update the buttons to track state changes (for example, the maximize button can become "restore" when the view is maximized.

configureCloseButton

protected void configureCloseButton(JButton btn)
installs the icons and tooltip suitable for a close button

configureDockButton

protected void configureDockButton(JButton btn)
installs the icons and tooltip suitable for a dock button

configureFloatButton

protected void configureFloatButton(JButton btn)
installs the icons and tooltip suitable for a float button

configureHideButton

protected void configureHideButton(JButton btn)
installs the icons and tooltip suitable for a hide button

configureMaximizeButton

protected void configureMaximizeButton(JButton btn)
installs the icons and tooltip suitable for a maximize button

configureRestoreButton

protected void configureRestoreButton(JButton btn)
installs the icons and tooltip suitable for a restore button.

createUI

public static ComponentUI createUI(JComponent c)

installBackground

protected void installBackground()
Installs the default background of the title bar

installButtons

protected void installButtons()
configure the title bar buttons

installLabel

protected void installLabel()
Installs default on the titlebar label

installTitleBorder

protected void installTitleBorder(JComponent c)
installs the border of the title bar

installUI

public void installUI(JComponent c)

paint

public void paint(Graphics g,
                  JComponent c)
Custom title bar painting : uses a gradient from the background color to the control highlight color.

propertyChange

public void propertyChange(PropertyChangeEvent e)
Listen to property changes in the DockKey or the title bar

uninstallTitleBorder

protected void uninstallTitleBorder(JComponent c)
uninstalls the icons and tooltip suitable for a close button

uninstallUI

public void uninstallUI(JComponent c)

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