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

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

protected class BasicDropDownButtonHandler.ButtonView
extends Object
implements DropDownView

A view that sends all values directly to the button.

Author:
Benjamin Sigg

Constructor Summary
protected BasicDropDownButtonHandler.ButtonView()
           
 
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.
 void updateText()
          Updates the text that is shown by the button, respects the BasicDropDownButtonHandler.buttonContentFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDropDownButtonHandler.ButtonView

protected BasicDropDownButtonHandler.ButtonView()
Method Detail

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

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

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

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

updateText

public void updateText()
Updates the text that is shown by the button, respects the BasicDropDownButtonHandler.buttonContentFilter.


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