org.apache.batik.util.gui

Class DropDownComponent

public class DropDownComponent extends JPanel

The drop down menu component. Supports drop down popup menu and the main button.
Nested Class Summary
static classDropDownComponent.DefaultScrollablePopupMenuItem
Default implementation of the scrollable popup menu item.
static classDropDownComponent.ScrollablePopupMenu
The Scrollable Popup Menu Component.
static classDropDownComponent.ScrollablePopupMenuAdapter
The adapter for the ScrollablePopupMenuListener.
static classDropDownComponent.ScrollablePopupMenuEvent
Event to pass to listener.
static interfaceDropDownComponent.ScrollablePopupMenuItem
The scrollable pop up menu item.
static interfaceDropDownComponent.ScrollablePopupMenuListener
The ScrollablePopupMenu listener.
static interfaceDropDownComponent.ScrollablePopupMenuModel
The scrollable popup menu model.
Constructor Summary
DropDownComponent(JButton mainButton)
Creates the dropdown menu with the given main button.
Method Summary
DropDownComponent.ScrollablePopupMenugetPopupMenu()
Gets the dropdown popup menu.
booleanisEnabled()
voidsetEnabled(boolean enable)
voidupdateMainButtonTooltip(String newTooltip)
Sets new tooltip text to the main button.

Constructor Detail

DropDownComponent

public DropDownComponent(JButton mainButton)
Creates the dropdown menu with the given main button.

Parameters: mainButton the components main button

Method Detail

getPopupMenu

public DropDownComponent.ScrollablePopupMenu getPopupMenu()
Gets the dropdown popup menu.

Returns: ScrollablePopupMenu

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enable)

updateMainButtonTooltip

public void updateMainButtonTooltip(String newTooltip)
Sets new tooltip text to the main button.

Parameters: newTooltip the new tooltip text

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.