|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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.
Note that this filter does not observe whether elements are added or removed from a StackDockComponent
.
Field Summary | |
---|---|
protected java.util.List<StackDockComponent> |
components
all the components that are currently installed |
protected java.util.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(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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<StackDockStation> stations
protected java.util.List<StackDockComponent> components
Constructor Detail |
---|
public AbstractTabContentFilter()
Method Detail |
---|
public void addListener(TabContentFilterListener listener)
TabContentFilter
addListener
in interface TabContentFilter
listener
- the new listener, not null
public void removeListener(TabContentFilterListener listener)
TabContentFilter
removeListener
in interface TabContentFilter
listener
- 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)
TabContentFilter
station
.
install
in interface TabContentFilter
station
- a new clientpublic void install(StackDockComponent component)
TabContentFilter
component
. Note that this
method may not be called if the component
itself is used by a StackDockStation
.
install
in interface TabContentFilter
component
- a new clientpublic void uninstall(StackDockStation station)
TabContentFilter
station
.
uninstall
in interface TabContentFilter
station
- an old clientpublic void uninstall(StackDockComponent component)
TabContentFilter
component
.
uninstall
in interface TabContentFilter
component
- the old componentpublic 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
public TabContent filter(TabContent content, StackDockComponent component, Dockable dockable)
content
.
filter
in interface TabContentFilter
content
- the default content to use, not null
component
- the component 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
protected void selectionChanged(StackDockComponent component)
component
changed.
component
- the component whose selection changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |