SWT LPEX
v3.0.5

com.ibm.lpex.core
Class LpexDocumentLocation

java.lang.Object
  extended bycom.ibm.lpex.core.LpexDocumentLocation

public class LpexDocumentLocation
extends Object

This class is used to represent a location in a document (or in the document section that is currently loaded in the editor).

See Also:
LpexView

Field Summary
 int element
          The element number.
 int position
          The position within the element.
 
Constructor Summary
LpexDocumentLocation(int element, int position)
          This constructor creates a document location object for the given position in the specified element.
LpexDocumentLocation(LpexDocumentLocation documentLocation)
          This constructor creates a document location object representing the same location as the specified documentLocation.
 
Method Summary
 String toString()
          Return a String representation of this LpexDocumentLocation suitable for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

element

public int element
The element number. The number of the first document element is 1.


position

public int position
The position within the element. The position of the first character within an element is 1.

Constructor Detail

LpexDocumentLocation

public LpexDocumentLocation(int element,
                            int position)
This constructor creates a document location object for the given position in the specified element.


LpexDocumentLocation

public LpexDocumentLocation(LpexDocumentLocation documentLocation)
This constructor creates a document location object representing the same location as the specified documentLocation.

Method Detail

toString

public String toString()
Return a String representation of this LpexDocumentLocation suitable for debugging purposes.


SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.