Java Swing HTML nameOf(Element element)

Here you can find the source of nameOf(Element element)

Description

name Of

License

BSD License

Declaration

public static HTML.Tag nameOf(Element element) 

Method Source Code

//package com.java2s;
/**//from w ww.  j  av  a 2 s .  c  om
 * Kuebiko - SwingHtmlUtil.java
 * Copyright 2011 Dave Huffman (dave dot huffman at me dot com).
 * Open source under the BSD 3-Clause License.
 */

import javax.swing.text.AttributeSet;
import javax.swing.text.Element;

import javax.swing.text.html.HTML;

public class Main {
    public static HTML.Tag nameOf(Element element) {
        return (HTML.Tag) element.getAttributes().getAttribute(AttributeSet.NameAttribute);
    }
}

Related

  1. hasClass(AttributeSet attr, String className)
  2. htmlToPlain(String html)
  3. isUnderline(Element element)
  4. loadStyleSheet(URL url)
  5. makeStyleSheet(String name)
  6. plainToHtml(String plain)
  7. rtfToBody(String rtf)
  8. rtfToHtml(Reader rtf)
  9. rtfToHtml(String rtf)