327 |
* Handle the tag with no content, like <br>. The method is |
* Handle the tag with no content, like <br>. The method is |
328 |
* called for the elements that, in accordance with the current DTD, |
* called for the elements that, in accordance with the current DTD, |
329 |
* has an empty content. |
* has an empty content. |
330 |
* @param The tag being handled. |
* @param tag The tag being handled. |
331 |
* @throws javax.swing.text.ChangedCharSetException |
* @throws javax.swing.text.ChangedCharSetException |
332 |
*/ |
*/ |
333 |
protected void handleEmptyTag(TagElement tag) |
protected void handleEmptyTag(TagElement tag) |
339 |
* The method is called when the HTML closing tag ((like </table>) |
* The method is called when the HTML closing tag ((like </table>) |
340 |
* is found or if the parser concludes that the one should be present |
* is found or if the parser concludes that the one should be present |
341 |
* in the current position. |
* in the current position. |
342 |
* @param The tag being handled |
* @param tag The tag being handled |
343 |
*/ |
*/ |
344 |
protected void handleEndTag(TagElement tag) |
protected void handleEndTag(TagElement tag) |
345 |
{ |
{ |
354 |
* The method is called when the HTML opening tag ((like <table>) |
* The method is called when the HTML opening tag ((like <table>) |
355 |
* is found or if the parser concludes that the one should be present |
* is found or if the parser concludes that the one should be present |
356 |
* in the current position. |
* in the current position. |
357 |
* @param The tag being handled |
* @param tag The tag being handled |
358 |
*/ |
*/ |
359 |
protected void handleStartTag(TagElement tag) |
protected void handleStartTag(TagElement tag) |
360 |
{ |
{ |
383 |
* both title starting and closing tags are already behind. |
* both title starting and closing tags are already behind. |
384 |
* The passed argument contains the concatenation of all |
* The passed argument contains the concatenation of all |
385 |
* title text sections. |
* title text sections. |
386 |
* @param The title text. |
* @param title The title text. |
387 |
*/ |
*/ |
388 |
protected void handleTitle(char[] title) |
protected void handleTitle(char[] title) |
389 |
{ |
{ |
402 |
|
|
403 |
/** |
/** |
404 |
* Constructs the tag from the given element. |
* Constructs the tag from the given element. |
405 |
* @param the tag base {@link javax.swing.text.html.parser.Element} |
* @param element the tag base {@link javax.swing.text.html.parser.Element} |
406 |
* @param isSupposed true if the tag is not actually present in the |
* @param isSupposed true if the tag is not actually present in the |
407 |
* html input, but the parser supposes that it should to occur in |
* html input, but the parser supposes that it should to occur in |
408 |
* the current location. |
* the current location. |
427 |
* is found or if the parser concludes that the one should be present |
* is found or if the parser concludes that the one should be present |
428 |
* in the current position. The method is called immediately before |
* in the current position. The method is called immediately before |
429 |
* calling the handleStartTag. |
* calling the handleStartTag. |
430 |
* @param The tag |
* @param tag The tag |
431 |
*/ |
*/ |
432 |
protected void startTag(TagElement tag) |
protected void startTag(TagElement tag) |
433 |
throws ChangedCharSetException |
throws ChangedCharSetException |