com.vlsolutions.swing.docking

Class AutoHideButton

public class AutoHideButton extends JLabel

The button used to show Dockables in auto-hide borders.

This component displays the label, tooltip and icon properties of a Dockable's DockKey, with a custom look and feel.

Field Summary
static StringPROPERTY_ZONE
property name associated to the "zone" (border) property
static StringuiClassID
Constructor Summary
AutoHideButton()
Method Summary
DockablegetDockable()
Returns the dockable this button is for
DockKeygetKey()
Returns the key of the dockable
DimensiongetMaximumSize()
DimensiongetMinimumSize()
DimensiongetPreferredSize()
StringgetUIClassID()
intgetZone()
Returns the border zone of this button
voidinit(Dockable dockable, int zone)
Initialize the button for a Dockable and a border zone
booleanisSelected()
True when the button is currently selected.
voidsetSelected(boolean selected)
Selects or unselects the button

Field Detail

PROPERTY_ZONE

public static final String PROPERTY_ZONE
property name associated to the "zone" (border) property

uiClassID

public static final String uiClassID

Constructor Detail

AutoHideButton

public AutoHideButton()

Method Detail

getDockable

public Dockable getDockable()
Returns the dockable this button is for

getKey

public DockKey getKey()
Returns the key of the dockable

getMaximumSize

public Dimension getMaximumSize()

getMinimumSize

public Dimension getMinimumSize()

getPreferredSize

public Dimension getPreferredSize()

getUIClassID

public String getUIClassID()

getZone

public int getZone()
Returns the border zone of this button

init

public void init(Dockable dockable, int zone)
Initialize the button for a Dockable and a border zone

isSelected

public boolean isSelected()
True when the button is currently selected.

setSelected

public void setSelected(boolean selected)
Selects or unselects the button
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications