|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.title.DockTitleVersion
public class DockTitleVersion
A DockTitleVersion is a hint which DockTitleFactory
has to
be used to create one or more DockTitle
for some Dockables
.
DockTitleVersions are created and registered by a DockTitleManager
.
Every version consists of three slots for factories, each with different
priority. If a new title is required, the factory with the highest priority
will be used.
Constructor Summary | |
---|---|
DockTitleVersion(DockController controller,
String id)
Creates a new version. |
Method Summary | ||
---|---|---|
DockTitle |
createDockable(Dockable dockable)
Creates a title for dockable . |
|
|
createStation(D dock)
Creates a title for dock . |
|
boolean |
equals(Object obj)
|
|
DockController |
getController()
Gets the controller for which the titles are created. |
|
DockTitleFactory |
getFactory()
Gets the factory with the highest priority |
|
DockTitleFactory |
getFactory(Priority priority)
Gets the factory with the given priority. |
|
String |
getID()
Gets the name of this version. |
|
int |
hashCode()
|
|
boolean |
isSet(Priority priority)
Tells whether there is a factory with the importance priority ,
or not. |
|
void |
setFactory(DockTitleFactory factory,
Priority priority)
Stores factory at the slot priority . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockTitleVersion(DockController controller, String id)
controller
- the controller for which titles will be createdid
- the unique name of this versionMethod Detail |
---|
public DockTitleFactory getFactory()
null
if there is no
factory registered.public void setFactory(DockTitleFactory factory, Priority priority)
factory
at the slot priority
.
factory
- the factorypriority
- the importance of the factorypublic DockTitleFactory getFactory(Priority priority)
priority
- the priority
null
public boolean isSet(Priority priority)
priority
,
or not.
priority
- the searched priority
true
if there is a factorypublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String getID()
DockTitleManager
.
public DockTitle createDockable(Dockable dockable)
dockable
. The factory
with the highest priority is used for this job.
dockable
- the Dockable which needs a title
null
public <D extends Dockable & DockStation> DockTitle createStation(D dock)
dock
. The factory
with the highest priority is used for this job.
D
- a class which is Dockable and DockStationdock
- the dockable station
null
public DockController getController()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |