com.vlsolutions.swing.docking.ui

Class DockViewTitleBarUI

public class DockViewTitleBarUI extends PanelUI implements PropertyChangeListener

A UI for the {@link com.vlsolutions.swing.docking.DockViewTitleBar}.

Since: 2.0

Field Summary
protected DockViewTitleBartitleBar
Constructor Summary
DockViewTitleBarUI(DockViewTitleBar tb)
Method Summary
protected voidconfigureAttachButton(JButton btn)
installs the icons and tooltip suitable for an attach button
protected voidconfigureButtons(DockViewTitleBar tb)
Update the buttons to track state changes (for example, the maximize button can become "restore" when the view is maximized.
protected voidconfigureCloseButton(JButton btn)
installs the icons and tooltip suitable for a close button
protected voidconfigureDockButton(JButton btn)
installs the icons and tooltip suitable for a dock button
protected voidconfigureFloatButton(JButton btn)
installs the icons and tooltip suitable for a float button
protected voidconfigureHideButton(JButton btn)
installs the icons and tooltip suitable for a hide button
protected voidconfigureMaximizeButton(JButton btn)
installs the icons and tooltip suitable for a maximize button
protected voidconfigureRestoreButton(JButton btn)
installs the icons and tooltip suitable for a restore button.
static ComponentUIcreateUI(JComponent c)
protected voidinstallBackground()
Installs the default background of the title bar
protected voidinstallButtons()
configure the title bar buttons
protected voidinstallLabel()
Installs default on the titlebar label
protected voidinstallTitleBorder(JComponent c)
installs the border of the title bar
voidinstallUI(JComponent c)
voidpaint(Graphics g, JComponent c)
Custom title bar painting : uses a gradient from the background color to the control highlight color.
voidpropertyChange(PropertyChangeEvent e)
Listen to property changes in the DockKey or the title bar
protected voiduninstallTitleBorder(JComponent c)
uninstalls the icons and tooltip suitable for a close button
voiduninstallUI(JComponent c)

Field Detail

titleBar

protected DockViewTitleBar titleBar

Constructor Detail

DockViewTitleBarUI

public DockViewTitleBarUI(DockViewTitleBar tb)

Method Detail

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-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications