bibliothek.gui.dock.themes.basic.action
Class BasicDropDownButtonHandler.SelectionView

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.BasicDropDownButtonHandler.SelectionView
All Implemented Interfaces:
DropDownView
Enclosing class:
BasicDropDownButtonHandler

protected class BasicDropDownButtonHandler.SelectionView
extends Object
implements DropDownView

A set of properties which can be set by the selected action.

Author:
Benjamin Sigg

Constructor Summary
protected BasicDropDownButtonHandler.SelectionView()
           
 
Method Summary
 void clearIcons()
          Clears all Icons, any field pointing to an Icon is set to null
 ActionContentModifier[] getIconContexts()
          Gets the ActionContentModifiers for which DropDownView.setIcon(ActionContentModifier, Icon) was called with a value other than null.
 void setDockableRepresentation(Dockable dockable)
          Sets the Dockable which is represented by the view.
 void setEnabled(boolean enabled)
          Sets the enabled-state of the button.
 void setIcon(ActionContentModifier modifier, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDropDownButtonHandler.SelectionView

protected BasicDropDownButtonHandler.SelectionView()
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: DropDownView
Sets the enabled-state of the button.

Specified by:
setEnabled in interface DropDownView
Parameters:
enabled - the state

getIconContexts

public ActionContentModifier[] getIconContexts()
Description copied from interface: DropDownView
Gets the ActionContentModifiers for which DropDownView.setIcon(ActionContentModifier, Icon) was called with a value other than null.

Specified by:
getIconContexts in interface DropDownView
Returns:
the icons that were set

clearIcons

public void clearIcons()
Description copied from interface: DropDownView
Clears all Icons, any field pointing to an Icon is set to null

Specified by:
clearIcons in interface DropDownView

setIcon

public void setIcon(ActionContentModifier modifier,
                    Icon icon)
Description copied from interface: DropDownView
Sets the icon of the button.

Specified by:
setIcon in interface DropDownView
Parameters:
modifier - the context in which the icon is used, not null
icon - the icon

setSelected

public void setSelected(boolean selected)
Description copied from interface: DropDownView
Sets the selected-state of the button.

Specified by:
setSelected in interface DropDownView
Parameters:
selected - the state

setText

public void setText(String text)
Description copied from interface: DropDownView
Sets the text of the button.

Specified by:
setText in interface DropDownView
Parameters:
text - the text

setTooltip

public void setTooltip(String tooltip)
Description copied from interface: DropDownView
Sets the tooltip of the button.

Specified by:
setTooltip in interface DropDownView
Parameters:
tooltip - the tooltip

setDockableRepresentation

public void setDockableRepresentation(Dockable dockable)
Description copied from interface: DropDownView
Sets the Dockable which is represented by the view.

Specified by:
setDockableRepresentation in interface DropDownView
Parameters:
dockable - the represented element, can be null