|
||||||||||
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.gui.dock.station.stack.DockActionCombinedInfoComponent
public abstract class DockActionCombinedInfoComponent
An AbstractTabPaneComponent
that was specifically desinged for showing a set of DockAction
s.
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 infoMethod Detail |
---|
public void destroy()
public void setSelection(Dockable dockable)
dockable
- the item, can be null
public Dockable getSelection()
null
public 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 null
protected 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()
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 |