org.apache.batik.util.gui

Interface DropDownComponent.ScrollablePopupMenuItem

public static interface DropDownComponent.ScrollablePopupMenuItem

The scrollable pop up menu item.
Method Summary
StringgetText()
Returns the item name.
booleanisSelected()
Checks if the item is selected.
voidsetEnabled(boolean enabled)
Enables / disables the item
voidsetSelected(boolean selected)
Selects and deselects the item.
voidsetText(String text)
Sets the item name.

Method Detail

getText

public String getText()
Returns the item name.

Returns: the name

isSelected

public boolean isSelected()
Checks if the item is selected.

Returns: True if selected

setEnabled

public void setEnabled(boolean enabled)
Enables / disables the item

Parameters: enabled True - enables the item

setSelected

public void setSelected(boolean selected)
Selects and deselects the item.

Parameters: selected is selected

setText

public void setText(String text)
Sets the item name.

Parameters: text The new item name

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