|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsideRequest
An AsideRequest
represents the action of generating a DockableProperty
that is
"aside" another property, this includes modifying DockStation
s and layouts to store
a placeholder for the new property.
One AsideRequest
is always tied to exactly one DockStation
or Combiner
,
forwarding a request to another DockStation
will produce very strange results.
Field Summary | |
---|---|
static PropertyKey<AsideRequestFactory> |
REQUEST_FACTORY
Property key for getting the default AsideRequestFactory . |
Method Summary | |
---|---|
void |
answer()
Shortcut for calling answer(DockableProperty) with a value of null . |
void |
answer(DockableProperty location)
Sets the result of this request, location will be merged with other
results from the parent and children stations using the
successor property. |
void |
answer(DockableProperty location,
PlaceholderMap station)
Sets the result of this request, and tells how the layout of a non-existent stations looks after the request has been handled. |
void |
answer(PlaceholderMap station)
Tells this request how the layout of a non-existent station looks after the request has been handled. |
AsideAnswer |
execute(DockStation station)
Executes this request calling the aside method of station . |
AsideAnswer |
forward(Combiner combiner)
Calls the Combiner.aside(AsideRequest) method of combiner with the
successor of the current location . |
AsideAnswer |
forward(Combiner combiner,
PlaceholderMap layout)
Calls the Combiner.aside(AsideRequest) method of combiner with the
successor of the current location . |
AsideAnswer |
forward(DockStation station)
Calls the DockStation.aside(AsideRequest) method of station with the
successor of the current location . |
PlaceholderMap |
getLayout()
Gets the layout of the current non-existent station. |
DockableProperty |
getLocation()
Gets the old location, the location whose neighbor is searched. |
DockStation |
getParentStation()
Gets the DockStation that is the parent of the current DockStation or Combiner . |
Path |
getPlaceholder()
The placeholder that should be used for the new location. |
Field Detail |
---|
static final PropertyKey<AsideRequestFactory> REQUEST_FACTORY
AsideRequestFactory
.
Method Detail |
---|
AsideAnswer execute(DockStation station)
aside
method of station
.
station
- the station whose aside
method is to be called
IllegalStateException
- if this request is already executedDockableProperty getLocation()
successor
.
null
Path getPlaceholder()
null
PlaceholderMap getLayout()
DockStation
is available, and it is only set if it
is known.
DockStation.getPlaceholders()
, null
if not known or not necessaryDockStation getParentStation()
DockStation
that is the parent of the current DockStation
or Combiner
.
null
either for a root station or if the recursion of
Combiner
s is too highvoid answer()
answer(DockableProperty)
with a value of null
.
void answer(DockableProperty location)
location
will be merged with other
results from the parent and children stations using the
successor
property. If location
already has a successor, then the successor of the last DockableProperty
in the chain
may be modified by this method.null
" are
two different things.
location
- the location describing the "neighbor" of DockableProperty
, a value
of null
indicates that the parent and child request should be merged directlyvoid answer(PlaceholderMap station)
null
indicates that there will be no layout after the
request finished. Not calling the method at all indicates that the current layout is not affected.getLayout()
.
station
- the new layout, can be null
void answer(DockableProperty location, PlaceholderMap station)
null
, as described in answer(DockableProperty)
and answer(PlaceholderMap)
.
location
- the location describing the "neighbor" of DockableProperty
, a value
of null
indicates that the parent and child request should be merged directlystation
- the new layout, can be null
AsideAnswer forward(DockStation station)
DockStation.aside(AsideRequest)
method of station
with the
successor
of the current location
.
The aside
method is called in any case, even if the current location is null
or has no successor.
station
- the station on which to continue the request
station
reacted to the requestAsideAnswer forward(Combiner combiner)
Combiner.aside(AsideRequest)
method of combiner
with the
successor
of the current location
.
The aside
method is called in any case, even if the current location is null
or has no successor.
combiner
- the non-existent station on which to continue the request
combiner
reacted to the requestAsideAnswer forward(Combiner combiner, PlaceholderMap layout)
Combiner.aside(AsideRequest)
method of combiner
with the
successor
of the current location
.
The aside
method is called in any case, even if the current location is null
or has no successor.
combiner
- the non-existent station on which to continue the requestlayout
- the layout of the non-existent station, as was created by DockStation.getPlaceholders()
.
Can be null
in which case this method behaves like forward(Combiner)
combiner
reacted to the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |