136 |
* @param doc the <code>Content</code> model to be used in this |
* @param doc the <code>Content</code> model to be used in this |
137 |
* <code>Document<code> |
* <code>Document<code> |
138 |
* |
* |
139 |
* @see {@link GapContent} |
* @see GapContent |
140 |
* @see {@link StringContent} |
* @see StringContent |
141 |
*/ |
*/ |
142 |
protected AbstractDocument(Content doc) |
protected AbstractDocument(Content doc) |
143 |
{ |
{ |
152 |
* <code>Document<code> |
* <code>Document<code> |
153 |
* @param ctx the <code>AttributeContext</code> to use |
* @param ctx the <code>AttributeContext</code> to use |
154 |
* |
* |
155 |
* @see {@link GapContent} |
* @see GapContent |
156 |
* @see {@link StringContent} |
* @see StringContent |
157 |
*/ |
*/ |
158 |
protected AbstractDocument(Content doc, AttributeContext ctx) |
protected AbstractDocument(Content doc, AttributeContext ctx) |
159 |
{ |
{ |
193 |
* |
* |
194 |
* @return the new branch <code>Element</code> |
* @return the new branch <code>Element</code> |
195 |
* |
* |
196 |
* @see {@link BranchElement} |
* @see BranchElement |
197 |
*/ |
*/ |
198 |
protected Element createBranchElement(Element parent, |
protected Element createBranchElement(Element parent, |
199 |
AttributeSet attributes) |
AttributeSet attributes) |
213 |
* |
* |
214 |
* @return the new branch <code>Element</code> |
* @return the new branch <code>Element</code> |
215 |
* |
* |
216 |
* @see {@link LeafElement} |
* @see LeafElement |
217 |
*/ |
*/ |
218 |
protected Element createLeafElement(Element parent, AttributeSet attributes, |
protected Element createLeafElement(Element parent, AttributeSet attributes, |
219 |
int start, int end) |
int start, int end) |
329 |
* |
* |
330 |
* @return the {@link Content} model for this <code>Document</code> |
* @return the {@link Content} model for this <code>Document</code> |
331 |
* |
* |
332 |
* @see {@link GapContent} |
* @see GapContent |
333 |
* @see {@link StringContent} |
* @see StringContent |
334 |
*/ |
*/ |
335 |
protected Content getContent() |
protected Content getContent() |
336 |
{ |
{ |
401 |
/** |
/** |
402 |
* Returns all registered listeners of a given listener type. |
* Returns all registered listeners of a given listener type. |
403 |
* |
* |
404 |
* @return the type of the listeners to be queried |
* @param listenerType the type of the listeners to be queried |
405 |
* |
* |
406 |
* @return all registered listeners of the specified type |
* @return all registered listeners of the specified type |
407 |
*/ |
*/ |
800 |
* provide intelligent management of <code>AttributeSet</code>s, eliminating |
* provide intelligent management of <code>AttributeSet</code>s, eliminating |
801 |
* costly duplication. |
* costly duplication. |
802 |
* |
* |
803 |
* @see {@link StyleContext} |
* @see StyleContext |
804 |
*/ |
*/ |
805 |
public interface AttributeContext |
public interface AttributeContext |
806 |
{ |
{ |
1134 |
/** |
/** |
1135 |
* Removes a set of attribute from this element. |
* Removes a set of attribute from this element. |
1136 |
* |
* |
1137 |
* @param the names of the attributes to be removed |
* @param names the names of the attributes to be removed |
1138 |
*/ |
*/ |
1139 |
public void removeAttributes(Enumeration names) |
public void removeAttributes(Enumeration names) |
1140 |
{ |
{ |
1234 |
* |
* |
1235 |
* @return the resolve parent of this element |
* @return the resolve parent of this element |
1236 |
* |
* |
1237 |
* @see {@link #setResolveParent(AttributeSet)} |
* @see #setResolveParent(AttributeSet) |
1238 |
*/ |
*/ |
1239 |
public AttributeSet getResolveParent() |
public AttributeSet getResolveParent() |
1240 |
{ |
{ |
1563 |
* @return the <code>Element</code> at the specified <code>Document</code> |
* @return the <code>Element</code> at the specified <code>Document</code> |
1564 |
* offset |
* offset |
1565 |
* |
* |
1566 |
* @see {@link #getElementIndex(int)} |
* @see #getElementIndex(int) |
1567 |
*/ |
*/ |
1568 |
public Element positionToElement(int position) |
public Element positionToElement(int position) |
1569 |
{ |
{ |