bibliothek.gui.dock.facile.mode
Class Location

java.lang.Object
  extended by bibliothek.gui.dock.facile.mode.Location

public class Location
extends Object

Describes the location of a Dockable on some station.

Author:
Benjamin Sigg

Constructor Summary
Location(Path mode, String root, DockableProperty location)
          Creates a new location.
 
Method Summary
 DockableProperty getLocation()
          Gets the location on the parent station.
 Path getMode()
          Gets the mode which is responsible for this location.
 String getRoot()
          Gets the unique identifier of the parent station.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location(Path mode,
                String root,
                DockableProperty location)
Creates a new location.

Parameters:
mode - the mode which is responsible for handling this location
root - the identifier of the parent station, must not be null
location - the location on the station, may be null
Method Detail

getMode

public Path getMode()
Gets the mode which is responsible for this location.

Returns:
the mode

getRoot

public String getRoot()
Gets the unique identifier of the parent station.

Returns:
the identifier, not null

getLocation

public DockableProperty getLocation()
Gets the location on the parent station.

Returns:
the location, may be null

toString

public String toString()
Overrides:
toString in class Object