|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.stack.tab.AbstractTabPaneComponent
bibliothek.extension.gui.dock.theme.eclipse.stack.EclipseTabInfo
public class EclipseTabInfo
This component shows a subset of DockActions 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 info| Method Detail |
|---|
public void setSelection(Dockable dockable)
dockable - the item, can be nullprotected void updateContent()
DockController and Dockable, this
method updates the DockActionSource which selects the
actions of this info.
public Component getComponent()
AbstractTabPaneComponentComponent which is wrapped into this
AbstractTabPaneComponent. This method is not called from the
constructor.
getComponent in interface CombinedInfoComponentgetComponent in class AbstractTabPaneComponentComponent, not nullpublic boolean isPaneVisible()
TabPaneComponent
isPaneVisible in interface TabPaneComponenttrue if visible, false otherwisepublic void setPaneVisible(boolean visible)
TabPaneComponent
setPaneVisible in interface TabPaneComponentvisible - the new statepublic int getZOrder()
TabPaneComponent
getZOrder in interface TabPaneComponentTabPaneComponent.setZOrder(int)public void setZOrder(int order)
TabPaneComponentTabPaneComponents
on the parent TabPane. The implementation may increase or
decrease z-orders to prevent collisions between components with the same
order.
setZOrder in interface TabPaneComponentorder - the order, can be any integer.public LayoutBlock toLayoutBlock()
LonelyTabPaneComponentLayoutBlock related to this component. This method
may create a new block or return always the same block.
toLayoutBlock in interface LonelyTabPaneComponentLayoutBlock related to this componentpublic void setOrientation(TabPlacement orientation)
TabPaneComponent
setOrientation in interface LayoutBlocksetOrientation in interface TabPaneComponentsetOrientation in class AbstractTabPaneComponentorientation - the orientation, not nullpublic Size[] getSizes()
LayoutBlock
getSizes in interface LayoutBlocknullpublic void setLayout(Size size)
LayoutBlocksize
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 LayoutBlocksize - the new layout
public void setBounds(int x,
int y,
int width,
int height)
LayoutBlock
setBounds in interface LayoutBlockx - 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 | |||||||||