public abstract class DockActionCombinedInfoComponent extends AbstractTabPaneComponent implements CombinedInfoComponent, LayoutBlock
AbstractTabPaneComponent that was specifically designed for showing a set of DockActions.| Constructor and Description |
|---|
DockActionCombinedInfoComponent(CombinedStackDockComponent<?,?,?> pane)
Creates a new component.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getBounds, getMaximumSize, getMinimumSize, getOrientation, getOverlap, getPreferredSize, getTabParent, setBoundsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, setBoundspublic DockActionCombinedInfoComponent(CombinedStackDockComponent<?,?,?> pane)
pane - the owner of this infopublic 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 requiredpublic 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()
TabPaneComponentisPaneVisible in interface TabPaneComponenttrue if visible, false otherwisepublic void setPaneVisible(boolean visible)
TabPaneComponentsetPaneVisible in interface TabPaneComponentvisible - the new statepublic int getZOrder()
TabPaneComponentgetZOrder 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)
TabPaneComponentsetOrientation in interface LayoutBlocksetOrientation in interface TabPaneComponentsetOrientation in class AbstractTabPaneComponentorientation - the orientation, not nullpublic Size[] getSizes()
LayoutBlockgetSizes 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 layoutpublic void setBounds(int x,
int y,
int width,
int height)
LayoutBlocksetBounds in interface LayoutBlockx - the x coordinatey - the y coordinatewidth - the width in pixelheight - the height in pixelCopyright © 2017 Docking Frames. All rights reserved.