|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.dropdown.DropDownFilter bibliothek.gui.dock.action.dropdown.AbstractDropDownFilter bibliothek.gui.dock.action.dropdown.DefaultDropDownFilter
public class DefaultDropDownFilter
An implementation of DropDownFilter
. This filter uses the contents
of the selected element whenever possible. The tooltip either consists of
the drop-down-action if the selected action is not triggerable, or of
the action itself if it is triggerable.
Field Summary | |
---|---|
static DropDownFilterFactory |
FACTORY
A factory for this type of filter |
Fields inherited from class bibliothek.gui.dock.action.dropdown.AbstractDropDownFilter |
---|
disabledIcon, enabled, icon, selected, text, tooltip |
Constructor Summary | |
---|---|
DefaultDropDownFilter(DropDownAction action,
Dockable dockable,
DropDownView view)
Creates a new filter |
Method Summary | |
---|---|
void |
update(DropDownViewItem selection)
Updates all properties using the current selection of a button. |
protected void |
updateDisabledIcon(DropDownViewItem selection)
Updates the disabled icon of the view . |
protected void |
updateEnabled(DropDownViewItem selection)
Updates the enabled-state of the view . |
protected void |
updateIcon(DropDownViewItem selection)
Updates the icon of the view . |
protected void |
updateSelected(DropDownViewItem selection)
Updates the selected-state of the view . |
protected void |
updateText(DropDownViewItem selection)
Updates the text of the view . |
protected void |
updateTooltip(DropDownViewItem selection)
Updates the tooltip of the view . |
Methods inherited from class bibliothek.gui.dock.action.dropdown.AbstractDropDownFilter |
---|
setDisabledIcon, setEnabled, setIcon, setSelected, setText, setTooltip |
Methods inherited from class bibliothek.gui.dock.action.dropdown.DropDownFilter |
---|
bind, getAction, getDockable, getView, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DropDownFilterFactory FACTORY
Constructor Detail |
---|
public DefaultDropDownFilter(DropDownAction action, Dockable dockable, DropDownView view)
action
- the action to filterdockable
- the owner of action
view
- the view where this filter will write intoMethod Detail |
---|
public void update(DropDownViewItem selection)
DropDownFilter
update
in class DropDownFilter
selection
- the selectionprotected void updateEnabled(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementationprotected void updateSelected(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementationprotected void updateIcon(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementationprotected void updateDisabledIcon(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementationprotected void updateText(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementationprotected void updateTooltip(DropDownViewItem selection)
view
.
selection
- the selected item, ignored by the default implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |