bibliothek.extension.gui.dock.theme.eclipse
Class EclipseDockActionSource

java.lang.Object
  extended by bibliothek.gui.dock.action.AbstractDockActionSource
      extended by bibliothek.gui.dock.action.FilteredDockActionSource
          extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseDockActionSource
All Implemented Interfaces:
DockActionSource, Iterable<DockAction>

public class EclipseDockActionSource
extends FilteredDockActionSource

A list of DockActions filtered by the EclipseThemeConnector, using EclipseThemeConnector.isTabAction(Dockable, DockAction).

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
listeners
 
Constructor Summary
EclipseDockActionSource(EclipseTheme theme, DockActionSource source, Dockable dockable, boolean tab)
          Creates a new source
 
Method Summary
protected  boolean include(DockAction action)
          Tells whether action should be included in the list of actions of this source, or not.
 
Methods inherited from class bibliothek.gui.dock.action.FilteredDockActionSource
addDockActionSourceListener, getDockAction, getDockActionCount, getLocationHint, iterator, removeDockActionSourceListener
 
Methods inherited from class bibliothek.gui.dock.action.AbstractDockActionSource
fireAdded, fireRemoved, hasListeners, indexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseDockActionSource

public EclipseDockActionSource(EclipseTheme theme,
                               DockActionSource source,
                               Dockable dockable,
                               boolean tab)
Creates a new source

Parameters:
theme - the theme for which this source is used
source - the source which is filtered
dockable - the Dockable for which the actions are shown
tab - the expected result of EclipseThemeConnector.isTabAction(Dockable, DockAction)
Method Detail

include

protected boolean include(DockAction action)
Description copied from class: FilteredDockActionSource
Tells whether action should be included in the list of actions of this source, or not.

Specified by:
include in class FilteredDockActionSource
Parameters:
action - the action to test
Returns:
true if action should be shown