com.vlsolutions.swing.docking

Class AutoHideButtonPanel


public class AutoHideButtonPanel
extends JPanel

A Swing panel used as a toolbar for autohide buttons.

Field Summary

static String
PROPERTY_BORDERZONE
The property name associated with the "border" property
static String
uiClassID

Constructor Summary

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

Method Summary

void
add(AutoHideButton btn)
Adds a new AutoHideButton.
int
getBorderZone()
Returns the border this panel is for.
String
getUIClassID()
int
getVisibleButtonCount()
Returns the number of buttons currently displayed by this panel.
void
remove(AutoHideButton btn)
Removes an AutoHideButton

Field Details

PROPERTY_BORDERZONE

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

uiClassID

public static final String uiClassID

Constructor Details

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 Details

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