|
||||||||||
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
public abstract class DropDownFilter
A filter is used by views which want to display a DropDownAction
, but
have to show elements of the selected action as well.
A filter is a DropDownView
which forwards their properties to another
DropDownView. The filter may cache some values, but has to forward them if the
update
-method is invoked.
Constructor Summary | |
---|---|
DropDownFilter(Dockable dockable,
DropDownAction action,
DropDownView view)
Creates a new filter |
Method Summary | |
---|---|
void |
bind()
Invoked before this filter is used |
DropDownAction |
getAction()
Gets the action that is filtered. |
Dockable |
getDockable()
Gets the Dockable for which the action is
shown. |
DropDownView |
getView()
Gets a DropDownView in which this filter has to write its
properties when update(DropDownViewItem) is invoked. |
void |
unbind()
Invoked when this filter is no longer used |
abstract void |
update(DropDownViewItem selection)
Updates all properties using the current selection of a button. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownView |
---|
setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setSelected, setText, setTooltip |
Constructor Detail |
---|
public DropDownFilter(Dockable dockable, DropDownAction action, DropDownView view)
dockable
- the owner of the viewaction
- the action that is filteredview
- a view where this filter should write intoMethod Detail |
---|
public Dockable getDockable()
Dockable
for which the action
is
shown.
public DropDownAction getAction()
public DropDownView getView()
DropDownView
in which this filter has to write its
properties when update(DropDownViewItem)
is invoked. The view
should be seen as a thing like a button or a menu item.
public void bind()
public void unbind()
public abstract void update(DropDownViewItem selection)
selection
- the selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |