|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.DocumentFragment
public abstract class DocumentFragment
DocumentFragment.
| Nested Class Summary | |
|---|---|
static class |
DocumentFragment.FragmentComp
|
static class |
DocumentFragment.NotFragmentComp
|
| Constructor Summary | |
|---|---|
DocumentFragment(DocumentFragment df)
Copy constructor. |
|
DocumentFragment(FragmentPosition pos)
|
|
| Method Summary | |
|---|---|
FragmentPosition |
adjustWidth()
Updates the width of this DocumentFragment by computing its length. |
int |
compareTo(DocumentFragment o)
|
FragmentPosition |
getCurrentPosition()
Gets the current fragment position. |
FragmentPosition |
getPosition()
Gets the fragment position. |
abstract int |
length()
Gets the length of this fragment. |
void |
setPosition(FragmentPosition pos)
Sets the fragment position. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentFragment(FragmentPosition pos)
public DocumentFragment(DocumentFragment df)
| Method Detail |
|---|
public FragmentPosition getPosition()
It is the position set when the fragment was created, or when it was
adjusted with adjustWidth the last time.
If you need the Position computed for the current fragment size, use
getCurrentPosition.
In the case of a Tag, the position is always the position of the starting tag, and not the whole block "start + data + close".
getCurrentPosition()public FragmentPosition getCurrentPosition()
Calling this method does not modify its original Position, i.e. this
method does not call adjustWidth.
In the case of a Tag, the position is always the position of the starting tag, and not the whole block "start + data + close".
public void setPosition(FragmentPosition pos)
pos - the new fragment position.public FragmentPosition adjustWidth()
Most fragment manipulations will change the length of this DocumentFragment, but to save time its FragmentPosition is not updated each time.
This method is provided to adjust the FragmentPosition of this fragment whenever needed.
public int compareTo(DocumentFragment o)
compareTo in interface Comparable<DocumentFragment>public abstract int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||