public abstract class AbstractTabContentFilter extends Object implements TabContentFilter
TabContentFilter, knows which StackDockStations
and which Dockables are currently filtered.added, removed,
deselected and selected to be informed
if the contents of a StackDockStation changed.StackDockComponent.| Modifier and Type | Field and Description |
|---|---|
protected List<StackDockComponent> |
components
all the components that are currently installed
|
protected List<StackDockStation> |
stations
all stations that are currently installed
|
| Constructor and Description |
|---|
AbstractTabContentFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
added(StackDockStation station,
Dockable dockable)
Called when
dockable is added to station, this method is called before
the dock parent of dockable is set. |
void |
addListener(TabContentFilterListener listener)
Adds a listener to this filter.
|
protected void |
deselected(StackDockStation station,
Dockable dockable)
Called when the selection of
station changed to another dockable than oldSelection. |
TabContent |
filter(TabContent content,
StackDockComponent component,
Dockable dockable)
This implementation just returns
content. |
TabContent |
filter(TabContent content,
StackDockStation station,
Dockable dockable)
This implementation just returns
content. |
protected void |
fireChanged()
Calls
TabContentFilterListener.contentChanged() on all
listeners that are currently installed. |
protected void |
fireChanged(Dockable dockable)
Calls
TabContentFilterListener.contentChanged(Dockable) on all
listeners that are currently installed. |
protected void |
fireChanged(StackDockComponent component)
Calls
TabContentFilterListener.contentChanged(StackDockComponent) on all
listeners that are currently installed. |
protected void |
fireChanged(StackDockStation station)
Calls
TabContentFilterListener.contentChanged(StackDockStation) on all
listeners that are currently installed. |
void |
install(StackDockComponent component)
Informs this filter that it will be used by
component. |
void |
install(StackDockStation station)
Informs this filter that it will be used by
station. |
protected TabContentFilterListener[] |
listeners()
Gets all listeners that are currently observing this filter.
|
protected void |
removed(StackDockStation station,
Dockable dockable)
Called when
dockable has been removed from station. |
void |
removeListener(TabContentFilterListener listener)
Removes a listener from this filter.
|
protected void |
selected(StackDockStation station,
Dockable dockable)
Called when the selection of
station changed to newSelection. |
protected void |
selectionChanged(StackDockComponent component)
Called if the selection of
component changed. |
void |
uninstall(StackDockComponent component)
Informs this filter that it is no longer used by
component. |
void |
uninstall(StackDockStation station)
Informs this filter that it is no longer used by
station. |
protected List<StackDockStation> stations
protected List<StackDockComponent> components
public void addListener(TabContentFilterListener listener)
TabContentFilteraddListener in interface TabContentFilterlistener - the new listener, not nullpublic void removeListener(TabContentFilterListener listener)
TabContentFilterremoveListener in interface TabContentFilterlistener - the listener to removeprotected TabContentFilterListener[] listeners()
protected void fireChanged()
TabContentFilterListener.contentChanged() on all
listeners that are currently installed.protected void fireChanged(Dockable dockable)
TabContentFilterListener.contentChanged(Dockable) on all
listeners that are currently installed.dockable - the element whose content changedprotected void fireChanged(StackDockStation station)
TabContentFilterListener.contentChanged(StackDockStation) on all
listeners that are currently installed.station - the station whose content changedprotected void fireChanged(StackDockComponent component)
TabContentFilterListener.contentChanged(StackDockComponent) on all
listeners that are currently installed.component - the component whose content changedpublic void install(StackDockStation station)
TabContentFilterstation.install in interface TabContentFilterstation - a new clientpublic void install(StackDockComponent component)
TabContentFiltercomponent. Note that this
method may not be called if the component itself is used by a StackDockStation.install in interface TabContentFiltercomponent - a new clientpublic void uninstall(StackDockStation station)
TabContentFilterstation.uninstall in interface TabContentFilterstation - an old clientpublic void uninstall(StackDockComponent component)
TabContentFiltercomponent.uninstall in interface TabContentFiltercomponent - the old componentpublic TabContent filter(TabContent content, StackDockStation station, Dockable dockable)
content.filter in interface TabContentFiltercontent - the default content to use, not nullstation - the station which calls this methoddockable - the element which is displayednullpublic TabContent filter(TabContent content, StackDockComponent component, Dockable dockable)
content.filter in interface TabContentFiltercontent - the default content to use, not nullcomponent - the component which calls this methoddockable - the element which is displayednullprotected void added(StackDockStation station, Dockable dockable)
dockable is added to station, this method is called before
the dock parent of dockable is set.station - the new parent of dockabledockable - the new childprotected void removed(StackDockStation station, Dockable dockable)
dockable has been removed from station.station - the old parent of dockabledockable - the removed elementprotected void selected(StackDockStation station, Dockable dockable)
station changed to newSelection.station - the owner of newSelectiondockable - the new selection, not nullprotected void deselected(StackDockStation station, Dockable dockable)
station changed to another dockable than oldSelection.station - the owner of oldSelectiondockable - the old selection, not nullprotected void selectionChanged(StackDockComponent component)
component changed.component - the component whose selection changedCopyright © 2017 Docking Frames. All rights reserved.