|
||||||||||
| 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 StackDockStations
and which Dockables 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 List<StackDockComponent> |
components
all the components that are currently installed |
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(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 List<StackDockStation> stations
protected List<StackDockComponent> components
| Constructor Detail |
|---|
public AbstractTabContentFilter()
| Method Detail |
|---|
public void addListener(TabContentFilterListener listener)
TabContentFilter
addListener in interface TabContentFilterlistener - the new listener, not nullpublic void removeListener(TabContentFilterListener listener)
TabContentFilter
removeListener 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 component
public 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 displayed
null
public 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 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 dockabledockable - the new child
protected void removed(StackDockStation station,
Dockable dockable)
dockable has been removed from station.
station - the old parent of dockabledockable - the removed element
protected void selected(StackDockStation station,
Dockable dockable)
station changed to newSelection.
station - the owner of newSelectiondockable - the new selection, not null
protected 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 changed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||