cox.jmatt.java.MathTools.markup.html
Enum BaseHTag.TagKeys

java.lang.Object
  extended by java.lang.Enum<BaseHTag.TagKeys>
      extended by cox.jmatt.java.MathTools.markup.html.BaseHTag.TagKeys
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BaseHTag.TagKeys>
Enclosing class:
BaseHTag

public static enum BaseHTag.TagKeys
extends java.lang.Enum<BaseHTag.TagKeys>

This enum holds information and default values for the various tag classes, all of which subclass BaseHTag.


Enum Constant Summary
A_TAG
           
B_TAG
           
BQ_TAG
           
DD_TAG
           
DIV_TAG
           
DL_TAG
           
DT_TAG
           
EM_TAG
           
GLOBAL
          This is not an HTML tag, it is used to set values for all enum constants that are.
Hn_TAG
           
HR_TAG
           
HTML_TAG
           
I_TAG
           
IMG_TAG
           
LI_TAG
           
OL_TAG
           
P_TAG
           
SPAN_TAG
           
TABLE_TAG
           
TD_TAG
           
TR_TAG
           
U_TAG
           
UL_TAG
           
 
Method Summary
 java.util.Hashtable<java.lang.String,java.lang.String> getCopyAttributes()
          Retrieve the attributes stored for copying, once.
 java.lang.String getCopyContent()
          Retrieve the body content stored for copying.
 java.lang.String getDefaultClick()
          Retrieve the default value of the 'onclick=' attribute.
 java.lang.String getDefaultCSS()
          Retrieve the default value of the CSS class attribute.
 java.lang.String getDefaultName()
          Retrieve the default value of the 'name=' attribute.
 java.lang.String getDefaultStyle()
          Retrieve the default value of the CSS style attribute.
 java.lang.String getName()
          The name of the tag as it will appear in the markup.
 boolean isInBody()
          Is this tag in the <body> or the <head> of the document?
 void setDefaultClick(java.lang.String pStr)
          Set the default value of the 'onclick=' attribute for this tag.
 void setDefaultCSS(java.lang.String pStr)
          Set the default CSS class attribute for this tag.
 void setDefaultName(java.lang.String pStr)
          Set the default value of the 'name=' attribute for this tag.
 void setDefaultStyle(java.lang.String pStr)
          Set the default CSS style attribute for this tag.
 void storeCopyData(java.util.Hashtable<java.lang.String,java.lang.String> pAtts, java.lang.String pContent)
          Store tag attributes and content for copying.
static BaseHTag.TagKeys valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BaseHTag.TagKeys[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GLOBAL

public static final BaseHTag.TagKeys GLOBAL
This is not an HTML tag, it is used to set values for all enum constants that are.


EM_TAG

public static final BaseHTag.TagKeys EM_TAG

B_TAG

public static final BaseHTag.TagKeys B_TAG

I_TAG

public static final BaseHTag.TagKeys I_TAG

U_TAG

public static final BaseHTag.TagKeys U_TAG

A_TAG

public static final BaseHTag.TagKeys A_TAG

BQ_TAG

public static final BaseHTag.TagKeys BQ_TAG

SPAN_TAG

public static final BaseHTag.TagKeys SPAN_TAG

IMG_TAG

public static final BaseHTag.TagKeys IMG_TAG

LI_TAG

public static final BaseHTag.TagKeys LI_TAG

DD_TAG

public static final BaseHTag.TagKeys DD_TAG

DT_TAG

public static final BaseHTag.TagKeys DT_TAG

TD_TAG

public static final BaseHTag.TagKeys TD_TAG

OL_TAG

public static final BaseHTag.TagKeys OL_TAG

UL_TAG

public static final BaseHTag.TagKeys UL_TAG

DL_TAG

public static final BaseHTag.TagKeys DL_TAG

TR_TAG

public static final BaseHTag.TagKeys TR_TAG

TABLE_TAG

public static final BaseHTag.TagKeys TABLE_TAG

HTML_TAG

public static final BaseHTag.TagKeys HTML_TAG

DIV_TAG

public static final BaseHTag.TagKeys DIV_TAG

P_TAG

public static final BaseHTag.TagKeys P_TAG

Hn_TAG

public static final BaseHTag.TagKeys Hn_TAG

HR_TAG

public static final BaseHTag.TagKeys HR_TAG
Method Detail

values

public static BaseHTag.TagKeys[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BaseHTag.TagKeys c : BaseHTag.TagKeys.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BaseHTag.TagKeys valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
The name of the tag as it will appear in the markup.


isInBody

public boolean isInBody()
Is this tag in the <body> or the <head> of the document?


storeCopyData

public void storeCopyData(java.util.Hashtable<java.lang.String,java.lang.String> pAtts,
                          java.lang.String pContent)
Store tag attributes and content for copying.


getCopyAttributes

public java.util.Hashtable<java.lang.String,java.lang.String> getCopyAttributes()
Retrieve the attributes stored for copying, once.


getCopyContent

public java.lang.String getCopyContent()
Retrieve the body content stored for copying. Cleared after this method is called.


setDefaultName

public void setDefaultName(java.lang.String pStr)
Set the default value of the 'name=' attribute for this tag.


getDefaultName

public java.lang.String getDefaultName()
Retrieve the default value of the 'name=' attribute.


setDefaultCSS

public void setDefaultCSS(java.lang.String pStr)
Set the default CSS class attribute for this tag.


getDefaultCSS

public java.lang.String getDefaultCSS()
Retrieve the default value of the CSS class attribute.


setDefaultStyle

public void setDefaultStyle(java.lang.String pStr)
Set the default CSS style attribute for this tag.


getDefaultStyle

public java.lang.String getDefaultStyle()
Retrieve the default value of the CSS style attribute.


setDefaultClick

public void setDefaultClick(java.lang.String pStr)
Set the default value of the 'onclick=' attribute for this tag.


getDefaultClick

public java.lang.String getDefaultClick()
Retrieve the default value of the 'onclick=' attribute.