|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.stack.tab.AbstractTabContentFilter
public abstract class AbstractTabContentFilter
An abstract implementation of TabContentFilter
, knows which StackDockStation
s
and which Dockable
s are currently filtered.
Subclasses may override added
, removed
,
deselected
and selected
to be informed
if the contents of a StackDockStation
changed.
Field Summary | |
---|---|
protected List<StackDockStation> |
stations
all stations that are currently installed |
Constructor Summary | |
---|---|
AbstractTabContentFilter()
|
Method Summary | |
---|---|
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(StackDockStationFilterListener 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,
StackDockStation station,
Dockable dockable)
This implementation just returns content . |
protected void |
fireChanged()
Calls StackDockStationFilterListener.contentChanged() on all
listeners that are currently installed. |
protected void |
fireChanged(Dockable dockable)
Calls StackDockStationFilterListener.contentChanged(Dockable) on all
listeners that are currently installed. |
protected void |
fireChanged(StackDockStation station)
Calls StackDockStationFilterListener.contentChanged(StackDockStation) on all
listeners that are currently installed. |
void |
install(StackDockStation station)
Informs this filter that it will be used by station . |
protected StackDockStationFilterListener[] |
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(StackDockStationFilterListener listener)
Removes a listener from this filter. |
protected void |
selected(StackDockStation station,
Dockable dockable)
Called when the selection of station changed to newSelection . |
void |
uninstall(StackDockStation station)
Informs this filter that it is no longer used by station . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<StackDockStation> stations
Constructor Detail |
---|
public AbstractTabContentFilter()
Method Detail |
---|
public void addListener(StackDockStationFilterListener listener)
TabContentFilter
addListener
in interface TabContentFilter
listener
- the new listener, not null
public void removeListener(StackDockStationFilterListener listener)
TabContentFilter
removeListener
in interface TabContentFilter
listener
- the listener to removeprotected StackDockStationFilterListener[] listeners()
protected void fireChanged()
StackDockStationFilterListener.contentChanged()
on all
listeners that are currently installed.
protected void fireChanged(Dockable dockable)
StackDockStationFilterListener.contentChanged(Dockable)
on all
listeners that are currently installed.
dockable
- the element whose content changedprotected void fireChanged(StackDockStation station)
StackDockStationFilterListener.contentChanged(StackDockStation)
on all
listeners that are currently installed.
station
- the station whose content changedpublic void install(StackDockStation station)
TabContentFilter
station
.
install
in interface TabContentFilter
station
- a new clientpublic void uninstall(StackDockStation station)
TabContentFilter
station
.
uninstall
in interface TabContentFilter
station
- an old clientpublic TabContent filter(TabContent content, StackDockStation station, Dockable dockable)
content
.
filter
in interface TabContentFilter
content
- the default content to use, not null
station
- the station which calls this methoddockable
- the element which is displayed
null
protected 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 dockable
dockable
- the new childprotected void removed(StackDockStation station, Dockable dockable)
dockable
has been removed from station
.
station
- the old parent of dockable
dockable
- the removed elementprotected void selected(StackDockStation station, Dockable dockable)
station
changed to newSelection
.
station
- the owner of newSelection
dockable
- the new selection, not null
protected void deselected(StackDockStation station, Dockable dockable)
station
changed to another dockable than oldSelection
.
station
- the owner of oldSelection
dockable
- the old selection, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |