javax.swing.text.html

Class HTML.Tag

Enclosing Class:
HTML
Known Direct Subclasses:
HTML.UnknownTag

public static class HTML.Tag
extends Object

Typesafe enumeration for an HTML tag. Although the set of HTML tags is a closed set, we have left the set open so that people can add their own tag types to their custom parser and still communicate to the reader.

Field Summary

static HTML.Tag
A
static HTML.Tag
ADDRESS
static HTML.Tag
APPLET
static HTML.Tag
AREA
static HTML.Tag
B
static HTML.Tag
BASE
static HTML.Tag
BASEFONT
static HTML.Tag
BIG
static HTML.Tag
BLOCKQUOTE
static HTML.Tag
BODY
static HTML.Tag
BR
static HTML.Tag
CAPTION
static HTML.Tag
CENTER
static HTML.Tag
CITE
static HTML.Tag
CODE
static HTML.Tag
COMMENT
All comments are labeled with this tag.
static HTML.Tag
CONTENT
All text content is labeled with this tag.
static HTML.Tag
DD
static HTML.Tag
DFN
static HTML.Tag
DIR
static HTML.Tag
DIV
static HTML.Tag
DL
static HTML.Tag
DT
static HTML.Tag
EM
static HTML.Tag
FONT
static HTML.Tag
FORM
static HTML.Tag
FRAME
static HTML.Tag
FRAMESET
static HTML.Tag
H1
static HTML.Tag
H2
static HTML.Tag
H3
static HTML.Tag
H4
static HTML.Tag
H5
static HTML.Tag
H6
static HTML.Tag
HEAD
static HTML.Tag
HR
static HTML.Tag
HTML
static HTML.Tag
I
static HTML.Tag
IMG
static HTML.Tag
IMPLIED
All text content must be in a paragraph element.
static HTML.Tag
INPUT
static HTML.Tag
ISINDEX
static HTML.Tag
KBD
static HTML.Tag
LI
static HTML.Tag
LINK
static HTML.Tag
MAP
static HTML.Tag
MENU
static HTML.Tag
META
static HTML.Tag
NOFRAMES
static HTML.Tag
OBJECT
static HTML.Tag
OL
static HTML.Tag
OPTION
static HTML.Tag
P
static HTML.Tag
PARAM
static HTML.Tag
PRE
static HTML.Tag
S
static HTML.Tag
SAMP
static HTML.Tag
SCRIPT
static HTML.Tag
SELECT
static HTML.Tag
SMALL
static HTML.Tag
SPAN
static HTML.Tag
STRIKE
static HTML.Tag
STRONG
static HTML.Tag
STYLE
static HTML.Tag
SUB
static HTML.Tag
SUP
static HTML.Tag
TABLE
static HTML.Tag
TD
static HTML.Tag
TEXTAREA
static HTML.Tag
TH
static HTML.Tag
TITLE
static HTML.Tag
TR
static HTML.Tag
TT
static HTML.Tag
U
static HTML.Tag
UL
static HTML.Tag
VAR

Constructor Summary

Tag()
Tag(String id)
Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.
Tag(String id, boolean causesBreak, boolean isBlock)
Creates a new Tag with the specified id; causesBreak and isBlock are defined by the user.

Method Summary

boolean
breaksFlow()
Returns true if this tag causes a line break to the flow of data, otherwise returns false.
boolean
isBlock()
Returns true if this tag is a block tag, which is a tag used to add structure to a document.
boolean
isPreformatted()
Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.
String
toString()
Returns the string representation of the tag.

Methods inherited from class java.lang.Object

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

Field Details

A

public static final HTML.Tag A
Usages and Demos :

View More Examples of A
   1:     for (HTMLDocument.Iterator iterator = 
   2:            htmlDoc.getIterator(HTML.Tag.A);
   3:          iterator.isValid();
   4:          iterator.next()) {

View Full Code Here
   1: 
   2:       final String FRAMESET = HTML.Tag.FRAMESET.toString();
   3:         ...
   4:       final String FRAME    = HTML.Tag.FRAME.toString();
   5: 
   6:         ...
   7: 
   8:           AttributeSet s = (AttributeSet)set.getAttribute(HTML.Tag.A);
   9:           if(s != null) {

View Full Code Here
   1:             o = e.nextElement();
   2:             if (o.equals(HTML.Tag.A)) {
   3:         ...
   4:                 o = attr.getAttribute(HTML.Tag.A);
   5:                 if (o instanceof SimpleAttributeSet) {
   6:         ...
   7:                 newAttr.addAttributes(attr.copyAttributes());
   8:                 newAttr.addAttribute(HTML.Tag.A, newLinkAttr);
   9:                 

View Full Code Here
   1:         AttributeSet anchorAttr = (AttributeSet)
   2:         this.fElement.getAttributes().getAttribute(HTML.Tag.A);
   3:         if (anchorAttr != null) {
   4:             return anchorAttr.isDefined(HTML.Attribute.HREF);
   5:         }

View Full Code Here

ADDRESS

public static final HTML.Tag ADDRESS

APPLET

public static final HTML.Tag APPLET

AREA

public static final HTML.Tag AREA

B

public static final HTML.Tag B

BASE

public static final HTML.Tag BASE

BASEFONT

public static final HTML.Tag BASEFONT

BIG

public static final HTML.Tag BIG

BLOCKQUOTE

public static final HTML.Tag BLOCKQUOTE
Usages and Demos :

View More Examples of BLOCKQUOTE
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here

BODY

public static final HTML.Tag BODY
Usages and Demos :

View More Examples of BODY
   1:     a = new HTMLEditorKit.InsertHTMLTextAction("InsertCopyright", COPY_HTML,
   2:                            HTML.Tag.BODY, HTML.Tag.P);
   3:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/copyright.gif"));
   4:         ...
   5: 
   6:     a = new TagAction(HTML.Tag.A, "URL", HTML.Attribute.HREF);
   7:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/link.gif"));
   8:         ...
   9: 
  10:     a = new TagAction(HTML.Tag.A, "Name", HTML.Attribute.NAME);
  11:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/anchor.gif"));
  12:         ...
  13:   public class TagAction extends StyledEditorKit.StyledTextAction {
  14:     private HTML.Tag tag;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:                 HTML.Tag.BODY, HTML.Tag.H4),

View Full Code Here

BR

public static final HTML.Tag BR
Usages and Demos :

View More Examples of BR
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here

CAPTION

public static final HTML.Tag CAPTION

CENTER

public static final HTML.Tag CENTER

CITE

public static final HTML.Tag CITE

CODE

public static final HTML.Tag CODE

COMMENT

public static final HTML.Tag COMMENT
All comments are labeled with this tag.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.


CONTENT

public static final HTML.Tag CONTENT
All text content is labeled with this tag.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.

Usages and Demos :

View More Examples of CONTENT
   1:       Object name = attributes.getAttribute(StyleConstants.NameAttribute);
   2:       if ((name instanceof HTML.Tag) && ((name == HTML.Tag.H1) ||
   3:         ...
   4:           (name == HTML.Tag.H2) || (name == HTML.Tag.H3))) {
   5:         StringBuffer text = new StringBuffer();
   6:         ...
   7:           if (childAttributes.getAttribute(StyleConstants.NameAttribute) ==
   8:               HTML.Tag.CONTENT) {
   9:             int startOffset = child.getStartOffset();

View Full Code Here

DD

public static final HTML.Tag DD

DFN

public static final HTML.Tag DFN

DIR

public static final HTML.Tag DIR

DIV

public static final HTML.Tag DIV
Usages and Demos :

View More Examples of DIV
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here

DL

public static final HTML.Tag DL

DT

public static final HTML.Tag DT

EM

public static final HTML.Tag EM

FONT

public static final HTML.Tag FONT

FORM

public static final HTML.Tag FORM

FRAME

public static final HTML.Tag FRAME
Usages and Demos :

View More Examples of FRAME
   1:         
   2:         public void handleSimpleTag(HTML.Tag htmlTag, MutableAttributeSet attrs, int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag htmlTag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:         public void handleEndTag(HTML.Tag htmlTag, int position) 
  11:         {
  12:         ...
  13:                     tag.breaksFlow() || 
  14:                     tag == HTML.Tag.FRAME ||

View Full Code Here
   1: 
   2:         public void handleSimpleTag(HTML.Tag tag,MutableAttributeSet attrs,int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag tag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:             if (tag == HTML.Tag.HEAD)
  11:             {
  12:         ...
  13: 
  14:             if (tag == HTML.Tag.FRAME)  

View Full Code Here
   1: 
   2:     HTML.Tag h = tag.getHTMLTag();
   3:         ...
   4:     if (h == HTML.Tag.SCRIPT || h == HTML.Tag.STYLE)
   5:       {
   6:         ...
   7:         handleEmptyTag(tag);
   8:         HTML.Tag h = tag.getHTMLTag();
   9:         if (isBlock(h))
  10:         ...
  11:   {
  12:     return tag.isBlock() || tag == HTML.Tag.STYLE || tag == HTML.Tag.FRAME;

View Full Code Here

FRAMESET

public static final HTML.Tag FRAMESET
Usages and Demos :

View More Examples of FRAMESET
   1:         
   2:         public void handleSimpleTag(HTML.Tag htmlTag, MutableAttributeSet attrs, int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag htmlTag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:         public void handleEndTag(HTML.Tag htmlTag, int position) 
  11:         {
  12:         ...
  13:                     tag == HTML.Tag.FRAME ||
  14:                     tag == HTML.Tag.FRAMESET ||

View Full Code Here
   1: 
   2:         public void handleSimpleTag(HTML.Tag tag,MutableAttributeSet attrs,int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag tag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:             if (tag == HTML.Tag.HEAD)
  11:             {
  12:         ...
  13:                 tag == HTML.Tag.FRAME ||
  14:                 tag == HTML.Tag.FRAMESET ||

View Full Code Here

H1

public static final HTML.Tag H1
Usages and Demos :

View More Examples of H1
   1:       Object name = attributes.getAttribute(StyleConstants.NameAttribute);
   2:       if ((name instanceof HTML.Tag) && ((name == HTML.Tag.H1) ||
   3:         ...
   4:           (name == HTML.Tag.H2) || (name == HTML.Tag.H3))) {
   5:         StringBuffer text = new StringBuffer();
   6:         ...
   7:           if (childAttributes.getAttribute(StyleConstants.NameAttribute) ==
   8:               HTML.Tag.CONTENT) {
   9:             int startOffset = child.getStartOffset();

View Full Code Here
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:                 HTML.Tag.BODY, HTML.Tag.H4),

View Full Code Here

H2

public static final HTML.Tag H2
Usages and Demos :

View More Examples of H2
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:                 HTML.Tag.BODY, HTML.Tag.H4),

View Full Code Here

H3

public static final HTML.Tag H3
Usages and Demos :

View More Examples of H3
   1: 
   2:   public void handleStartTag(HTML.Tag tag, 
   3:    MutableAttributeSet attributes, int position) {
   4:         ...
   5:     int newLevel = 0;
   6:     if (tag == HTML.Tag.H1) newLevel = 1;
   7:         ...
   8:     else if (tag == HTML.Tag.H2) newLevel = 2;
   9:         ...
  10:     else if (tag == HTML.Tag.H3) newLevel = 3;

View Full Code Here
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:                 HTML.Tag.BODY, HTML.Tag.H4),

View Full Code Here

H4

public static final HTML.Tag H4
Usages and Demos :

View More Examples of H4
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:                 HTML.Tag.BODY, HTML.Tag.H4),

View Full Code Here

H5

public static final HTML.Tag H5
Usages and Demos :

View More Examples of H5
   1: 
   2:   public void handleStartTag(HTML.Tag tag, 
   3:    MutableAttributeSet attributes, int position) {
   4:         ...
   5:     int newLevel = 0;
   6:     if (tag == HTML.Tag.H1) newLevel = 1;
   7:         ...
   8:     else if (tag == HTML.Tag.H2) newLevel = 2;
   9:     else if (tag == HTML.Tag.H3) newLevel = 3;
  10:         ...
  11:     else if (tag == HTML.Tag.H4) newLevel = 4;
  12:     else if (tag == HTML.Tag.H5) newLevel = 5;

View Full Code Here
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:         new HTMLEditorKit.InsertHTMLTextAction("Heading 5", "<h2>h5</h2>",
  12:                 HTML.Tag.BODY, HTML.Tag.H5),

View Full Code Here

H6

public static final HTML.Tag H6
Usages and Demos :

View More Examples of H6
   1: 
   2:   public void handleStartTag(HTML.Tag tag, 
   3:    MutableAttributeSet attributes, int position) {
   4:         ...
   5:     int newLevel = 0;
   6:     if (tag == HTML.Tag.H1) newLevel = 1;
   7:         ...
   8:     else if (tag == HTML.Tag.H2) newLevel = 2;
   9:     else if (tag == HTML.Tag.H3) newLevel = 3;
  10:         ...
  11:     else if (tag == HTML.Tag.H5) newLevel = 5;
  12:     else if (tag == HTML.Tag.H6) newLevel = 6;

View Full Code Here

HEAD

public static final HTML.Tag HEAD

HR

public static final HTML.Tag HR
Usages and Demos :

View More Examples of HR
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here

HTML

public static final HTML.Tag HTML
Usages and Demos :

View More Examples of HTML
   1: import javax.swing.text.SimpleAttributeSet;
   2: import javax.swing.text.html.HTML;
   3: 
   4:         ...
   5:         parent = newParent;
   6:         HTML.Tag[] tagList = HTML.getAllTags();
   7:         for(int i = 0; i < tagList.length; i++)
   8:         ...
   9:         sa.addAttribute("id", idString);
  10:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
  11:         parent.refreshOnUpdate();
  12:         ...
  13:         sa = removeAttributeByKey(sa, "id");
  14:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);

View Full Code Here
   1: import javax.swing.text.SimpleAttributeSet;
   2: import javax.swing.text.html.HTML;
   3: 
   4:         ...
   5:         parent = newParent;
   6:         HTML.Tag[] tagList = HTML.getAllTags();
   7:         for(int i = 0; i < tagList.length; i++)
   8:         ...
   9:         sa.addAttribute("id", idString);
  10:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
  11:         parent.refreshOnUpdate();
  12:         ...
  13:         sa = removeAttributeByKey(sa, "id");
  14:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);

View Full Code Here

I

public static final HTML.Tag I

IMG

public static final HTML.Tag IMG
Usages and Demos :

View More Examples of IMG
   1:     a = new HTMLEditorKit.InsertHTMLTextAction("InsertCopyright", COPY_HTML,
   2:                            HTML.Tag.BODY, HTML.Tag.P);
   3:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/copyright.gif"));
   4:         ...
   5: 
   6:     a = new TagAction(HTML.Tag.A, "URL", HTML.Attribute.HREF);
   7:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/link.gif"));
   8:         ...
   9: 
  10:     a = new TagAction(HTML.Tag.A, "Name", HTML.Attribute.NAME);
  11:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/anchor.gif"));
  12:         ...
  13:                "<img src=\"" + value + "\">", 0, 0,
  14:                HTML.Tag.IMG);

View Full Code Here
   1:   
   2:   public  Object HasTagUri(HTML.Tag t) {
   3:     LoadTagList();
   4:     return null;
   5:   }

View Full Code Here

IMPLIED

public static final HTML.Tag IMPLIED
All text content must be in a paragraph element. If a paragraph didn't exist when content was encountered, a paragraph is manufactured.

This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.


INPUT

public static final HTML.Tag INPUT

ISINDEX

public static final HTML.Tag ISINDEX

KBD

public static final HTML.Tag KBD

LI

public static final HTML.Tag LI
Usages and Demos :

View More Examples of LI
   1:     protected EkitCore parentEkit;
   2:     private HTML.Tag baseTag;
   3:     private String sListType;
   4:         ...
   5: 
   6:     public ListAutomationAction(EkitCore ekit, String sLabel, HTML.Tag listType)
   7:     {
   8:         ...
   9:         super(sLabel, "", listType, HTML.Tag.LI);
  10:         parentEkit = ekit;
  11:         ...
  12:                 {
  13:                     if(htmlUtilities.checkParentsTag(HTML.Tag.OL) || htmlUtilities.checkParentsTag(HTML.Tag.UL))

View Full Code Here
   1:     protected EkitCore parentEkit;
   2:     private HTML.Tag baseTag;
   3:     private String sListType;
   4:         ...
   5: 
   6:     public ListAutomationAction(EkitCore ekit, String sLabel, HTML.Tag listType)
   7:     {
   8:         ...
   9:         super(sLabel, "", listType, HTML.Tag.LI);
  10:         parentEkit = ekit;
  11:         ...
  12:                 {
  13:                     if(htmlUtilities.checkParentsTag(HTML.Tag.OL) || htmlUtilities.checkParentsTag(HTML.Tag.UL))

View Full Code Here
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here
   1:         parent = newParent;
   2:         HTML.Tag[] tagList = HTML.getAllTags();
   3:         for(int i = 0; i < tagList.length; i++)
   4:         ...
   5:         sa.addAttribute("id", idString);
   6:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
   7:         parent.refreshOnUpdate();
   8:         ...
   9:         sa = removeAttributeByKey(sa, "id");
  10:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
  11:     }
  12:         ...
  13:         int pos = parent.getCaretPosition();
  14:         HTML.Tag tag = getHTMLTag(element);

View Full Code Here
   1:         parent = newParent;
   2:         HTML.Tag[] tagList = HTML.getAllTags();
   3:         for(int i = 0; i < tagList.length; i++)
   4:         ...
   5:         sa.addAttribute("id", idString);
   6:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
   7:         parent.refreshOnUpdate();
   8:         ...
   9:         sa = removeAttributeByKey(sa, "id");
  10:         parent.getExtendedHtmlDoc().replaceAttributes(element, sa, HTML.Tag.LI);
  11:     }
  12:         ...
  13:         int pos = parent.getCaretPosition();
  14:         HTML.Tag tag = getHTMLTag(element);

View Full Code Here

LINK

public static final HTML.Tag LINK

MAP

public static final HTML.Tag MAP

MENU

public static final HTML.Tag MENU

META

public static final HTML.Tag META

NOFRAMES

public static final HTML.Tag NOFRAMES

OBJECT

public static final HTML.Tag OBJECT

OL

public static final HTML.Tag OL

OPTION

public static final HTML.Tag OPTION

P

public static final HTML.Tag P
Usages and Demos :

View More Examples of P
   1:     a = new HTMLEditorKit.InsertHTMLTextAction("InsertCopyright", COPY_HTML,
   2:                            HTML.Tag.BODY, HTML.Tag.P);
   3:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/copyright.gif"));
   4:         ...
   5: 
   6:     a = new TagAction(HTML.Tag.A, "URL", HTML.Attribute.HREF);
   7:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/link.gif"));
   8:         ...
   9: 
  10:     a = new TagAction(HTML.Tag.A, "Name", HTML.Attribute.NAME);
  11:     a.putValue(Action.SMALL_ICON, new ImageIcon("icons/anchor.gif"));
  12:         ...
  13:   public class TagAction extends StyledEditorKit.StyledTextAction {
  14:     private HTML.Tag tag;

View Full Code Here
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here
   1:         new HTMLEditorKit.InsertHTMLTextAction("Heading 1", "<h1>h1</h1>",
   2:                 HTML.Tag.BODY, HTML.Tag.H1),
   3:         new HTMLEditorKit.InsertHTMLTextAction("Heading 2", "<h2>h2</h2>",
   4:         ...
   5:                 HTML.Tag.BODY, HTML.Tag.H2),
   6:         new HTMLEditorKit.InsertHTMLTextAction("Heading 3", "<h2>h3</h2>",
   7:         ...
   8:                 HTML.Tag.BODY, HTML.Tag.H3),
   9:         new HTMLEditorKit.InsertHTMLTextAction("Heading 4", "<h2>h4</h2>",
  10:         ...
  11:         new HTMLEditorKit.InsertHTMLTextAction("Paragraph", "<p>p</p>",
  12:                 HTML.Tag.BODY, HTML.Tag.P)

View Full Code Here

PARAM

public static final HTML.Tag PARAM
Usages and Demos :

View More Examples of PARAM
   1:             AttributeSet a = elem.getAttributes();
   2:             AttributeSet anchor = (AttributeSet) a.getAttribute(HTML.Tag.A);
   3:             String href = (anchor != null) ? 
   4:         ...
   5:         Object o = elem.getAttributes().getAttribute(StyleConstants.NameAttribute);
   6:         if (o instanceof HTML.Tag) {
   7:         ...
   8:         HTML.Tag kind = (HTML.Tag) o;
   9:         if (kind == HTML.Tag.OBJECT) {
  10:         ...
  11:         super(offset);
  12:         registerTag(HTML.Tag.PARAM, new ObjectAction1());

View Full Code Here

PRE

public static final HTML.Tag PRE
Usages and Demos :

View More Examples of PRE
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   6:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   7:         };
   8:         private List mList = Arrays.asList(mDivTags);
   9:         private Tag mCurrentTag = null;

View Full Code Here

S

public static final HTML.Tag S

SAMP

public static final HTML.Tag SAMP

SCRIPT

public static final HTML.Tag SCRIPT
Usages and Demos :

View More Examples of SCRIPT
   1:         
   2:         public void handleSimpleTag(HTML.Tag htmlTag, MutableAttributeSet attrs, int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag htmlTag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:         public void handleEndTag(HTML.Tag htmlTag, int position) 
  11:         {
  12:         ...
  13:                     tag == HTML.Tag.FRAMESET ||
  14:                     tag == HTML.Tag.SCRIPT)

View Full Code Here
   1: 
   2:         public void handleSimpleTag(HTML.Tag tag,MutableAttributeSet attrs,int param) 
   3:         {
   4:         ...
   5: 
   6:         public void handleStartTag(HTML.Tag tag,  MutableAttributeSet attrs, int position) 
   7:         {
   8:         ...
   9: 
  10:             if (tag == HTML.Tag.HEAD)
  11:             {
  12:         ...
  13:                 tag == HTML.Tag.FRAMESET ||
  14:                 tag == HTML.Tag.SCRIPT)

View Full Code Here
   1: 
   2:         HTML.Tag tag;
   3:         String lang;
   4:         ...
   5: 
   6:         public LangElement (HTML.Tag tag, String lang) {
   7:         this.tag = tag;
   8:         ...
   9: 
  10:         public HTML.Tag getTag() {
  11:         return tag;
  12:         ...
  13:         tagMap.put(HTML.Tag.SAMP, ca);
  14:         tagMap.put(HTML.Tag.SCRIPT, ha);

View Full Code Here

SELECT

public static final HTML.Tag SELECT
Usages and Demos :

View More Examples of SELECT
   1:         public View create(Element element)
   2:             HTML.Tag kind = (HTML.Tag)(
   3:                         element.getAttributes().getAttribute(
   4:         ...
   5:                             javax.swing.text.StyleConstants.NameAttribute) );
   6:             if( (kind==HTML.Tag.INPUT)    || (kind==HTML.Tag.SELECT)
   7:         ...
   8:                                         || (kind==HTML.Tag.TEXTAREA) )
   9:             {

View Full Code Here

SMALL

public static final HTML.Tag SMALL

SPAN

public static final HTML.Tag SPAN
Usages and Demos :

View More Examples of SPAN
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here

STRIKE

public static final HTML.Tag STRIKE

STRONG

public static final HTML.Tag STRONG

STYLE

public static final HTML.Tag STYLE
Usages and Demos :

View More Examples of STYLE
   1: 
   2:     HTML.Tag h = tag.getHTMLTag();
   3:         ...
   4:     if (h == HTML.Tag.SCRIPT || h == HTML.Tag.STYLE)
   5:       {
   6:         ...
   7:         handleEmptyTag(tag);
   8:         HTML.Tag h = tag.getHTMLTag();
   9:         if (isBlock(h))
  10:         ...
  11:   {
  12:     HTML.Tag h = tag.getHTMLTag();

View Full Code Here

SUB

public static final HTML.Tag SUB

SUP

public static final HTML.Tag SUP

TABLE

public static final HTML.Tag TABLE
Usages and Demos :

View More Examples of TABLE
   1:         jMenuFont.addSeparator();
   2:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatBig"), HTML.Tag.BIG)));
   3:         ...
   4:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatSmall"), HTML.Tag.SMALL)));
   5:         JMenu jMenuFontSize = new JMenu(Translatrix.getTranslationString("FontSize"));
   6:         ...
   7:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"1");
   8:             jMenuFontSize.add(new JMenuItem(new CustomAction(this, Translatrix.getTranslationString("FontSize1"), HTML.Tag.FONT, customAttr)));
   9:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"2");
  10:         ...
  11:                             }
  12:                             else if(htmlUtilities.checkParentsTag(HTML.Tag.TABLE))

View Full Code Here
   1:         actionFontUnderline   = new StyledEditorKit.UnderlineAction();
   2:         actionFontStrike      = new FormatAction(this, "Strike-through", HTML.Tag.STRIKE);
   3:         ...
   4:         actionFontSuperscript = new FormatAction(this, "Superscript", HTML.Tag.SUP);
   5:         ...
   6:         actionFontSubscript   = new FormatAction(this, "Subscript", HTML.Tag.SUB);
   7:         actionListUnordered   = new ListAutomationAction(this, "Unordered List", HTML.Tag.UL);
   8:         ...
   9:                             }
  10:                             else if(htmlUtilities.checkParentsTag(HTML.Tag.TABLE))

View Full Code Here

TD

public static final HTML.Tag TD
Usages and Demos :

View More Examples of TD
   1: import javax.swing.text.html.HTMLEditorKit;
   2: import javax.swing.text.html.HTML.Tag;
   3: import javax.swing.text.html.HTMLEditorKit.Parser;
   4:         ...
   5:         {
   6:             Tag.TD, Tag.DIV, Tag.SPAN, Tag.BLOCKQUOTE, Tag.P, Tag.LI, Tag.BR, 
   7:             Tag.HR, Tag.PRE, Tag.H1, Tag.H2, Tag.H3, Tag.H4, Tag.H5, Tag.H6                        
   8:         };
   9:         private List mList = Arrays.asList(mDivTags);

View Full Code Here
   1:         jMenuFont.addSeparator();
   2:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatBig"), HTML.Tag.BIG)));
   3:         ...
   4:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatSmall"), HTML.Tag.SMALL)));
   5:         JMenu jMenuFontSize = new JMenu(Translatrix.getTranslationString("FontSize"));
   6:         ...
   7:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"1");
   8:             jMenuFontSize.add(new JMenuItem(new CustomAction(this, Translatrix.getTranslationString("FontSize1"), HTML.Tag.FONT, customAttr)));
   9:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"2");
  10:         ...
  11:                  jtpMain.setCaretPosition(whichCell.getStartOffset());
  12:                 new HTMLEditorKit.InsertHTMLTextAction("insertTableCell", sCell, HTML.Tag.TR, HTML.Tag.TD, HTML.Tag.TH, HTML.Tag.TD).actionPerformed(actionEvent);

View Full Code Here
   1:         actionFontUnderline   = new StyledEditorKit.UnderlineAction();
   2:         actionFontStrike      = new FormatAction(this, "Strike-through", HTML.Tag.STRIKE);
   3:         ...
   4:         actionFontSuperscript = new FormatAction(this, "Superscript", HTML.Tag.SUP);
   5:         ...
   6:         actionFontSubscript   = new FormatAction(this, "Subscript", HTML.Tag.SUB);
   7:         actionListUnordered   = new ListAutomationAction(this, "Unordered List", HTML.Tag.UL);
   8:         ...
   9:                  jtpMain.setCaretPosition(whichCell.getStartOffset());
  10:                 new HTMLEditorKit.InsertHTMLTextAction("insertTableCell", sCell, HTML.Tag.TR, HTML.Tag.TD, HTML.Tag.TH, HTML.Tag.TD).actionPerformed(actionEvent);

View Full Code Here

TEXTAREA

public static final HTML.Tag TEXTAREA
Usages and Demos :

View More Examples of TEXTAREA
   1:         public View create(Element element)
   2:             HTML.Tag kind = (HTML.Tag)(
   3:                         element.getAttributes().getAttribute(
   4:         ...
   5:                             javax.swing.text.StyleConstants.NameAttribute) );
   6:             if( (kind==HTML.Tag.INPUT)    || (kind==HTML.Tag.SELECT)
   7:         ...
   8:                                         || (kind==HTML.Tag.TEXTAREA) )
   9:             {

View Full Code Here

TH

public static final HTML.Tag TH
Usages and Demos :

View More Examples of TH
   1:         jMenuFont.addSeparator();
   2:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatBig"), HTML.Tag.BIG)));
   3:         ...
   4:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatSmall"), HTML.Tag.SMALL)));
   5:         JMenu jMenuFontSize = new JMenu(Translatrix.getTranslationString("FontSize"));
   6:         ...
   7:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"1");
   8:             jMenuFontSize.add(new JMenuItem(new CustomAction(this, Translatrix.getTranslationString("FontSize1"), HTML.Tag.FONT, customAttr)));
   9:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"2");
  10:         ...
  11:                  jtpMain.setCaretPosition(whichCell.getStartOffset());
  12:                 new HTMLEditorKit.InsertHTMLTextAction("insertTableCell", sCell, HTML.Tag.TR, HTML.Tag.TD, HTML.Tag.TH, HTML.Tag.TD).actionPerformed(actionEvent);

View Full Code Here
   1:         actionFontUnderline   = new StyledEditorKit.UnderlineAction();
   2:         actionFontStrike      = new FormatAction(this, "Strike-through", HTML.Tag.STRIKE);
   3:         ...
   4:         actionFontSuperscript = new FormatAction(this, "Superscript", HTML.Tag.SUP);
   5:         ...
   6:         actionFontSubscript   = new FormatAction(this, "Subscript", HTML.Tag.SUB);
   7:         actionListUnordered   = new ListAutomationAction(this, "Unordered List", HTML.Tag.UL);
   8:         ...
   9:                  jtpMain.setCaretPosition(whichCell.getStartOffset());
  10:                 new HTMLEditorKit.InsertHTMLTextAction("insertTableCell", sCell, HTML.Tag.TR, HTML.Tag.TD, HTML.Tag.TH, HTML.Tag.TD).actionPerformed(actionEvent);

View Full Code Here

TITLE

public static final HTML.Tag TITLE
Usages and Demos :

View More Examples of TITLE
   1: 
   2:         HTML.Tag tag;
   3:         String lang;
   4:         ...
   5: 
   6:         public LangElement (HTML.Tag tag, String lang) {
   7:         this.tag = tag;
   8:         ...
   9: 
  10:         public HTML.Tag getTag() {
  11:         return tag;
  12:         ...
  13:         tagMap.put(HTML.Tag.TH, ba);
  14:         tagMap.put(HTML.Tag.TITLE, new TitleAction());

View Full Code Here

TR

public static final HTML.Tag TR
Usages and Demos :

View More Examples of TR
   1:         jMenuFont.addSeparator();
   2:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatBig"), HTML.Tag.BIG)));
   3:         ...
   4:         jMenuFont.add(new JMenuItem(new FormatAction(this, Translatrix.getTranslationString("FormatSmall"), HTML.Tag.SMALL)));
   5:         JMenu jMenuFontSize = new JMenu(Translatrix.getTranslationString("FontSize"));
   6:         ...
   7:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"1");
   8:             jMenuFontSize.add(new JMenuItem(new CustomAction(this, Translatrix.getTranslationString("FontSize1"), HTML.Tag.FONT, customAttr)));
   9:             customAttr = new Hashtable(); customAttr.put(fontSizeKey,"2");
  10:         ...
  11:              ActionEvent actionEvent = new ActionEvent(jtpMain, 0, "insertTableRow");
  12:              new HTMLEditorKit.InsertHTMLTextAction("insertTableRow", sRow.toString(), HTML.Tag.TABLE, HTML.Tag.TR).actionPerformed(actionEvent);

View Full Code Here
   1:         actionFontUnderline   = new StyledEditorKit.UnderlineAction();
   2:         actionFontStrike      = new FormatAction(this, "Strike-through", HTML.Tag.STRIKE);
   3:         ...
   4:         actionFontSuperscript = new FormatAction(this, "Superscript", HTML.Tag.SUP);
   5:         ...
   6:         actionFontSubscript   = new FormatAction(this, "Subscript", HTML.Tag.SUB);
   7:         actionListUnordered   = new ListAutomationAction(this, "Unordered List", HTML.Tag.UL);
   8:         ...
   9:              ActionEvent actionEvent = new ActionEvent(jtpMain, 0, "insertTableRow");
  10:              new HTMLEditorKit.InsertHTMLTextAction("insertTableRow", sRow.toString(), HTML.Tag.TABLE, HTML.Tag.TR).actionPerformed(actionEvent);

View Full Code Here

TT

public static final HTML.Tag TT

U

public static final HTML.Tag U

UL

public static final HTML.Tag UL

VAR

public static final HTML.Tag VAR

Constructor Details

Tag

public Tag()
Since:
1.3

Tag

protected Tag(String id)
Creates a new Tag with the specified id, and with causesBreak and isBlock set to false.
Parameters:
id - the id of the new tag

Tag

protected Tag(String id,
              boolean causesBreak,
              boolean isBlock)
Creates a new Tag with the specified id; causesBreak and isBlock are defined by the user.
Parameters:
id - the id of the new tag
causesBreak - true if this tag causes a break to the flow of data
isBlock - true if the tag is used to add structure to a document

Method Details

breaksFlow

public boolean breaksFlow()
Returns true if this tag causes a line break to the flow of data, otherwise returns false.
Returns:
true if this tag causes a line break to the flow of data, otherwise returns false

isBlock

public boolean isBlock()
Returns true if this tag is a block tag, which is a tag used to add structure to a document.
Returns:
true if this tag is a block tag, otherwise returns false

isPreformatted

public boolean isPreformatted()
Returns true if this tag is pre-formatted, which is true if the tag is either PRE or TEXTAREA.
Returns:
true if this tag is pre-formatted, otherwise returns false

toString

public String toString()
Returns the string representation of the tag.
Overrides:
toString in interface Object
Returns:
the String representation of the tag