|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.layout.location.DefaultAsideRequest
public class DefaultAsideRequest
The default implementation of an AsideRequest
, it does not modify any properties or
layouts.
Nested Class Summary | |
---|---|
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 . |
Field Summary |
---|
Fields inherited from interface bibliothek.gui.dock.layout.location.AsideRequest |
---|
REQUEST_FACTORY |
Constructor Summary | |
---|---|
DefaultAsideRequest(DockableProperty location,
Path placeholder)
Creates a new AsideRequest |
Method Summary | |
---|---|
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()
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. |
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() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAsideRequest(DockableProperty location, Path placeholder)
AsideRequest
location
- the location of an existing Dockable
, must not be null
placeholder
- the unique identifier of the Dockable
to insert, the algorithms work much better if
this arguments is not null
Method Detail |
---|
protected DefaultAsideRequest createForwardRequest(DockableProperty location)
AsideRequest
which is used to examine the next child DockStation
.
location
- the location on the child station
null
nor this
public DockableProperty getLocation()
AsideRequest
successor
.
getLocation
in interface AsideRequest
null
public Path getPlaceholder()
AsideRequest
getPlaceholder
in interface AsideRequest
null
public PlaceholderMap getLayout()
AsideRequest
DockStation
is available, and it is only set if it
is known.
getLayout
in interface AsideRequest
DockStation.getPlaceholders()
, null
if not known or not necessarypublic DockStation getParentStation()
AsideRequest
DockStation
that is the parent of the current DockStation
or Combiner
.
getParentStation
in interface AsideRequest
null
either for a root station or if the recursion of
Combiner
s is too highprotected void setParentStation(DockStation parent)
getParentStation()
.
parent
- the DockStation
that should be used as parent stationpublic void answer()
AsideRequest
AsideRequest.answer(DockableProperty)
with a value of null
.
answer
in interface AsideRequest
public void answer(DockableProperty location)
AsideRequest
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.
answer
in interface AsideRequest
location
- 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)
AsideRequest
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.AsideRequest.getLayout()
.
answer
in interface AsideRequest
station
- the new layout, can be null
public void answer(DockableProperty location, PlaceholderMap station)
AsideRequest
null
, as described in AsideRequest.answer(DockableProperty)
and AsideRequest.answer(PlaceholderMap)
.
answer
in interface AsideRequest
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
protected void setCurrent(DefaultAsideRequest.Forward current)
DockStation
or Combiner
.
current
- the current item to work withpublic AsideAnswer execute(DockStation station)
AsideRequest
aside
method of station
.
execute
in interface AsideRequest
station
- the station whose aside
method is to be called
protected 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)
AsideRequest
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.
forward
in interface AsideRequest
station
- the station on which to continue the request
station
reacted to the requestpublic AsideAnswer forward(Combiner combiner)
AsideRequest
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.
forward
in interface AsideRequest
combiner
- the non-existent station on which to continue the request
combiner
reacted to the requestpublic AsideAnswer forward(Combiner combiner, PlaceholderMap layout)
AsideRequest
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.
forward
in interface AsideRequest
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 AsideRequest.forward(Combiner)
combiner
reacted to the requestprotected AsideAnswer forward(DefaultAsideRequest.Forward forward)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |