bibliothek.gui.dock.action.dropdown
Interface DropDownView

All Known Implementing Classes:
AbstractDropDownFilter, BasicDropDownButtonHandler.ButtonView, BasicDropDownButtonHandler.SelectionView, DefaultDropDownFilter, DropDownFilter

public interface DropDownView

A connection between an drop-down-item and a view. Clients should use instances of this interface as if they access a button.

Author:
Benjamin Sigg

Method Summary
 void setDisabledIcon(Icon icon)
          Sets the disabled icon of the button.
 void setEnabled(boolean enabled)
          Sets the enabled-state of the button.
 void setIcon(Icon icon)
          Sets the icon of the button.
 void setSelected(boolean selected)
          Sets the selected-state of the button.
 void setText(String text)
          Sets the text of the button.
 void setTooltip(String tooltip)
          Sets the tooltip of the button.
 

Method Detail

setText

void setText(String text)
Sets the text of the button.

Parameters:
text - the text

setTooltip

void setTooltip(String tooltip)
Sets the tooltip of the button.

Parameters:
tooltip - the tooltip

setIcon

void setIcon(Icon icon)
Sets the icon of the button.

Parameters:
icon - the icon

setDisabledIcon

void setDisabledIcon(Icon icon)
Sets the disabled icon of the button.

Parameters:
icon - the disabled icon

setEnabled

void setEnabled(boolean enabled)
Sets the enabled-state of the button.

Parameters:
enabled - the state

setSelected

void setSelected(boolean selected)
Sets the selected-state of the button.

Parameters:
selected - the state