public class DefaultTabContentFilter extends AbstractTabContentFilter
TabContentFilter offers a set of predefined behavioral patterns.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultTabContentFilter.Behavior
Tells a
DefaultTabContentFilter how it behaves. |
components, stations| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
added, addListener, fireChanged, fireChanged, fireChanged, fireChanged, install, install, listeners, removed, removeListener, uninstall, uninstallpublic DefaultTabContentFilter()
DefaultTabContentFilter.Behavior.ALL.public DefaultTabContentFilter(DefaultTabContentFilter.Behavior behavior)
behavior - the behavior applied to all elementspublic DefaultTabContentFilter(DefaultTabContentFilter.Behavior selected, DefaultTabContentFilter.Behavior deselected)
selected - the behavior applied to selected elementsdeselected - the behavior applied to unselected elementspublic 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()
nullpublic 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 displayednullpublic 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 displayednullprotected void selected(StackDockStation station, Dockable dockable)
AbstractTabContentFilterstation changed to newSelection.selected in class AbstractTabContentFilterstation - the owner of newSelectiondockable - the new selection, not nullprotected 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 changedCopyright © 2017 Docking Frames. All rights reserved.