181 |
|
|
182 |
public void setLogicalStyle(int position, Style style) |
public void setLogicalStyle(int position, Style style) |
183 |
{ |
{ |
184 |
// FIXME: Implement me. |
Element el = getParagraphElement(position); |
185 |
throw new Error("not implemented"); |
if (el instanceof AbstractElement) |
186 |
|
{ |
187 |
|
AbstractElement ael = (AbstractElement) el; |
188 |
|
ael.setResolveParent(style); |
189 |
|
} |
190 |
|
else |
191 |
|
throw new AssertionError("paragraph elements are expected to be" |
192 |
|
+ "instances of javax.swing.text.AbstractDocument.AbstractElement"); |
193 |
} |
} |
194 |
|
|
195 |
public void setParagraphAttributes(int offset, int length, |
public void setParagraphAttributes(int offset, int length, |