|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.extension.gui.dock.theme.eclipse.DefaultEclipseThemeConnector
public class DefaultEclipseThemeConnector
This default implementation of EclipseThemeConnector
draws the typical eclipse-header over Dockable
s
and neither border nor title over DockStation
s. It checks each DockAction
for
the annotation EclipseTabDockAction
and the actions with the annotation are painted
on tabs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface bibliothek.extension.gui.dock.theme.eclipse.EclipseThemeConnector |
---|
EclipseThemeConnector.TitleBar |
Constructor Summary | |
---|---|
DefaultEclipseThemeConnector()
|
Method Summary | |
---|---|
void |
addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Adds listener to this connector. |
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. |
protected boolean |
hasListeners()
Tells whether this has any registered listeners. |
boolean |
isTabAction(Dockable dockable,
DockAction action)
Tells whether action should be displayed on the tab
of dockable or on the right side. |
protected EclipseThemeConnectorListener[] |
listeners()
Gets all listeners that are currently registered at this connector. |
void |
removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
Removes listener from this connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEclipseThemeConnector()
Method Detail |
---|
public void addEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
EclipseThemeConnector
listener
to this connector.
addEclipseThemeConnectorListener
in interface EclipseThemeConnector
listener
- the listener, not null
public void removeEclipseThemeConnectorListener(EclipseThemeConnectorListener listener)
EclipseThemeConnector
listener
from this connector.
removeEclipseThemeConnectorListener
in interface EclipseThemeConnector
listener
- the listener to removeprotected EclipseThemeConnectorListener[] listeners()
protected boolean hasListeners()
this
has any registered listeners.
true
if there is at least one listener registered.public EclipseThemeConnector.TitleBar getTitleBarKind(DockStation parent, Dockable dockable)
EclipseThemeConnector
DockableDisplayer
should be
shown for dockable
assuming everything can be chosen
freely.
getTitleBarKind
in interface EclipseThemeConnector
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
public boolean isTabAction(Dockable dockable, DockAction action)
EclipseThemeConnector
action
should be displayed on the tab
of dockable
or on the right side.
isTabAction
in interface EclipseThemeConnector
dockable
- the owner of action
action
- the action to display
true
if action
should be child of
the tab
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |