net.sf.doolin.gui.docking
Class DockingPathConstraints

java.lang.Object
  extended by net.sf.doolin.gui.docking.DockingPathConstraints

public class DockingPathConstraints
extends Object

Parser for a docking path.

The format of a docking path is a semi-colon-separated list of paths, each of them having the following format:

 <path> := <position>{'?'<query>}
 <query> := param=value&param=value&...
 

Position can be TOP, BOTTOM, LEFT or RIGHT.

Parameters can be:

Author:
Damien Coraboeuf

Constructor Summary
DockingPathConstraints(String path)
          Instantiates a new docking path constraints.
 
Method Summary
 String getPath()
          Gets the path.
 int getPosition()
          Gets the position.
 int getSize()
          Gets the size.
 DockType getType()
          Gets the type.
protected  void parse()
          Parses the path.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DockingPathConstraints

public DockingPathConstraints(String path)
Instantiates a new docking path constraints.

Parameters:
path - the path
Method Detail

parse

protected void parse()
Parses the path.


toString

public String toString()

Overrides:
toString in class Object

getPath

public String getPath()
Gets the path.

Returns:
the path

getSize

public int getSize()
Gets the size.

Returns:
the size

getType

public DockType getType()
Gets the type.

Returns:
the type

getPosition

public int getPosition()
Gets the position.

Returns:
the position


Copyright © 2011. All Rights Reserved.