public interface TabContentFilter
StackDockStation
or a StackDockComponent
how to fill the tabs
for its children. Note that if a StackDockStation
is using a StackDockComponent
, this
filter gets not informed about the existence of the StackDockComponent
. However some other
modules using a StackDockComponent
may decide to register them directly.StackDockStation.TAB_CONTENT_FILTER
Modifier and Type | Method and Description |
---|---|
void |
addListener(TabContentFilterListener listener)
Adds a listener to this filter.
|
TabContent |
filter(TabContent content,
StackDockComponent component,
Dockable dockable)
Filters the contents of a tab.
|
TabContent |
filter(TabContent content,
StackDockStation station,
Dockable dockable)
Filters the contents of a tab.
|
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 . |
void |
removeListener(TabContentFilterListener listener)
Removes a listener from this filter.
|
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 . |
void install(StackDockStation station)
station
.station
- a new clientvoid install(StackDockComponent component)
component
. Note that this
method may not be called if the component
itself is used by a StackDockStation
.component
- a new clientvoid uninstall(StackDockStation station)
station
.station
- an old clientvoid uninstall(StackDockComponent component)
component
.component
- the old componentvoid addListener(TabContentFilterListener listener)
listener
- the new listener, not null
void removeListener(TabContentFilterListener listener)
listener
- the listener to removeTabContent filter(TabContent content, StackDockStation station, Dockable dockable)
content
- the default content to use, not null
station
- the station which calls this methoddockable
- the element which is displayednull
TabContent filter(TabContent content, StackDockComponent component, Dockable dockable)
content
- the default content to use, not null
component
- the component which calls this methoddockable
- the element which is displayednull