|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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 DockActionSources 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 todo nothing. |
| Methods inherited from class bibliothek.gui.dock.DefaultDockable |
|---|
add, add, createTitleIcon, getComponent, 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 action| Method Detail |
|---|
public CActionSource getActions()
nullpublic CDockable getDockable()
CommonDockable
getDockable in interface CommonDockablepublic CommonDockable asDockable()
DockElementthis if this is an instance of
Dockable. Otherwise null is returned.
asDockable in interface CommonElementasDockable in interface DockElementasDockable in interface PlaceholderListItem<Dockable>asDockable in class AbstractDockablethis or null. Must not return null if DockElement.asDockable()
already returns null.public CommonDockStation<?,?> asDockStation()
DockElementthis if this is an instance of
DockStation. Otherwise null is returned.
asDockStation in interface CommonElementasDockStation in interface DockElementasDockStation in class DefaultDockablethis or null. Must not return null if DockElement.asDockable()
already returns nullpublic CStation<?> getStation()
CommonDockable
getStation in interface CommonDockablenullpublic DockActionSource[] getSources()
CommonDockableDockActionSources 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 CommonDockablepublic void requestDockTitle(DockTitleRequest request)
AbstractDockable
requestDockTitle in interface DockablerequestDockTitle in class AbstractDockablerequest - 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 | |||||||||