Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/hexidec/ekit/component/ExtendedHTML.java


1   /*
2    * @(#)HTML.java  1.38 01/12/03
3    *
4    * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
5    * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6    */
7   package com.hexidec.ekit.component;
8   
9   import java.io.*;
10  import java.util.Hashtable;
11  import javax.swing.text.AttributeSet;
12  import javax.swing.text.StyleConstants;
13  import javax.swing.text.StyleContext;
14  import javax.swing.text.html.HTML;
15  
16  /**
17   * Constants used in the <code>HTMLDocument</code>.  These
18   * are basically tag and attribute definitions.
19   *
20   */
21  public class ExtendedHTML extends HTML {
22  
23      /**
24       * New Tags for Extended XHTML
25       */
26      public static class ExtendedTag extends Tag{
27  
28    public ExtendedTag() {
29              super();
30          }
31  
32          /**
33           * Creates a new <code>Tag</code> with the specified <code>id</code>,
34           * and with <code>causesBreak</code> and <code>isBlock</code>
35           * set to <code>false</code>.
36           *
37           * @param id  the id of the new tag
38           */
39          public ExtendedTag(String id) {
40        super(id, false, false);
41    }
42  
43          /**
44           * Creates a new <code>Tag</code> with the specified <code>id</code>;
45           * <code>causesBreak</code> and <code>isBlock</code> are defined
46           * by the user.
47           *
48           * @param id the id of the new tag
49           * @param causesBreak  <code>true</code> if this tag
50           *    causes a break to the flow of data
51           * @param isBlock <code>true</code> if the tag is used
52           *    to add structure to a document
53           */
54    public ExtendedTag(String id, boolean causesBreak, boolean isBlock) {
55        super(id, causesBreak, isBlock);
56    }
57  
58  
59        // ---Extended Tag Names -----------------------------------
60        public static final Tag ATMLINX = new ExtendedTag("atm-linx",false,true);
61        public static final Tag DISPLAY = new ExtendedTag("display",false,true);
62        public static final Tag HTMLTEMPLATE = new ExtendedTag("htmltemplate");
63          public static final Tag NODESPEC = new ExtendedTag("nodespec");
64          public static final Tag SELECTION = new ExtendedTag("selection",false,true);
65          public static final Tag STOP = new ExtendedTag("stop",false,true);
66          public static final Tag START = new ExtendedTag("start",false,true);
67          
68  
69      }
70      
71     
72  
73  
74  }