public class CommonEclipseThemeConnector extends DefaultEclipseThemeConnector
EclipseThemeConnector
pays attention to features only
present in CDockable
s.EclipseThemeConnector.TitleBar
Constructor and Description |
---|
CommonEclipseThemeConnector(CControl control)
Creates a new connector.
|
Modifier and Type | Method and Description |
---|---|
void |
addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Adds
listener to this connector. |
protected EclipseTabDockActionLocation |
getLocation(CAction action,
EclipseTabStateInfo tab)
Gets the location of
action depending on the state of tab . |
protected EclipseTabDockActionLocation |
getLocation(DockAction action,
EclipseTabStateInfo tab)
Gets the location of
action . |
EclipseThemeConnector.TitleBar |
getTitleBarKind(DockStation parent,
Dockable dockable)
Tells which kind of title and
DockableDisplayer should be
shown for dockable assuming everything can be chosen
freely. |
void |
removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Removes
listener from this connector. |
getLocation, hasListeners, listeners, shouldShowOnSide, shouldShowOnTab
public CommonEclipseThemeConnector(CControl control)
control
- the control in whose realm this connector works, not null
public void addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
EclipseThemeConnector
listener
to this connector.addEclipseThemeConnectorListener
in interface EclipseThemeConnector
addEclipseThemeConnectorListener
in class DefaultEclipseThemeConnector
listener
- the listener, not null
public void removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
EclipseThemeConnector
listener
from this connector.removeEclipseThemeConnectorListener
in interface EclipseThemeConnector
removeEclipseThemeConnectorListener
in class DefaultEclipseThemeConnector
listener
- the listener to removeprotected EclipseTabDockActionLocation getLocation(DockAction action, EclipseTabStateInfo tab)
DefaultEclipseThemeConnector
action
.getLocation
in class DefaultEclipseThemeConnector
action
- the action whose location is searchedtab
- the state of a tabaction
, not null
protected EclipseTabDockActionLocation getLocation(CAction action, EclipseTabStateInfo tab)
action
depending on the state of tab
.action
- the action whose location is searchedtab
- the state of a tabnull
to select the default locationpublic EclipseThemeConnector.TitleBar getTitleBarKind(DockStation parent, Dockable dockable)
EclipseThemeConnector
DockableDisplayer
should be
shown for dockable
assuming everything can be chosen
freely.getTitleBarKind
in interface EclipseThemeConnector
getTitleBarKind
in class DefaultEclipseThemeConnector
parent
- the future or current parent of dockable
that will
show the DockableDisplayer
. May be null
.dockable
- the element that stands alone on a DockStation