com.vlsolutions.swing.docking

Class AutoHideButtonPanel

public class AutoHideButtonPanel extends JPanel

A Swing panel used as a toolbar for autohide buttons.
Field Summary
static StringPROPERTY_BORDERZONE
The property name associated with the "border" property
static StringuiClassID
Constructor Summary
AutoHideButtonPanel(AutoHideExpandPanel expandPanel, int border)
Constructs a new AutoHideButtonPanel, with a shared expandPanel, and for a specified border zone.
Method Summary
voidadd(AutoHideButton btn)
Adds a new AutoHideButton.
intgetBorderZone()
Returns the border this panel is for.
StringgetUIClassID()
intgetVisibleButtonCount()
Returns the number of buttons currently displayed by this panel.
voidremove(AutoHideButton btn)
Removes an AutoHideButton

Field Detail

PROPERTY_BORDERZONE

public static final String PROPERTY_BORDERZONE
The property name associated with the "border" property

uiClassID

public static final String uiClassID

Constructor Detail

AutoHideButtonPanel

public AutoHideButtonPanel(AutoHideExpandPanel expandPanel, int border)
Constructs a new AutoHideButtonPanel, with a shared expandPanel, and for a specified border zone.

Parameters: border constant taken from AutoHideButtonPanel.TOP, AutoHideButtonPanel.LEFT, AutoHideButtonPanel.BOTTOM, AutoHideButtonPanel.RIGHT

Method Detail

add

public void add(AutoHideButton btn)
Adds a new AutoHideButton.

getBorderZone

public int getBorderZone()
Returns the border this panel is for.

Values are : AutoHideButtonPanel.TOP, AutoHideButtonPanel.LEFT, AutoHideButtonPanel.BOTTOM, AutoHideButtonPanel.RIGHT

getUIClassID

public String getUIClassID()

getVisibleButtonCount

public int getVisibleButtonCount()
Returns the number of buttons currently displayed by this panel.

remove

public void remove(AutoHideButton btn)
Removes an AutoHideButton
© Copyright 2004-2005 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications