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 String
PROPERTY_ZONE
property name associated to the "zone" (border) property
static String
uiClassID

Constructor Summary

AutoHideButton()

Method Summary

Dockable
getDockable()
Returns the dockable this button is for
DockKey
getKey()
Returns the key of the dockable
Dimension
getMaximumSize()
Dimension
getMinimumSize()
Dimension
getPreferredSize()
String
getUIClassID()
int
getZone()
Returns the border zone of this button
void
init(Dockable dockable, int zone)
Initialize the button for a Dockable and a border zone
boolean
isSelected()
True when the button is currently selected.
void
setSelected(boolean selected)
Selects or unselects the button

Field Details

PROPERTY_ZONE

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

uiClassID

public static final String uiClassID

Constructor Details

AutoHideButton

public AutoHideButton()

Method Details

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