|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel bibliothek.gui.dock.title.AbstractDockTitle bibliothek.gui.dock.themes.basic.BasicDockTitle bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BasicTabDockTitle
@ColorCodes(value={"stack.tab.top.selected.focused","stack.tab.bottom.selected.focused","stack.tab.text","stack.tab.top.selected","stack.tab.bottom.selected","stack.tab.text","stack.border"}) public class BasicTabDockTitle
A DockTitle
normally used by the DockTitleTab
to show
a very simple tab.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Nested classes/interfaces inherited from interface bibliothek.gui.dock.title.DockTitle |
---|
DockTitle.Orientation |
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.themes.basic.BasicDockTitle |
---|
FACTORY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface bibliothek.gui.dock.title.DockTitle |
---|
ORIENTATION_STRATEGY |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
BasicTabDockTitle(EclipseTheme theme,
Dockable dockable,
DockTitleVersion origin)
Creates a new title |
Method Summary | |
---|---|
void |
bind()
Called before this title is displayed. |
void |
changed(DockTitleEvent event)
Called if a property changed that might be important for painting this title. |
static DockTitleFactory |
createFactory(EclipseTheme theme)
Gets a new DockTitleFactory using theme as
source of various properties. |
protected DockActionSource |
getActionSourceFor(Dockable dockable)
Gets a list of all actions which will be shown on this title. |
Dimension |
getMinimumSize()
|
protected void |
setIcon(Icon icon)
Sets the icon of this title. |
void |
unbind()
The reverse of DockTitle.bind() . |
Methods inherited from class bibliothek.gui.dock.title.AbstractDockTitle |
---|
addColor, addConditionalFont, addFont, addMouseInputListener, createItemFor, doLayout, getComponent, getDockable, getElement, getIcon, getIconBounds, getInnerInsets, getOrientation, getOrigin, getPopupLocation, getPreferredSize, getText, init, isActive, isBound, isUsedAsTitle, paintComponent, removeAllConditionalFonts, removeColor, removeFont, removeMouseInputListener, setBackground, setFont, setFontModifier, setForeground, setText, setTooltip, updateFonts, updateIcon, updateText, updateTooltip |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicTabDockTitle(EclipseTheme theme, Dockable dockable, DockTitleVersion origin)
theme
- the properties needed to paint this title correctlydockable
- the element for which this title is shownorigin
- the type of this titleMethod Detail |
---|
public static DockTitleFactory createFactory(EclipseTheme theme)
DockTitleFactory
using theme
as
source of various properties.
theme
- the settings
public void bind()
DockTitle
owner
.
If the title wants to show some DockActions
(see the method
DockController.listOffers(Dockable)
), then this method
should bind
them too.Dockable.bind(DockTitle)
. The DockController
will call the bind
-method, as soon as the Dockable
knows the controller.
bind
in interface DockTitle
bind
in class AbstractDockTitle
public void unbind()
DockTitle
DockTitle.bind()
. The title should remove any connections
to other objects and unbind
its
DockAction
s.Dockable.unbind(DockTitle)
. The DockController
will call the unbind
-method before the Dockable
looses the controller.
unbind
in interface DockTitle
unbind
in class AbstractDockTitle
protected DockActionSource getActionSourceFor(Dockable dockable)
AbstractDockTitle
getActionSourceFor
in class AbstractDockTitle
dockable
- the owner of the actions
public Dimension getMinimumSize()
getMinimumSize
in class AbstractDockTitle
public void changed(DockTitleEvent event)
DockTitle
DockTitleEvent
to transmit more information
to this title than DockTitleEvent
would allow.
changed
in interface DockTitle
changed
in class AbstractDockTitle
event
- information about the current stateprotected void setIcon(Icon icon)
AbstractDockTitle
setIcon
in class AbstractDockTitle
icon
- the icon, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |