www.element4solution.com

e4s.application.sysmodule.css
Class E4CSS

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.application.sysmodule.css.E4CSS

public class E4CSS
extends E4Object

Generic implementation of the Cascading Style Sheet DOM. Contains all Attributes and Values of the CSS2 Standard except group AURAL. Attributes are mapped to E4HtmlTag.Tag tags.

Since:
JDK 1.4
See Also:
E4StyleDefinition

Nested Class Summary
static class E4CSS.Attribute
          Attribute representation in a typesafe format.
static class E4CSS.ParserException
          Exception occuring within the parsing of E4CSS.Values.
static class E4CSS.Value
          Representation of E4CSS.Values in a typesafe format.
 
Field Summary
static int IMPORTANCE_HIGHEST
           
static int IMPORTANCE_LOWEST
           
static int IMPORTANCE_SECOND
           
static int IMPORTANCE_THIRD
           
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4CSS()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
static E4CSS.Attribute[] getAllAttributeKeys()
          Get and array of all possible E4CSS.Attributes.
static E4CSS.Attribute getAttribute(java.lang.String name)
          Get the typesafe E4CSS.Attribute object from a given name.
static int getAttributeImportance(E4CSS.Attribute attr)
          get subjective level for required expertise of editing user and usability of given attribute.
static E4CSS.Attribute[] getCssAttributesFromTag(E4HtmlTag.Tag tag)
          Retreive all E4CSS.Attributes that can occur within the given E4HtmlTag.Tag HTML tag.
static E4CSS.Value parseValue(java.lang.String text)
          Go through all values and parse each of them until a match is found.
static E4CSS.Value parseValue(java.lang.String text, E4CSS.Attribute attr)
          Go through the range of values related to the given E4CSS.Attribute and parse each of them.
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IMPORTANCE_LOWEST

public static final int IMPORTANCE_LOWEST
See Also:
Constant Field Values

IMPORTANCE_HIGHEST

public static final int IMPORTANCE_HIGHEST
See Also:
Constant Field Values

IMPORTANCE_SECOND

public static final int IMPORTANCE_SECOND
See Also:
Constant Field Values

IMPORTANCE_THIRD

public static final int IMPORTANCE_THIRD
See Also:
Constant Field Values
Constructor Detail

E4CSS

public E4CSS()
Method Detail

getAllAttributeKeys

public static E4CSS.Attribute[] getAllAttributeKeys()
Get and array of all possible E4CSS.Attributes.

Returns:
array of E4CSS.Attributes.

getAttribute

public static final E4CSS.Attribute getAttribute(java.lang.String name)
Get the typesafe E4CSS.Attribute object from a given name.

Parameters:
name - a given name.
Returns:
E4CSS.Attribute object or null if name is not valid.

parseValue

public static final E4CSS.Value parseValue(java.lang.String text)
                                    throws E4CSS.ParserException,
                                           java.lang.Exception
Go through all values and parse each of them until a match is found.

Parameters:
text - String representation of value.
Returns:
the matching Value object or throw ParserException if there is no matching value.
Throws:
E4CSS.ParserException - thrown if none of the value within the range matches.
Exception.
java.lang.Exception
See Also:
E4CSS.Value

parseValue

public static final E4CSS.Value parseValue(java.lang.String text,
                                           E4CSS.Attribute attr)
                                    throws E4CSS.ParserException,
                                           java.lang.Exception
Go through the range of values related to the given E4CSS.Attribute and parse each of them.

Parameters:
text - String representation of value.
attr - E4CSS.Attribute object.
Returns:
the matching Value object or throw ParserException if there is no matching value.
Throws:
E4CSS.ParserException - thrown if none of the value within the range matches.
Exception.
java.lang.Exception
See Also:
E4CSS.Value, E4CSS.Attribute

getCssAttributesFromTag

public static E4CSS.Attribute[] getCssAttributesFromTag(E4HtmlTag.Tag tag)
Retreive all E4CSS.Attributes that can occur within the given E4HtmlTag.Tag HTML tag.

Parameters:
tag - typesafe representation of E4HtmlTag tag.
Returns:
array of E4CSS.Attributes for the given E4HtmlTag tag.
See Also:
e4s.application.sysmodule.css.E4HtmlTag#Tag

getAttributeImportance

public static int getAttributeImportance(E4CSS.Attribute attr)
get subjective level for required expertise of editing user and usability of given attribute.

Parameters:
attr - E4CSS.Attribute. return level of importance
See Also:
E4CSS.Attribute

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com