|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
com.vlsolutions.swing.docking.ui.DockViewTitleBarUI
public class DockViewTitleBarUI
A UI for the DockViewTitleBar
.
Field Summary | |
---|---|
protected DockViewTitleBar |
titleBar
|
Constructor Summary | |
---|---|
DockViewTitleBarUI(DockViewTitleBar tb)
|
Method Summary | |
---|---|
protected void |
configureAttachButton(javax.swing.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(javax.swing.JButton btn)
installs the icons and tooltip suitable for a close button |
protected void |
configureDockButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a dock button |
protected void |
configureFloatButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a float button |
protected void |
configureHideButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a hide button |
protected void |
configureMaximizeButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a maximize button |
protected void |
configureRestoreButton(javax.swing.JButton btn)
installs the icons and tooltip suitable for a restore button. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.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(javax.swing.JComponent c)
installs the border of the title bar |
void |
installUI(javax.swing.JComponent c)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Custom title bar painting : uses a gradient from the background color to the control highlight color. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Listen to property changes in the DockKey or the title bar |
protected void |
uninstallTitleBorder(javax.swing.JComponent c)
uninstalls the icons and tooltip suitable for a close button |
void |
uninstallUI(javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DockViewTitleBar titleBar
Constructor Detail |
---|
public DockViewTitleBarUI(DockViewTitleBar tb)
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
protected void installLabel()
protected void installBackground()
protected void installButtons()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
protected void configureButtons(DockViewTitleBar tb)
protected void configureCloseButton(javax.swing.JButton btn)
protected void configureMaximizeButton(javax.swing.JButton btn)
protected void configureRestoreButton(javax.swing.JButton btn)
protected void configureHideButton(javax.swing.JButton btn)
protected void configureDockButton(javax.swing.JButton btn)
protected void configureFloatButton(javax.swing.JButton btn)
protected void configureAttachButton(javax.swing.JButton btn)
protected void installTitleBorder(javax.swing.JComponent c)
protected void uninstallTitleBorder(javax.swing.JComponent c)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |