|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 |
|---|
enabled, icons, representative, selected, text, tooltip |
| Constructor Summary | |
|---|---|
DefaultDropDownFilter(DropDownAction action,
Dockable dockable,
DropDownView view)
Creates a new filter |
|
| Method Summary | |
|---|---|
ActionContentModifier[] |
getIconContexts()
Gets the ActionContentModifiers for which DropDownView.setIcon(ActionContentModifier, Icon) was called
with a value other than null. |
void |
update(DropDownViewItem selection)
Updates all properties using the current selection of a button. |
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 |
updateRepresentative(DropDownViewItem selection)
Updates the Dockable which is represented by 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 |
|---|
clearIcons, getIcon, setDockableRepresentation, 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 actionview - the view where this filter will write into| Method Detail |
|---|
public void update(DropDownViewItem selection)
DropDownFilter
update in class DropDownFilterselection - the selectionprotected void updateEnabled(DropDownViewItem selection)
view.
selection - the selected item, ignored by the default implementationprotected void updateRepresentative(DropDownViewItem selection)
Dockable which is represented by the view.
selection - the selected item, ignored by the default implementationprotected void updateSelected(DropDownViewItem selection)
view.
selection - the selected item, ignored by the default implementationpublic ActionContentModifier[] getIconContexts()
DropDownViewActionContentModifiers for which DropDownView.setIcon(ActionContentModifier, Icon) was called
with a value other than null.
protected void updateIcon(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 | |||||||||