com.vlsolutions.swing.docking.ui
Class AutoHideButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
com.vlsolutions.swing.docking.ui.AutoHideButtonUI
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
public class AutoHideButtonUI
- extends BasicLabelUI
- implements PropertyChangeListener
The UI delegate for AutoHideButtons.
This UI uses the following properties :
- UIManager.getBorder("AutoHideButton.expandBorderTop")
- UIManager.getBorder("AutoHideButton.expandBorderLeft")
- UIManager.getBorder("AutoHideButton.expandBorderBottom")
- UIManager.getBorder("AutoHideButton.expandBorderRight")
Feel free to provide different borders they will be used accordingly to the
positionning of the button (TOP, LEFT..)
- See Also:
DockingUISettings
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static AutoHideButtonUI instance
AutoHideButtonUI
public AutoHideButtonUI()
createUI
public static ComponentUI createUI(JComponent x)
- Creates a new DockingSplitPaneUI instance
installUI
public void installUI(JComponent comp)
- Overrides:
installUI
in class BasicLabelUI
uninstallUI
public void uninstallUI(JComponent comp)
- Overrides:
uninstallUI
in class BasicLabelUI
propertyChange
public void propertyChange(PropertyChangeEvent e)
- Specified by:
propertyChange
in interface PropertyChangeListener
- Overrides:
propertyChange
in class BasicLabelUI
installBorder
protected void installBorder(AutoHideButton btn)
paint
public void paint(Graphics g,
JComponent comp)
- Overriden to paint properly the button on vertical sides.
- Overrides:
paint
in class BasicLabelUI
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications