javax.swing.text.html

Class HTML.UnknownTag

Enclosing Class:
HTML
Implemented Interfaces:
Serializable

public static class HTML.UnknownTag
extends HTML.Tag
implements Serializable

See Also:
Serialized Form

Field Summary

Fields inherited from class javax.swing.text.html.HTML.Tag

A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, COMMENT, CONTENT, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, IMPLIED, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU, META, NOFRAMES, OBJECT, OL, OPTION, P, PARAM, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TITLE, TR, TT, U, UL, VAR

Constructor Summary

UnknownTag(String id)
Creates a new UnknownTag with the specified id.

Method Summary

boolean
equals(Object obj)
Compares this object to the specifed object.
int
hashCode()
Returns the hash code which corresponds to the string for this tag.

Methods inherited from class javax.swing.text.html.HTML.Tag

breaksFlow, isBlock, isPreformatted, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

UnknownTag

public UnknownTag(String id)
Creates a new UnknownTag with the specified id.
Parameters:
id - the id of the new tag
Usages and Demos :

View More Examples of UnknownTag(String id)
   1: public class DebugHTMLEditorKit extends HTMLEditorKit {
   2:   public static HTML.Tag ORA = new HTML.UnknownTag("ora");
   3:   public static AttributeSet currentAnchor;
   4: 
   5:   public void install(JEditorPane paneEditor) {

View Full Code Here

Method Details

equals

public boolean equals(Object obj)
Compares this object to the specifed object. The result is true if and only if the argument is not null and is an UnknownTag object with the same name.
Overrides:
equals in interface Object
Parameters:
obj - the object to compare this tag with
Returns:
true if the objects are equal; false otherwise

hashCode

public int hashCode()
Returns the hash code which corresponds to the string for this tag.
Overrides:
hashCode in interface Object