bibliothek.gui.dock.layout.location
Class DefaultAsideAnswer

java.lang.Object
  extended by bibliothek.gui.dock.layout.location.DefaultAsideAnswer
All Implemented Interfaces:
AsideAnswer

public class DefaultAsideAnswer
extends Object
implements AsideAnswer

The DefaultAsideAnswer is just a container for properties but does not modify them in any way.

Author:
Benjamin Sigg

Constructor Summary
DefaultAsideAnswer(boolean canceled, DockableProperty location, PlaceholderMap layout)
          Creates a new answer.
 
Method Summary
 PlaceholderMap getLayout()
          Gets the layout of a non-existent child station.
 DockableProperty getLocation()
          Gets the location generated by the child station.
 boolean isCanceled()
          Tells whether the request was canceled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAsideAnswer

public DefaultAsideAnswer(boolean canceled,
                          DockableProperty location,
                          PlaceholderMap layout)
Creates a new answer.

Parameters:
canceled - whether the request was canceled
location - the location of the new item
layout - the layout of the non-existing station
Method Detail

isCanceled

public boolean isCanceled()
Description copied from interface: AsideAnswer
Tells whether the request was canceled.

Specified by:
isCanceled in interface AsideAnswer
Returns:
whether the request was canceled

getLocation

public DockableProperty getLocation()
Description copied from interface: AsideAnswer
Gets the location generated by the child station. This location must not be set as successor. A value of null indicates the the child station did not produce a location.

Specified by:
getLocation in interface AsideAnswer
Returns:
the location generated by the child or null

getLayout

public PlaceholderMap getLayout()
Description copied from interface: AsideAnswer
Gets the layout of a non-existent child station. A value of null either indicates that the child station exists, or that it does not (no longer) have a layout worth saving.

Specified by:
getLayout in interface AsideAnswer
Returns:
the layour of the non-existent child, can be null