|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.dockable.AbstractDockable bibliothek.gui.dock.DefaultDockable bibliothek.gui.dock.common.intern.DefaultCommonDockable
public class DefaultCommonDockable
A default implementation of CommonDockable
, based on a DefaultDockable
.
Constructor Summary | |
---|---|
DefaultCommonDockable(CDockable dockable,
DockActionSource... sources)
Creates a new dockable |
Method Summary | |
---|---|
CommonDockable |
asDockable()
Returns this if this is an instance of
Dockable . |
CommonDockStation<?,?> |
asDockStation()
Returns this if this is an instance of
DockStation . |
CActionSource |
getActions()
Gets the action source for actions that are added by the client. |
CDockable |
getDockable()
Gets the model of this dockable. |
DockActionSource[] |
getSources()
Gets a set of DockActionSource s which are to be displayed
on this CommonDockable . |
CStation<?> |
getStation()
Gets the model of this dockable as station. |
void |
requestDockTitle(DockTitleRequest request)
The default behavior of this method is to do nothing. |
Methods inherited from class bibliothek.gui.dock.DefaultDockable |
---|
add, add, createTitleIcon, getClientComponent, getComponent, getComponent, getComponentCount, getContentPane, getFactoryID, remove, setController, setFactoryID, setLayout |
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.common.intern.CommonDockable |
---|
getFactoryID |
Methods inherited from interface bibliothek.gui.dock.DockElementRepresentative |
---|
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocus |
Constructor Detail |
---|
public DefaultCommonDockable(CDockable dockable, DockActionSource... sources)
dockable
- the model of this elementsources
- action source which shows the close actionMethod Detail |
---|
public CActionSource getActions()
null
public CDockable getDockable()
CommonDockable
getDockable
in interface CommonDockable
public CommonDockable asDockable()
DockElement
this
if this
is an instance of
Dockable
. Otherwise null
is returned.
asDockable
in interface CommonElement
asDockable
in interface DockElement
asDockable
in interface PlaceholderListItem<Dockable>
asDockable
in class AbstractDockable
this
or null
. Must not return null
if DockElement.asDockable()
already returns null
.public CommonDockStation<?,?> asDockStation()
DockElement
this
if this
is an instance of
DockStation
. Otherwise null
is returned.
asDockStation
in interface CommonElement
asDockStation
in interface DockElement
asDockStation
in class DefaultDockable
this
or null
. Must not return null
if DockElement.asDockable()
already returns null
public CStation<?> getStation()
CommonDockable
getStation
in interface CommonDockable
null
public DockActionSource[] getSources()
CommonDockable
DockActionSource
s which are to be displayed
on this CommonDockable
. Note that every call to this
method should return the same array of sources. Callers should not
modify the result.
getSources
in interface CommonDockable
public void requestDockTitle(DockTitleRequest request)
AbstractDockable
requestDockTitle
in interface Dockable
requestDockTitle
in class AbstractDockable
request
- which title is required. If this Dockable does not have
a special rule for the given request it just ignores the call
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |