|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FrontendPerspectiveCache
This cache is used by a DockFrontend
to create a Perspective
. The strategy
will be provided with the registered DockElement
s of the frontend (root-stations and
dockables) and has to convert them into PerspectiveElement
s.
Method Summary | |
---|---|
String |
get(PerspectiveElement element)
Gets the unique identifier of element . |
PerspectiveElement |
get(String id,
boolean rootStation)
Called to convert id to a PerspectiveElement . |
PerspectiveElement |
get(String id,
DockElement element,
boolean isRootStation)
Given an element that was earlier created by the client and added to a
DockFrontend , this method converts element to a PerspectiveElement .When called multiple times with the same arguments, then this method is free to either return different objects or to always return the same object. |
boolean |
isRootStation(PerspectiveStation station)
Tells whether station is supposed to be a root-station. |
Method Detail |
---|
PerspectiveElement get(String id, DockElement element, boolean isRootStation)
element
that was earlier created by the client and added to a
DockFrontend
, this method converts element
to a PerspectiveElement
.
id
- the unique identifier under which element
is known to the DockFrontend
element
- the element whose perspective must be createdisRootStation
- whether element
is registered as root-station at the DockFrontend
or as Dockable
null
PerspectiveElement get(String id, boolean rootStation)
id
to a PerspectiveElement
. This method will only be called
with identifiers that were not used for get(String, DockElement, boolean)
.
id
- the identifier of some elementrootStation
- whether id
represents a root-station or not
null
String get(PerspectiveElement element)
element
.
element
- some element, can be either a dockable or a root-station
null
if this cache is unable to associate element
with an identifier. Should not be null
for elements that were created by
get(String, boolean)
or get(String, DockElement, boolean)
.boolean isRootStation(PerspectiveStation station)
station
is supposed to be a root-station.
station
- the element which may be a root-station
true
if station
should be treated as root-station
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |