com.sun.rave.designtime.markup
Class MarkupPosition


java.lang.Object

  extended bycom.sun.rave.designtime.Position

      extended bycom.sun.rave.designtime.markup.MarkupPosition


public class MarkupPosition
extends Position

The MarkupPosition extends the Position class to include specifics about DOM coordinates. This class is used when creating children, moving them, etc.

Version:
1.0
Author:
Carl Quinn

Field Summary
protected  org.w3c.dom.Node beforeSibling
          storage for the 'beforeSibling' property
protected  org.w3c.dom.Node underParent
          storage for the 'underParent' property
 
Fields inherited from class com.sun.rave.designtime.Position
index
 
Constructor Summary
MarkupPosition()
          Constructs a default MarkupPosition with no settings
MarkupPosition(int index)
          Constructs a MarkupPosition with the specified index
MarkupPosition(int index, org.w3c.dom.Node beforeSibling)
          Constructs a MarkupPosition with the specified index and beforeSibling.
MarkupPosition(org.w3c.dom.Node beforeSibling)
          Constructs a MarkupPosition with the specified beforeSibling.
MarkupPosition(org.w3c.dom.Node underParent, org.w3c.dom.Node beforeSibling)
          Constructs a MarkupPosition with the specified underParent and beforeSibling.
 
Method Summary
 org.w3c.dom.Node getBeforeSibling()
           
 org.w3c.dom.Node getUnderParent()
           
 void setBeforeSibling(org.w3c.dom.Node beforeSibling)
           
 void setUnderParent(org.w3c.dom.Node underParent)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.rave.designtime.Position
getIndex, setIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beforeSibling


protected org.w3c.dom.Node beforeSibling
storage for the 'beforeSibling' property


underParent


protected org.w3c.dom.Node underParent
storage for the 'underParent' property

Constructor Detail

MarkupPosition


public MarkupPosition()
Constructs a default MarkupPosition with no settings


MarkupPosition


public MarkupPosition(int index)
Constructs a MarkupPosition with the specified index

Parameters:
index - the desired index

MarkupPosition


public MarkupPosition(int index,
                      org.w3c.dom.Node beforeSibling)
Constructs a MarkupPosition with the specified index and beforeSibling. The 'beforeSibling' denotes the immediate next sibling of the desired position.

Parameters:
index - The desired index
beforeSibling - The desired beforeSibling - denotes the immediate next sibling of the desired position

MarkupPosition


public MarkupPosition(org.w3c.dom.Node beforeSibling)
Constructs a MarkupPosition with the specified beforeSibling. The 'beforeSibling' denotes the immediate next sibling of the desired position.

Parameters:
beforeSibling - The desired beforeSibling - denotes the immediate next sibling of the desired position

MarkupPosition


public MarkupPosition(org.w3c.dom.Node underParent,
                      org.w3c.dom.Node beforeSibling)
Constructs a MarkupPosition with the specified underParent and beforeSibling. The 'underParent' denotes the desired parent for the position. The 'beforeSibling' denotes the immediate next sibling of the desired position.

Parameters:
underParent - The desired underParent - denotes the desired parent for the position
beforeSibling - The desired beforeSibling - denotes the immediate next sibling of the desired position
Method Detail

getBeforeSibling


public org.w3c.dom.Node getBeforeSibling()
Returns:
Returns the beforeSibling. The 'beforeSibling' denotes the immediate next sibling of the desired position.

getUnderParent


public org.w3c.dom.Node getUnderParent()
Returns:
Returns the underParent. The 'underParent' denotes the desired parent for the position.

setBeforeSibling


public void setBeforeSibling(org.w3c.dom.Node beforeSibling)
Parameters:
beforeSibling - The beforeSibling to set. The 'beforeSibling' denotes the immediate next sibling of the desired position.

setUnderParent


public void setUnderParent(org.w3c.dom.Node underParent)
Parameters:
underParent - The underParent to set. The 'underParent' denotes the desired parent for the position.

toString


public java.lang.String toString()