protected class BasicDropDownButtonHandler.SelectionView extends Object implements DropDownView
Modifier | Constructor and Description |
---|---|
protected |
SelectionView() |
Modifier and Type | Method and Description |
---|---|
void |
clearIcons()
|
ActionContentModifier[] |
getIconContexts()
Gets the
ActionContentModifier s 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.
|
public void setEnabled(boolean enabled)
DropDownView
setEnabled
in interface DropDownView
enabled
- the statepublic ActionContentModifier[] getIconContexts()
DropDownView
ActionContentModifier
s for which DropDownView.setIcon(ActionContentModifier, Icon)
was called
with a value other than null
.getIconContexts
in interface DropDownView
public void clearIcons()
DropDownView
clearIcons
in interface DropDownView
public void setIcon(ActionContentModifier modifier, Icon icon)
DropDownView
setIcon
in interface DropDownView
modifier
- the context in which the icon is used, not null
icon
- the iconpublic void setSelected(boolean selected)
DropDownView
setSelected
in interface DropDownView
selected
- the statepublic void setText(String text)
DropDownView
setText
in interface DropDownView
text
- the textpublic void setTooltip(String tooltip)
DropDownView
setTooltip
in interface DropDownView
tooltip
- the tooltippublic void setDockableRepresentation(Dockable dockable)
DropDownView
Dockable
which is represented by the view.setDockableRepresentation
in interface DropDownView
dockable
- the represented element, can be null