public interface FrontendPerspectiveCache
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.Modifier and Type | Method and Description |
---|---|
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. |
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 notnull
String get(PerspectiveElement element)
element
.element
- some element, can be either a dockable or a root-stationnull
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-stationtrue
if station
should be treated as root-station