|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.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 Dockable
.
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.
DockTitleVersion
implements DockTitleFactory
for convenience.
Constructor Summary | |
---|---|
DockTitleVersion(DockController controller,
java.lang.String id)
Creates a new version. |
Method Summary | |
---|---|
boolean |
equals(java.lang.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. |
java.lang.String |
getID()
Gets the name of this version. |
int |
hashCode()
|
void |
install(DockTitleRequest request)
Adds request to this version. |
boolean |
isSet(Priority priority)
Tells whether there is a factory with the importance priority ,
or not. |
void |
request()
Calls DockTitleRequest.request() for all DockTitleRequest s
that are currently installed on this version. |
void |
request(DockTitleRequest request)
Calls DockTitleFactory.request(DockTitleRequest) for the current
factory. |
void |
setFactory(DockTitleFactory factory,
Priority priority)
Stores factory at the slot priority . |
void |
uninstall(DockTitleRequest request)
Removes request from this version. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockTitleVersion(DockController controller, java.lang.String id)
controller
- the controller for which titles will be createdid
- the unique name of this versionMethod Detail |
---|
public void install(DockTitleRequest request)
request
to this version. The request
will
be installed on the current DockTitleFactory
of this version.
This method should not be called by clients, clients should call DockTitleRequest.install()
.
install
in interface DockTitleFactory
request
- the new request, not null
public void uninstall(DockTitleRequest request)
request
from this version. This method should not be
called by clients, clients should call DockTitleRequest.uninstall()
.
uninstall
in interface DockTitleFactory
request
- the request to removepublic void request(DockTitleRequest request)
DockTitleFactory.request(DockTitleRequest)
for the current
factory.
request
in interface DockTitleFactory
request
- the request to answerpublic void request()
DockTitleRequest.request()
for all DockTitleRequest
s
that are currently installed on this version.
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 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getID()
DockTitleManager
.
public DockController getController()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |