myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1139133 - /myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java
Date Fri, 24 Jun 2011 00:28:54 GMT
Author: lu4242
Date: Fri Jun 24 00:28:54 2011
New Revision: 1139133

URL: http://svn.apache.org/viewvc?rev=1139133&view=rev
Log:
MFCOMMONS-34 HTML class should declare constants

Modified:
    myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java

Modified: myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java?rev=1139133&r1=1139132&r2=1139133&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java
(original)
+++ myfaces/commons/branches/jsf_20/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/renderkit/HTML.java
Fri Jun 24 00:28:54 2011
@@ -31,27 +31,27 @@ public final class HTML
 {
 
     // Common attributes
-    public String ALIGN_ATTR = "align";
-    public String BORDER_ATTR = "border";
-    public String WIDTH_ATTR = "width";
-    public String READONLY_ATTR = "readonly";
-    public String FILE_ATTR = "file";
-    public String ACCEPT_ATTR = "accept";
+    public static final String ALIGN_ATTR = "align";
+    public static final String BORDER_ATTR = "border";
+    public static final String WIDTH_ATTR = "width";
+    public static final String READONLY_ATTR = "readonly";
+    public static final String FILE_ATTR = "file";
+    public static final String ACCEPT_ATTR = "accept";
 
     // Common event handler attributes
-    public String ONCLICK_ATTR     = "onclick";
-    public String ONDBLCLICK_ATTR  = "ondblclick";
-    public String ONMOUSEDOWN_ATTR = "onmousedown";
-    public String ONMOUSEUP_ATTR   = "onmouseup";
-    public String ONMOUSEOVER_ATTR = "onmouseover";
-    public String ONMOUSEMOVE_ATTR = "onmousemove";
-    public String ONMOUSEOUT_ATTR  = "onmouseout";
-    public String ONKEYPRESS_ATTR  = "onkeypress";
-    public String ONKEYDOWN_ATTR   = "onkeydown";
-    public String ONKEYUP_ATTR     = "onkeyup";
-    public String ONFOCUS_ATTR = "onfocus";
-    public String ONBLUR_ATTR = "onblur";
-    public String[] EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK =
+    public static final String ONCLICK_ATTR     = "onclick";
+    public static final String ONDBLCLICK_ATTR  = "ondblclick";
+    public static final String ONMOUSEDOWN_ATTR = "onmousedown";
+    public static final String ONMOUSEUP_ATTR   = "onmouseup";
+    public static final String ONMOUSEOVER_ATTR = "onmouseover";
+    public static final String ONMOUSEMOVE_ATTR = "onmousemove";
+    public static final String ONMOUSEOUT_ATTR  = "onmouseout";
+    public static final String ONKEYPRESS_ATTR  = "onkeypress";
+    public static final String ONKEYDOWN_ATTR   = "onkeydown";
+    public static final String ONKEYUP_ATTR     = "onkeyup";
+    public static final String ONFOCUS_ATTR = "onfocus";
+    public static final String ONBLUR_ATTR = "onblur";
+    public static final String[] EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK =
     {
         ONDBLCLICK_ATTR,
         ONMOUSEDOWN_ATTR,
@@ -63,7 +63,7 @@ public final class HTML
         ONKEYDOWN_ATTR,
         ONKEYUP_ATTR
     };
-    public String[] EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT =
+    public static final String[] EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT
=
     {
         ONDBLCLICK_ATTR,
         ONMOUSEDOWN_ATTR,
@@ -74,15 +74,15 @@ public final class HTML
         ONKEYUP_ATTR,
         ONCLICK_ATTR
     };
-    public String[] EVENT_HANDLER_ATTRIBUTES =
+    public static final String[] EVENT_HANDLER_ATTRIBUTES =
             (String[]) ArrayUtils.concat(
                 EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK,
                 new String[] {ONCLICK_ATTR});
 
     // Input field event handler attributes
-    public String ONSELECT_ATTR = "onselect";
-    public String ONCHANGE_ATTR = "onchange";
-    public String[] COMMON_FIELD_EVENT_ATTRIBUTES =
+    public static final String ONSELECT_ATTR = "onselect";
+    public static final String ONCHANGE_ATTR = "onchange";
+    public static final String[] COMMON_FIELD_EVENT_ATTRIBUTES =
     {
         ONFOCUS_ATTR,
         ONBLUR_ATTR,
@@ -90,27 +90,27 @@ public final class HTML
         ONCHANGE_ATTR
     };
 
-    public String[] COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONFOCUS =
+    public static final String[] COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONFOCUS =
     {
         ONBLUR_ATTR,
         ONSELECT_ATTR,
         ONCHANGE_ATTR
     };
     
-    public String[] COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE =
+    public static final String[] COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE
=
     {
         ONFOCUS_ATTR,
         ONBLUR_ATTR
     };
 
     // universal attributes
-    public String DIR_ATTR   = "dir";
-    public String LANG_ATTR  = "lang";
-    public String STYLE_ATTR = "style";
-    public String TITLE_ATTR = "title";
-    public String STYLE_CLASS_ATTR = "styleClass"; //"class" cannot be used as property name
+    public static final String DIR_ATTR   = "dir";
+    public static final String LANG_ATTR  = "lang";
+    public static final String STYLE_ATTR = "style";
+    public static final String TITLE_ATTR = "title";
+    public static final String STYLE_CLASS_ATTR = "styleClass"; //"class" cannot be used
as property name
      
-    public String[] UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE =
+    public static final String[] UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE =
     {
         DIR_ATTR,
         LANG_ATTR,
@@ -118,100 +118,100 @@ public final class HTML
 
         //NOTE: if changed, please verify universal attributes in HtmlMessageRenderer !
     };
-    public String[] UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE_AND_TITLE =
+    public static final String[] UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE_AND_TITLE =
     {
         DIR_ATTR,
         LANG_ATTR,
     };
-    public String[] UNIVERSAL_ATTRIBUTES =
+    public static final String[] UNIVERSAL_ATTRIBUTES =
             (String[]) ArrayUtils.concat(
                 UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE,
                 new String[] {STYLE_ATTR, STYLE_CLASS_ATTR});
 
     //universal, but not the same property-name -
     //styleClass attribute is rendered as such
-    public String CLASS_ATTR = "class";
+    public static final String CLASS_ATTR = "class";
 
     // common form field attributes
-    public String ACCESSKEY_ATTR   = "accesskey";
-    public String TABINDEX_ATTR    = "tabindex";
-    public String DISABLED_ATTR = "disabled";
-    public String[] COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String ACCESSKEY_ATTR   = "accesskey";
+    public static final String TABINDEX_ATTR    = "tabindex";
+    public static final String DISABLED_ATTR = "disabled";
+    public static final String[] COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED =
     {
         ACCESSKEY_ATTR,
         TABINDEX_ATTR
     };
-    public String[] COMMON_FIELD_ATTRIBUTES =
+    public static final String[] COMMON_FIELD_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             new String[] {DISABLED_ATTR});
 
     // Common Attributes
-    public String[] COMMON_PASSTROUGH_ATTRIBUTES =
+    public static final String[] COMMON_PASSTROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             EVENT_HANDLER_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES);
-    public String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_STYLE =
+    public static final String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_STYLE =
         (String[]) ArrayUtils.concat(
             EVENT_HANDLER_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE);
-    public String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK =
+    public static final String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK =
         (String[]) ArrayUtils.concat(
             EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK,
             UNIVERSAL_ATTRIBUTES);
-    public String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK_WITHOUT_STYLE =
+    public static final String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK_WITHOUT_STYLE
=
         (String[]) ArrayUtils.concat(
             EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONCLICK,
             UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED =
         (String[]) ArrayUtils.concat(
             COMMON_PASSTROUGH_ATTRIBUTES,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             COMMON_FIELD_EVENT_ATTRIBUTES);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE =
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE
=
         (String[]) ArrayUtils.concat(
             COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_STYLE,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             COMMON_FIELD_EVENT_ATTRIBUTES);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS =
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS
=
         (String[]) ArrayUtils.concat(
             COMMON_PASSTROUGH_ATTRIBUTES,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONFOCUS);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK
=
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK
=
         (String[]) ArrayUtils.concat(
             COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONFOCUS);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK =
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK
=
         (String[]) ArrayUtils.concat(
             COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED,
             COMMON_FIELD_EVENT_ATTRIBUTES);
-    public String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT =
+    public static final String[] COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT
=
         (String[]) ArrayUtils.concat(
             EVENT_HANDLER_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT,
             UNIVERSAL_ATTRIBUTES);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS =
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
             UNIVERSAL_ATTRIBUTES,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED);
-    public String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS
=
+    public static final String[] COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
             UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE,
             COMMON_FIELD_ATTRIBUTES_WITHOUT_DISABLED);
     
     // <a>
-    public String TARGET_ATTR = "target";  //used by <a> and <form>
-    public String CHARSET_ATTR     = "charset";
-    public String COORDS_ATTR      = "coords";
-    public String HREF_ATTR    = "href";
-    public String HREFLANG_ATTR    = "hreflang";
-    public String REL_ATTR         = "rel";
-    public String REV_ATTR         = "rev";
-    public String SHAPE_ATTR       = "shape";
-    public String TYPE_ATTR        = "type";
-    public String[] ANCHOR_ATTRIBUTES =
+    public static final String TARGET_ATTR = "target";  //used by <a> and <form>
+    public static final String CHARSET_ATTR     = "charset";
+    public static final String COORDS_ATTR      = "coords";
+    public static final String HREF_ATTR    = "href";
+    public static final String HREFLANG_ATTR    = "hreflang";
+    public static final String REL_ATTR         = "rel";
+    public static final String REV_ATTR         = "rev";
+    public static final String SHAPE_ATTR       = "shape";
+    public static final String TYPE_ATTR        = "type";
+    public static final String[] ANCHOR_ATTRIBUTES =
     {
         ACCESSKEY_ATTR,
         CHARSET_ATTR,
@@ -224,36 +224,36 @@ public final class HTML
         TARGET_ATTR,
         TYPE_ATTR
     };
-    public String[] ANCHOR_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] ANCHOR_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             ANCHOR_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES,
             COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE);
-    public String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_STYLE =
+    public static final String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_STYLE =
         (String[]) ArrayUtils.concat(
             ANCHOR_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_STYLE,
             COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE);
-    public String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_ONCLICK_WITHOUT_STYLE =
+    public static final String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_ONCLICK_WITHOUT_STYLE
=
         (String[]) ArrayUtils.concat(
             ANCHOR_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONCLICK_WITHOUT_STYLE,
             COMMON_FIELD_EVENT_ATTRIBUTES_WITHOUT_ONSELECT_AND_ONCHANGE);
-    public String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
             ANCHOR_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES);
-    public String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_STYLE_AND_EVENTS =
+    public static final String[] ANCHOR_PASSTHROUGH_ATTRIBUTES_WITHOUT_STYLE_AND_EVENTS =
         (String[]) ArrayUtils.concat(
             ANCHOR_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES_WITHOUT_STYLE);
 
     // <form>
-    public String ACCEPT_CHARSET_ATTR = "accept-charset";
-    public String ENCTYPE_ATTR = "enctype";
-    public String ONRESET_ATTR = "onreset";
-    public String ONSUMBIT_ATTR = "onsubmit";
-    public String[] FORM_ATTRIBUTES =
+    public static final String ACCEPT_CHARSET_ATTR = "accept-charset";
+    public static final String ENCTYPE_ATTR = "enctype";
+    public static final String ONRESET_ATTR = "onreset";
+    public static final String ONSUMBIT_ATTR = "onsubmit";
+    public static final String[] FORM_ATTRIBUTES =
     {
         ACCEPT_ATTR,
         ACCEPT_CHARSET_ATTR,
@@ -262,25 +262,25 @@ public final class HTML
         ONSUMBIT_ATTR,
         TARGET_ATTR,
     };
-    public String[] FORM_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] FORM_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             FORM_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES);
-    public String[] FORM_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] FORM_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
             FORM_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES);
     // <img>
-    public String SRC_ATTR = "src";
-    public String ALT_ATTR = "alt";
-    public String HEIGHT_ATTR = "height";
-    public String HSPACE_ATTR = "hspace";
-    public String ISMAP_ATTR = "ismap";
-    public String LONGDESC_ATTR = "longdesc";
-    public String USEMAP_ATTR = "usemap";
-    public String VSPACE_ATTR = "vspace";
+    public static final String SRC_ATTR = "src";
+    public static final String ALT_ATTR = "alt";
+    public static final String HEIGHT_ATTR = "height";
+    public static final String HSPACE_ATTR = "hspace";
+    public static final String ISMAP_ATTR = "ismap";
+    public static final String LONGDESC_ATTR = "longdesc";
+    public static final String USEMAP_ATTR = "usemap";
+    public static final String VSPACE_ATTR = "vspace";
 
-    public String[] IMG_ATTRIBUTES =
+    public static final String[] IMG_ATTRIBUTES =
     {
         ALIGN_ATTR,
         ALT_ATTR,
@@ -293,25 +293,25 @@ public final class HTML
         VSPACE_ATTR,
         WIDTH_ATTR
     };
-    public String[] IMG_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] IMG_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
            IMG_ATTRIBUTES,
            COMMON_PASSTROUGH_ATTRIBUTES);
-    public String[] IMG_PASSTHROUGH_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT =
+    public static final String[] IMG_PASSTHROUGH_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT
=
         (String[]) ArrayUtils.concat(
            IMG_ATTRIBUTES,
            COMMON_PASSTROUGH_ATTRIBUTES_WITHOUT_ONMOUSEOVER_AND_ONMOUSEOUT);
-    public String[] IMG_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] IMG_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
            IMG_ATTRIBUTES,
            UNIVERSAL_ATTRIBUTES);
     // <input>
-    public String SIZE_ATTR = "size";
-    public String AUTOCOMPLETE_ATTR = "autocomplete";
-    public String CHECKED_ATTR = "checked";
-    public String MAXLENGTH_ATTR = "maxlength";
+    public static final String SIZE_ATTR = "size";
+    public static final String AUTOCOMPLETE_ATTR = "autocomplete";
+    public static final String CHECKED_ATTR = "checked";
+    public static final String MAXLENGTH_ATTR = "maxlength";
 
-    public String[] INPUT_ATTRIBUTES = {
+    public static final String[] INPUT_ATTRIBUTES = {
         ALIGN_ATTR,
         ALT_ATTR,
         CHECKED_ATTR,
@@ -319,101 +319,101 @@ public final class HTML
         READONLY_ATTR,
         SIZE_ATTR
     };
-    public String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
         (String[]) ArrayUtils.concat(
                 INPUT_ATTRIBUTES,
                 COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED);
-    public String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE =
+    public static final String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE
=
         (String[]) ArrayUtils.concat(
                 INPUT_ATTRIBUTES,
                 COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE);
 
-    public String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK
=
+    public static final String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK
=
         (String[]) ArrayUtils.concat(
                 INPUT_ATTRIBUTES,
                 COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONFOCUS_AND_ONCLICK);
 
-    public String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS =
+    public static final String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
                 INPUT_ATTRIBUTES,
                 COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS);
     
-    public String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS =
+    public static final String[] INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
                 INPUT_ATTRIBUTES,
                 COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS);
 
     //values for input-type attribute
-    public String INPUT_TYPE_SUBMIT = "submit";
-    public String INPUT_TYPE_IMAGE = "image";
-    public String INPUT_TYPE_HIDDEN = "hidden";
-    public String INPUT_TYPE_CHECKBOX = "checkbox";
-    public String INPUT_TYPE_PASSWORD = "password";
-    public String INPUT_TYPE_TEXT = "text";
-    public String INPUT_TYPE_RADIO = "radio";
-    public String INPUT_TYPE_BUTTON = "button";
+    public static final String INPUT_TYPE_SUBMIT = "submit";
+    public static final String INPUT_TYPE_IMAGE = "image";
+    public static final String INPUT_TYPE_HIDDEN = "hidden";
+    public static final String INPUT_TYPE_CHECKBOX = "checkbox";
+    public static final String INPUT_TYPE_PASSWORD = "password";
+    public static final String INPUT_TYPE_TEXT = "text";
+    public static final String INPUT_TYPE_RADIO = "radio";
+    public static final String INPUT_TYPE_BUTTON = "button";
 
     // <button>
-    public String[] BUTTON_ATTRIBUTES =
+    public static final String[] BUTTON_ATTRIBUTES =
     {
         ALIGN_ATTR,
         ALT_ATTR,
     };
-    public String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
         (String[]) ArrayUtils.concat(
             BUTTON_ATTRIBUTES,
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED);
-    public String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK =
+    public static final String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK
=
         (String[]) ArrayUtils.concat(
             BUTTON_ATTRIBUTES,
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK);
-    public String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS =
+    public static final String[] BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
             BUTTON_ATTRIBUTES,
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS);
 
     // <iframe>
-    public String FRAMEBORDER_ATTR = "frameborder";
-    public String SCROLLING_ATTR = "scrolling";
+    public static final String FRAMEBORDER_ATTR = "frameborder";
+    public static final String SCROLLING_ATTR = "scrolling";
 
     // <label>
-    public String FOR_ATTR = "for";
-    public String[] LABEL_ATTRIBUTES =
+    public static final String FOR_ATTR = "for";
+    public static final String[] LABEL_ATTRIBUTES =
     {
         ACCESSKEY_ATTR,
         ONBLUR_ATTR,
         ONFOCUS_ATTR
         //FOR_ATTR is no pass through !
     };
-    public String[] LABEL_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] LABEL_ATTRIBUTES_WITHOUT_EVENTS =
     {
         ACCESSKEY_ATTR
     };
-    public String[] LABEL_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] LABEL_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             LABEL_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES);
-    public String[] LABEL_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] LABEL_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
             LABEL_ATTRIBUTES_WITHOUT_EVENTS,
             UNIVERSAL_ATTRIBUTES);
 
     // <select>
-    public String MULTIPLE_ATTR = "multiple";
+    public static final String MULTIPLE_ATTR = "multiple";
 
-    public String[] SELECT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED = 
+    public static final String[] SELECT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED = 
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED;
-    public String[] SELECT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS = 
+    public static final String[] SELECT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
= 
         COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS;
 
     // <table>
-    public String BGCOLOR_ATTR = "bgcolor";
-    public String CELLPADDING_ATTR = "cellpadding";
-    public String CELLSPACING_ATTR = "cellspacing";
-    public String FRAME_ATTR = "frame";
-    public String RULES_ATTR = "rules";
-    public String SUMMARY_ATTR = "summary";
-    public String[] TABLE_ATTRIBUTES = {
+    public static final String BGCOLOR_ATTR = "bgcolor";
+    public static final String CELLPADDING_ATTR = "cellpadding";
+    public static final String CELLSPACING_ATTR = "cellspacing";
+    public static final String FRAME_ATTR = "frame";
+    public static final String RULES_ATTR = "rules";
+    public static final String SUMMARY_ATTR = "summary";
+    public static final String[] TABLE_ATTRIBUTES = {
         ALIGN_ATTR,
         BGCOLOR_ATTR,
         BORDER_ATTR,
@@ -424,45 +424,45 @@ public final class HTML
         SUMMARY_ATTR,
         WIDTH_ATTR
     };
-    public String[] TABLE_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] TABLE_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             TABLE_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES);
-    public String[] TABLE_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] TABLE_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
             TABLE_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES);
 
     // <textarea>
-    public String COLS_ATTR = "cols";
-    public String ROWS_ATTR = "rows";
-    public String WRAP_ATTR = "wrap";
-    public String[] TEXTAREA_ATTRIBUTES =
+    public static final String COLS_ATTR = "cols";
+    public static final String ROWS_ATTR = "rows";
+    public static final String WRAP_ATTR = "wrap";
+    public static final String[] TEXTAREA_ATTRIBUTES =
     {
         COLS_ATTR,
         READONLY_ATTR,
         ROWS_ATTR,
         WRAP_ATTR
     };
-    public String[] TEXTAREA_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String[] TEXTAREA_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
         (String[]) ArrayUtils.concat(
             TEXTAREA_ATTRIBUTES,
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED);
-    public String[] TEXTAREA_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS =
+    public static final String[] TEXTAREA_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
             TEXTAREA_ATTRIBUTES,
             COMMON_FIELD_PASSTROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS);
 
     // <input type=file>
-    public String[] INPUT_FILE_UPLOAD_ATTRIBUTES =
+    public static final String[] INPUT_FILE_UPLOAD_ATTRIBUTES =
     {
         ACCEPT_ATTR
     };
-    public String[] INPUT_FILE_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
+    public static final String[] INPUT_FILE_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED =
         (String[]) ArrayUtils.concat(
             INPUT_FILE_UPLOAD_ATTRIBUTES,
             INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED);
-    public String[] INPUT_FILE_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS =
+    public static final String[] INPUT_FILE_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS
=
         (String[]) ArrayUtils.concat(
             INPUT_FILE_UPLOAD_ATTRIBUTES,
             INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_EVENTS);
@@ -474,43 +474,43 @@ public final class HTML
             EVENT_HANDLER_ATTRIBUTES);
             */
 
-    public String[] MESSAGE_PASSTHROUGH_ATTRIBUTES_WITHOUT_TITLE_STYLE_AND_STYLE_CLASS =
+    public static final String[] MESSAGE_PASSTHROUGH_ATTRIBUTES_WITHOUT_TITLE_STYLE_AND_STYLE_CLASS
=
         (String[]) ArrayUtils.concat(
             new String[] {DIR_ATTR, LANG_ATTR},
             EVENT_HANDLER_ATTRIBUTES);
 
 
     // selectOne/Many table
-    public String[] SELECT_TABLE_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] SELECT_TABLE_PASSTHROUGH_ATTRIBUTES =
         new String[] {STYLE_ATTR, STYLE_CLASS_ATTR, BORDER_ATTR};
 
-    public String COMPACT_ATTR = "compact";
-    public String[] UL_ATTRIBUTES = {
+    public static final String COMPACT_ATTR = "compact";
+    public static final String[] UL_ATTRIBUTES = {
         COMPACT_ATTR,
         TYPE_ATTR
     };
-    public String[] UL_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] UL_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
             UL_ATTRIBUTES,
             COMMON_PASSTROUGH_ATTRIBUTES);
-    public String[] UL_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] UL_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
             UL_ATTRIBUTES,
             UNIVERSAL_ATTRIBUTES);
 
     //body
-    public String BODY_ELEM = "body";
-    public String BODY_TARGET = BODY_ELEM;
+    public static final String BODY_ELEM = "body";
+    public static final String BODY_TARGET = BODY_ELEM;
     
-    public String ONLOAD_ATTR = "onload";
-    public String ONUNLOAD_ATTR = "onunload";
-    public String ALINK_ATTR = "alink";
-    public String VLINK_ATTR = "vlink";
-    public String LINK_ATTR = "link";
-    public String TEXT_ATTR = "text";
-    public String BACKGROUND_ATTR = "background";
+    public static final String ONLOAD_ATTR = "onload";
+    public static final String ONUNLOAD_ATTR = "onunload";
+    public static final String ALINK_ATTR = "alink";
+    public static final String VLINK_ATTR = "vlink";
+    public static final String LINK_ATTR = "link";
+    public static final String TEXT_ATTR = "text";
+    public static final String BACKGROUND_ATTR = "background";
 
-    public String[] BODY_ATTRIBUTES =
+    public static final String[] BODY_ATTRIBUTES =
     {
         ONLOAD_ATTR,
         ONUNLOAD_ATTR,
@@ -522,7 +522,7 @@ public final class HTML
         BGCOLOR_ATTR
     };
     
-    public String[] BODY_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] BODY_ATTRIBUTES_WITHOUT_EVENTS =
     {
         ALINK_ATTR,
         VLINK_ATTR,
@@ -532,82 +532,82 @@ public final class HTML
         BGCOLOR_ATTR
     };
 
-    public String[] BODY_PASSTHROUGH_ATTRIBUTES =
+    public static final String[] BODY_PASSTHROUGH_ATTRIBUTES =
         (String[]) ArrayUtils.concat(
                 COMMON_PASSTROUGH_ATTRIBUTES,
                 BODY_ATTRIBUTES);
-    public String[] BODY_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
+    public static final String[] BODY_PASSTHROUGH_ATTRIBUTES_WITHOUT_EVENTS =
         (String[]) ArrayUtils.concat(
                 UNIVERSAL_ATTRIBUTES,
                 BODY_ATTRIBUTES_WITHOUT_EVENTS);
     //HTML attributes needed for renderding only
-    public String ID_ATTR = "id";
-    public String NAME_ATTR = "name";
-    public String VALUE_ATTR = "value";
-    public String METHOD_ATTR = "method";
-    public String ACTION_ATTR = "action";
-    public String COLSPAN_ATTR = "colspan";
-    public String SCOPE_ATTR = "scope";
-    public String LABEL_ATTR = "label";
-    public String SELECTED_ATTR = "selected";
+    public static final String ID_ATTR = "id";
+    public static final String NAME_ATTR = "name";
+    public static final String VALUE_ATTR = "value";
+    public static final String METHOD_ATTR = "method";
+    public static final String ACTION_ATTR = "action";
+    public static final String COLSPAN_ATTR = "colspan";
+    public static final String SCOPE_ATTR = "scope";
+    public static final String LABEL_ATTR = "label";
+    public static final String SELECTED_ATTR = "selected";
 
     //HTML attributes values
-    public String SCOPE_COLGROUP_VALUE = "colgroup";
-    public String SCOPE_ROW_VALUE = "row";
+    public static final String SCOPE_COLGROUP_VALUE = "colgroup";
+    public static final String SCOPE_ROW_VALUE = "row";
 
     //HTML element constants
-    public String SPAN_ELEM = "span";
-    public String DIV_ELEM = "div";
-    public String INPUT_ELEM = "input";
-    public String BUTTON_ELEM = "button";
-    public String SELECT_ELEM = "select";
-    public String OPTION_ELEM = "option";
-    public String OPTGROUP_ELEM = "optgroup";
-    public String TEXTAREA_ELEM = "textarea";
-    public String FORM_ELEM = "form";
-    public String ANCHOR_ELEM = "a";
-    public String H1_ELEM = "h1";
-    public String H2_ELEM = "h2";
-    public String H3_ELEM = "h3";
-    public String H4_ELEM = "h4";
-    public String H5_ELEM = "h5";
-    public String H6_ELEM = "h6";
-    public String IFRAME_ELEM = "iframe";
-    public String IMG_ELEM = "img";
-    public String LABEL_ELEM = "label";
-    public String TABLE_ELEM = "table";
-    public String CAPTION_ELEM = "caption";
-    public String TR_ELEM = "tr";
-    public String TH_ELEM = "th";
-    public String TD_ELEM = "td";
-    public String TBODY_ELEM = "tbody";
-    public String TFOOT_ELEM = "tfoot";
-    public String THEAD_ELEM = "thead";
-    public String STYLE_ELEM = "style";
-    public String SCRIPT_ELEM = "script";
-    public String SCRIPT_TYPE_ATTR = "type";
-    public String SCRIPT_TYPE_TEXT_JAVASCRIPT = "text/javascript";
-    public String STYLE_TYPE_TEXT_CSS = "text/css";
-    public String SCRIPT_LANGUAGE_ATTR = "language";
-    public String SCRIPT_LANGUAGE_JAVASCRIPT = "JavaScript";
-    public String SCRIPT_ELEM_DEFER_ATTR = "defer";
-    public String LINK_ELEM = "link";
-    public String STYLESHEET_VALUE = "stylesheet";
-    public String UL_ELEM = "ul";
-    public String OL_ELEM = "ol";
-    public String LI_ELEM = "li";
+    public static final String SPAN_ELEM = "span";
+    public static final String DIV_ELEM = "div";
+    public static final String INPUT_ELEM = "input";
+    public static final String BUTTON_ELEM = "button";
+    public static final String SELECT_ELEM = "select";
+    public static final String OPTION_ELEM = "option";
+    public static final String OPTGROUP_ELEM = "optgroup";
+    public static final String TEXTAREA_ELEM = "textarea";
+    public static final String FORM_ELEM = "form";
+    public static final String ANCHOR_ELEM = "a";
+    public static final String H1_ELEM = "h1";
+    public static final String H2_ELEM = "h2";
+    public static final String H3_ELEM = "h3";
+    public static final String H4_ELEM = "h4";
+    public static final String H5_ELEM = "h5";
+    public static final String H6_ELEM = "h6";
+    public static final String IFRAME_ELEM = "iframe";
+    public static final String IMG_ELEM = "img";
+    public static final String LABEL_ELEM = "label";
+    public static final String TABLE_ELEM = "table";
+    public static final String CAPTION_ELEM = "caption";
+    public static final String TR_ELEM = "tr";
+    public static final String TH_ELEM = "th";
+    public static final String TD_ELEM = "td";
+    public static final String TBODY_ELEM = "tbody";
+    public static final String TFOOT_ELEM = "tfoot";
+    public static final String THEAD_ELEM = "thead";
+    public static final String STYLE_ELEM = "style";
+    public static final String SCRIPT_ELEM = "script";
+    public static final String SCRIPT_TYPE_ATTR = "type";
+    public static final String SCRIPT_TYPE_TEXT_JAVASCRIPT = "text/javascript";
+    public static final String STYLE_TYPE_TEXT_CSS = "text/css";
+    public static final String SCRIPT_LANGUAGE_ATTR = "language";
+    public static final String SCRIPT_LANGUAGE_JAVASCRIPT = "JavaScript";
+    public static final String SCRIPT_ELEM_DEFER_ATTR = "defer";
+    public static final String LINK_ELEM = "link";
+    public static final String STYLESHEET_VALUE = "stylesheet";
+    public static final String UL_ELEM = "ul";
+    public static final String OL_ELEM = "ol";
+    public static final String LI_ELEM = "li";
 
 
     //HTML simple element constants
-    public String BR_ELEM = "br";
+    public static final String BR_ELEM = "br";
 
 
     //HTML entities
-    public String NBSP_ENTITY = "&#160;";
+    public static final String NBSP_ENTITY = "&#160;";
 
-    public String HREF_PATH_SEPARATOR = "/";
-    public String HREF_PATH_FROM_PARAM_SEPARATOR = "?";
+    public static final String HREF_PATH_SEPARATOR = "/";
+    public static final String HREF_PATH_FROM_PARAM_SEPARATOR = "?";
     //removed because wrong for XHTML and not used anyway: String HREF_PARAM_SEPARATOR =
"&";
-    public String HREF_PARAM_NAME_FROM_VALUE_SEPARATOR = "=";
+    public static final String HREF_PARAM_NAME_FROM_VALUE_SEPARATOR = "=";
 
 }



Mime
View raw message