|
||||||||||
| 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
bibliothek.gui.dock.station.stack.tab.DefaultTabContentFilter
public class DefaultTabContentFilter
This TabContentFilter offers a set of predefined behavioral patterns.
| Nested Class Summary | |
|---|---|
static class |
DefaultTabContentFilter.Behavior
Tells a DefaultTabContentFilter how it behaves. |
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabContentFilter |
|---|
components, stations |
| Constructor Summary | |
|---|---|
DefaultTabContentFilter()
Creates a new filter using the behavior DefaultTabContentFilter.Behavior.ALL. |
|
DefaultTabContentFilter(DefaultTabContentFilter.Behavior behavior)
Creates a new filter. |
|
DefaultTabContentFilter(DefaultTabContentFilter.Behavior selected,
DefaultTabContentFilter.Behavior deselected)
Creates a new filter. |
|
| Method Summary | |
|---|---|
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. |
DefaultTabContentFilter.Behavior |
getDeselected()
Gets the behavior that is applied to unselected elements. |
DefaultTabContentFilter.Behavior |
getSelected()
Gets the behavior that is applied to selected elements. |
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 |
setDeselected(DefaultTabContentFilter.Behavior deselected)
Sets the behavior that should be applied on an unselected element. |
void |
setSelected(DefaultTabContentFilter.Behavior selected)
Sets the behavior that should be applied on a selected element. |
| Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabContentFilter |
|---|
added, addListener, fireChanged, fireChanged, fireChanged, fireChanged, install, install, listeners, removed, removeListener, uninstall, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTabContentFilter()
DefaultTabContentFilter.Behavior.ALL.
public DefaultTabContentFilter(DefaultTabContentFilter.Behavior behavior)
behavior - the behavior applied to all elements
public DefaultTabContentFilter(DefaultTabContentFilter.Behavior selected,
DefaultTabContentFilter.Behavior deselected)
selected - the behavior applied to selected elementsdeselected - the behavior applied to unselected elements| Method Detail |
|---|
public void setSelected(DefaultTabContentFilter.Behavior selected)
selected - the new behavior, not nullpublic DefaultTabContentFilter.Behavior getSelected()
nullpublic void setDeselected(DefaultTabContentFilter.Behavior deselected)
deselected - the new behavior, not nullpublic DefaultTabContentFilter.Behavior getDeselected()
null
public TabContent filter(TabContent content,
StackDockStation station,
Dockable dockable)
AbstractTabContentFiltercontent.
filter in interface TabContentFilterfilter in class AbstractTabContentFiltercontent - 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)
AbstractTabContentFiltercontent.
filter in interface TabContentFilterfilter in class AbstractTabContentFiltercontent - the default content to use, not nullcomponent - the component which calls this methoddockable - the element which is displayed
null
protected void selected(StackDockStation station,
Dockable dockable)
AbstractTabContentFilterstation changed to newSelection.
selected in class AbstractTabContentFilterstation - the owner of newSelectiondockable - the new selection, not null
protected void deselected(StackDockStation station,
Dockable dockable)
AbstractTabContentFilterstation changed to another dockable than oldSelection.
deselected in class AbstractTabContentFilterstation - the owner of oldSelectiondockable - the old selection, not nullprotected void selectionChanged(StackDockComponent component)
AbstractTabContentFiltercomponent changed.
selectionChanged in class AbstractTabContentFiltercomponent - the component whose selection changed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||