org.apache.batik.util.gui

Class DropDownComponent.DefaultScrollablePopupMenuItem

public static class DropDownComponent.DefaultScrollablePopupMenuItem extends JButton implements DropDownComponent.ScrollablePopupMenuItem

Default implementation of the scrollable popup menu item.
Field Summary
static ColorMENUITEM_BG_COLOR
The item background color.
static ColorMENUITEM_FG_COLOR
The item foreground color.
static ColorMENU_HIGHLIGHT_BG_COLOR
The selected item background color.
static ColorMENU_HIGHLIGHT_FG_COLOR
The selected item foreground color.
Constructor Summary
DefaultScrollablePopupMenuItem(DropDownComponent.ScrollablePopupMenu parent, String text)
Constructor.
Method Summary
StringgetText()
voidsetEnabled(boolean b)
voidsetSelected(boolean selected)
voidsetText(String text)

Field Detail

MENUITEM_BG_COLOR

public static final Color MENUITEM_BG_COLOR
The item background color.

MENUITEM_FG_COLOR

public static final Color MENUITEM_FG_COLOR
The item foreground color.

MENU_HIGHLIGHT_BG_COLOR

public static final Color MENU_HIGHLIGHT_BG_COLOR
The selected item background color.

MENU_HIGHLIGHT_FG_COLOR

public static final Color MENU_HIGHLIGHT_FG_COLOR
The selected item foreground color.

Constructor Detail

DefaultScrollablePopupMenuItem

public DefaultScrollablePopupMenuItem(DropDownComponent.ScrollablePopupMenu parent, String text)
Constructor.

Method Detail

getText

public String getText()

setEnabled

public void setEnabled(boolean b)

setSelected

public void setSelected(boolean selected)

setText

public void setText(String text)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.