public class DefaultAsideRequest extends Object implements AsideRequest
AsideRequest, it does not modify any properties or
layouts.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultAsideRequest.CombinerForward
An adapter mapping
Combiner to DefaultAsideRequest.Forward. |
protected static class |
DefaultAsideRequest.DockStationForward
An adapter mapping
DockStation to DefaultAsideRequest.Forward. |
protected static interface |
DefaultAsideRequest.Forward
All the information required to create a new request and forward the call to a
new
DockStation or Combiner. |
REQUEST_FACTORY| Constructor and Description |
|---|
DefaultAsideRequest(DockableProperty location,
Path placeholder)
Creates a new
AsideRequest |
| Modifier and Type | Method and Description |
|---|---|
void |
answer()
Shortcut for calling
AsideRequest.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.
|
protected DefaultAsideRequest |
createForwardRequest(DockableProperty location)
Creates a new
AsideRequest which is used to examine the next child DockStation. |
protected AsideAnswer |
execute()
Makes a call to
DockStation.aside(AsideRequest) or Combiner.aside(AsideRequest). |
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. |
protected AsideAnswer |
forward(DefaultAsideRequest.Forward forward) |
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()
|
Path |
getPlaceholder()
The placeholder that should be used for the new location.
|
protected void |
setCurrent(DefaultAsideRequest.Forward current)
Sets all the information required to process a
DockStation or Combiner. |
protected void |
setParentStation(DockStation parent)
Sets the result of
getParentStation(). |
public DefaultAsideRequest(DockableProperty location, Path placeholder)
AsideRequestprotected DefaultAsideRequest createForwardRequest(DockableProperty location)
AsideRequest which is used to examine the next child DockStation.location - the location on the child stationnull nor thispublic DockableProperty getLocation()
AsideRequestsuccessor.getLocation in interface AsideRequestnullpublic Path getPlaceholder()
AsideRequestgetPlaceholder in interface AsideRequestnullpublic PlaceholderMap getLayout()
AsideRequestDockStation is available, and it is only set if it
is known.getLayout in interface AsideRequestDockStation.getPlaceholders(), null
if not known or not necessarypublic DockStation getParentStation()
AsideRequestgetParentStation in interface AsideRequestnull either for a root station or if the recursion of
Combiners is too highprotected void setParentStation(DockStation parent)
getParentStation().parent - the DockStation that should be used as parent stationpublic void answer()
AsideRequestAsideRequest.answer(DockableProperty) with a value of null.answer in interface AsideRequestpublic void answer(DockableProperty location)
AsideRequestlocation 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.answer in interface AsideRequestlocation - the location describing the "neighbor" of DockableProperty, a value
of null indicates that the parent and child request should be merged directlypublic void answer(PlaceholderMap station)
AsideRequestnull 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.AsideRequest.getLayout().answer in interface AsideRequeststation - the new layout, can be nullpublic void answer(DockableProperty location, PlaceholderMap station)
AsideRequestnull, as described in AsideRequest.answer(DockableProperty)
and AsideRequest.answer(PlaceholderMap).answer in interface AsideRequestlocation - 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 nullprotected void setCurrent(DefaultAsideRequest.Forward current)
DockStation or Combiner.current - the current item to work withpublic AsideAnswer execute(DockStation station)
AsideRequestaside method of station.execute in interface AsideRequeststation - the station whose aside method is to be calledprotected AsideAnswer execute()
DockStation.aside(AsideRequest) or Combiner.aside(AsideRequest). This method
should be called only once.Dockable that is to be insertedpublic AsideAnswer forward(DockStation station)
AsideRequestDockStation.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.forward in interface AsideRequeststation - the station on which to continue the requeststation reacted to the requestpublic AsideAnswer forward(Combiner combiner)
AsideRequestCombiner.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.forward in interface AsideRequestcombiner - the non-existent station on which to continue the requestcombiner reacted to the requestpublic AsideAnswer forward(Combiner combiner, PlaceholderMap layout)
AsideRequestCombiner.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.forward in interface AsideRequestcombiner - 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 AsideRequest.forward(Combiner)combiner reacted to the requestprotected AsideAnswer forward(DefaultAsideRequest.Forward forward)
Copyright © 2017 Docking Frames. All rights reserved.