|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabInfo
public class EclipseTabInfo
This component shows a subset of DockAction
s of the currently selected
Dockable
of its parent TabPane
. The global EclipseThemeConnector
is used to determine which actions to show, only non-tab actions are shown.
Constructor Summary | |
---|---|
EclipseTabInfo(EclipseTabPane pane)
Creates a new component. |
Method Summary | |
---|---|
Component |
getComponent()
Gets the Component which is wrapped into this
AbstractTabPaneComponent . |
Size[] |
getSizes()
Creates a map of all sizes for which this block knows how to make an optimal layout. |
int |
getZOrder()
Gets the value of the z order. |
boolean |
isPaneVisible()
Tells whether this component is visible or not. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the boundaries of this block. |
void |
setLayout(Size size)
Sets the layout of this block, the exact meaning of size
depends on this block. |
void |
setOrientation(TabPlacement orientation)
Tells this component how to paint itself. |
void |
setPaneVisible(boolean visible)
Changes the visibility state of this component. |
void |
setSelection(Dockable dockable)
Sets the element whose actions should be shown on this info. |
void |
setZOrder(int order)
Sets the z order of this component. |
LayoutBlock |
toLayoutBlock()
Gets a LayoutBlock related to this component. |
protected void |
updateContent()
Using the current DockController and Dockable , this
method updates the DockActionSource which selects the
actions of this info. |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent |
---|
getBounds, getMaximumSize, getMinimumSize, getOrientation, getOverlap, getPreferredSize, getTabParent, setBounds |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent |
---|
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBounds |
Constructor Detail |
---|
public EclipseTabInfo(EclipseTabPane pane)
pane
- the owner of this infoMethod Detail |
---|
public void setSelection(Dockable dockable)
dockable
- the item, can be null
protected void updateContent()
DockController
and Dockable
, this
method updates the DockActionSource
which selects the
actions of this info.
public Component getComponent()
AbstractTabPaneComponent
Component
which is wrapped into this
AbstractTabPaneComponent
. This method is not called from the
constructor.
getComponent
in interface CombinedInfoComponent
getComponent
in class AbstractTabPaneComponent
Component
, not null
public boolean isPaneVisible()
TabPaneComponent
isPaneVisible
in interface TabPaneComponent
true
if visible, false
otherwisepublic void setPaneVisible(boolean visible)
TabPaneComponent
setPaneVisible
in interface TabPaneComponent
visible
- the new statepublic int getZOrder()
TabPaneComponent
getZOrder
in interface TabPaneComponent
TabPaneComponent.setZOrder(int)
public void setZOrder(int order)
TabPaneComponent
TabPaneComponent
s
on the parent TabPane
. The implementation may increase or
decrease z-orders to prevent collisions between components with the same
order.
setZOrder
in interface TabPaneComponent
order
- the order, can be any integer.public LayoutBlock toLayoutBlock()
LonelyTabPaneComponent
LayoutBlock
related to this component. This method
may create a new block or return always the same block.
toLayoutBlock
in interface LonelyTabPaneComponent
LayoutBlock
related to this componentpublic void setOrientation(TabPlacement orientation)
TabPaneComponent
setOrientation
in interface LayoutBlock
setOrientation
in interface TabPaneComponent
setOrientation
in class AbstractTabPaneComponent
orientation
- the orientation, not null
public Size[] getSizes()
LayoutBlock
getSizes
in interface LayoutBlock
null
public void setLayout(Size size)
LayoutBlock
size
depends on this block. In general keys returned by the last call of
LayoutBlock.getSizes()
must be accepted, for any other key the behavior
is unspecified.
setLayout
in interface LayoutBlock
size
- the new layoutpublic void setBounds(int x, int y, int width, int height)
LayoutBlock
setBounds
in interface LayoutBlock
x
- the x coordinatey
- the y coordinatewidth
- the width in pixelheight
- the height in pixel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |