|
||||||||||
| 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.gui.dock.station.stack.DockActionCombinedInfoComponent
public abstract class DockActionCombinedInfoComponent
An AbstractTabPaneComponent that was specifically desinged for showing a set of DockActions.
| Constructor Summary | |
|---|---|
DockActionCombinedInfoComponent(CombinedStackDockComponent<?,?,?> pane)
Creates a new component. |
|
| Method Summary | |
|---|---|
protected abstract DockActionSource |
createActionSource(Dockable dockable)
Creates a new DockActionSource for dockable. |
void |
destroy()
Informs this component that it should release any remaining resources. |
Component |
getComponent()
Gets the Component which is wrapped into this
AbstractTabPaneComponent. |
Dockable |
getSelection()
Gets the element which is currently shown on this info. |
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 |
setController(DockController controller)
Sets the DockController in whose realm this panel is used. |
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 DockActionCombinedInfoComponent(CombinedStackDockComponent<?,?,?> pane)
pane - the owner of this info| Method Detail |
|---|
public void destroy()
public void setSelection(Dockable dockable)
dockable - the item, can be nullpublic Dockable getSelection()
nullpublic void setController(DockController controller)
DockController in whose realm this panel is used. This method is usually called
automatically by the TabPaneListener that is added to the owner of this panel.
controller - the controller, can be nullprotected void updateContent()
DockController and Dockable, this
method updates the DockActionSource which selects the
actions of this info.
protected abstract DockActionSource createActionSource(Dockable dockable)
DockActionSource for dockable.
dockable - the element for which the actions are required
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 | |||||||||