de.infinityloop.util.style
Class CSSProperties

java.lang.Object
  extended by de.infinityloop.util.style.CSSProperties

public class CSSProperties
extends java.lang.Object

This class defines all naming of CSS properties and their constants representation.


Field Summary
protected static java.util.Hashtable defaultValues
          Table of default values for CSS properties.
protected static java.util.Hashtable inheritedProperties
          Table of properties that show inheritance behaviour
static int kCSS_Additive
           
static int kCSS_AllSpaceTreatment
           
static int kCSS_AnnotationMarker
           
static int kCSS_BackgroundColor
           
static int kCSS_BlockBorderMode
           
static int kCSS_BorderBottom
           
static int kCSS_BorderBottomColor
           
static int kCSS_BorderBottomStyle
           
static int kCSS_BorderBottomWidth
           
static int kCSS_BorderCharacter
           
static int kCSS_BorderCollapse
           
static int kCSS_BorderColor
           
static int kCSS_BorderHorizontalInside
           
static int kCSS_BorderHorizontalInsideColor
           
static int kCSS_BorderHorizontalInsideStyle
           
static int kCSS_BorderHorizontalInsideWidth
           
static int kCSS_BorderLeft
           
static int kCSS_BorderLeftColor
           
static int kCSS_BorderLeftStyle
           
static int kCSS_BorderLeftWidth
           
static int kCSS_BorderRight
           
static int kCSS_BorderRightColor
           
static int kCSS_BorderRightStyle
           
static int kCSS_BorderRightWidth
           
static int kCSS_BorderSpacing
           
static int kCSS_BorderSpacingHorizontal
           
static int kCSS_BorderSpacingVertical
           
static int kCSS_BorderStyle
           
static int kCSS_BorderTop
           
static int kCSS_BorderTopColor
           
static int kCSS_BorderTopStyle
           
static int kCSS_BorderTopStyleChar
           
static int kCSS_BorderTopWidth
           
static int kCSS_BorderVerticalInside
           
static int kCSS_BorderVerticalInsideColor
           
static int kCSS_BorderVerticalInsideStyle
           
static int kCSS_BorderVerticalInsideWidth
           
static int kCSS_BorderWidth
           
static int kCSS_Bottom
           
static int kCSS_CellBorderBottom
           
static int kCSS_CellBorderLeft
           
static int kCSS_CellBorderRight
           
static int kCSS_CellBorderTop
           
static int kCSS_CharacterStyle
           
static int kCSS_Clear
           
static int kCSS_Codepage
           
static int kCSS_Color
           
static int kCSS_ColumnCount
           
static int kCSS_ColumnGap
           
static int kCSS_ColumnRule
           
static int kCSS_ColumnWidth
           
static int kCSS_Direction
           
static int kCSS_Display
           
static int kCSS_EditingRights
           
static int kCSS_EmptyCells
           
static int kCSS_EndnoteNumberingPolicy
           
static int kCSS_EndnoteNumberingStart
           
static int kCSS_EndnotePosition
           
static int kCSS_EndnoteStyleType
           
static int kCSS_FacingPages
           
static int kCSS_Float
           
static int kCSS_FollowingStyle
           
static int kCSS_FontFamily
           
static int kCSS_FontFamilyDefault
           
static int kCSS_FontFamilyGeneric
           
static int kCSS_FontSize
           
static int kCSS_FontSizeAdjust
           
static int kCSS_FontStretch
           
static int kCSS_FontStyle
           
static int kCSS_FontswitchRenderingHint
           
static int kCSS_FontVariant
           
static int kCSS_FontWeight
           
static int kCSS_FooterOffset
           
static int kCSS_FootnoteMarker
           
static int kCSS_FootnoteNumberingPolicy
           
static int kCSS_FootnoteNumberingStart
           
static int kCSS_FootnotePosition
           
static int kCSS_FootnoteStyleType
           
static int kCSS_Gutter
           
static int kCSS_HeaderOffset
           
static int kCSS_Height
           
static int kCSS_ID
           
static int kCSS_ImageSource
           
static int kCSS_InternalListId
           
static int kCSS_Left
           
static int kCSS_LeftIndent
           
static int kCSS_LetterSpacing
           
static int kCSS_LinefeedTreatment
           
static int kCSS_LineHeight
           
static int kCSS_LineStackingStrategy
           
static int kCSS_ListGroup
           
static int kCSS_ListLevel
           
static int kCSS_ListMarkerAlign
           
static int kCSS_ListMarkerFollow
           
static int kCSS_ListMarkerFontFamily
           
static int kCSS_ListMarkerFontSize
           
static int kCSS_ListMarkerOffset
           
static int kCSS_ListMarkerTemplate
           
static int kCSS_ListNumberAfter
           
static int kCSS_ListNumberBefore
           
static int kCSS_ListNumberingAbsolute
           
static int kCSS_ListStyleImage
           
static int kCSS_ListStylePosition
           
static int kCSS_ListStyleType
           
static int kCSS_MarginBottom
           
static int kCSS_MarginLeft
           
static int kCSS_MarginRight
           
static int kCSS_MarginTop
           
static int kCSS_MaxHeight
           
static int kCSS_MaxWidth
           
static int kCSS_MinHeight
           
static int kCSS_MinWidth
           
static int kCSS_MirrorMargins
           
static int kCSS_Orphans
           
static int kCSS_OutlineLevel
           
static int kCSS_Overflow
           
static int kCSS_PaddingBottom
           
static int kCSS_PaddingLeft
           
static int kCSS_PaddingRight
           
static int kCSS_PaddingTop
           
static int kCSS_Page
           
static int kCSS_PageBreakAfter
           
static int kCSS_PageBreakBefore
           
static int kCSS_PageBreakBeforeSymbol
           
static int kCSS_PageBreakInside
           
static int kCSS_PageNumberingMode
           
static int kCSS_PageNumberingStart
           
static int kCSS_PageNumberingStyle
           
static int kCSS_PaperOrientation
           
static int kCSS_ParagraphStyle
           
static int kCSS_PCDATA
           
static int kCSS_PictAltText
           
static int kCSS_Position
           
static int kCSS_Quotes
           
static int kCSS_ReferencePresentationType
           
static int kCSS_Right
           
static int kCSS_RowBorderBottom
           
static int kCSS_RowBorderH
           
static int kCSS_RowBorderLeft
           
static int kCSS_RowBorderRight
           
static int kCSS_RowBorderTop
           
static int kCSS_RowBorderV
           
static int kCSS_RTFFontFamily
           
static int kCSS_StyleUpdate
           
static int kCSS_TableLayout
           
static int kCSS_TableNesting
           
static int kCSS_TableRowGroup
           
static int kCSS_TabStops
           
static int kCSS_TextAlign
           
static int kCSS_TextDecoration
           
static int kCSS_TextIndent
           
static int kCSS_TextLineThroughStyle
           
static int kCSS_TextTransform
           
static int kCSS_TextUnderlineColor
           
static int kCSS_TextUnderlineMode
           
static int kCSS_TextUnderlineStyle
           
static int kCSS_TextVisibility
           
static int kCSS_Top
           
static int kCSS_UnicodeOffset
           
static int kCSS_UnicodeRenderingHint
           
static int kCSS_UnicodeSkipCount
           
static int kCSS_UNKNOWN_PROPERTY
           
static int kCSS_VerticalAlign
           
static int kCSS_WhiteSpace
           
static int kCSS_WhiteSpaceTreatment
           
static int kCSS_Widows
           
static int kCSS_Width
           
static int kCSS_WordBreakInside
           
static int kCSS_WordSpacing
           
static int kCSS_WrapDistanceHorizontal
           
static int kCSS_WrapDistanceVertical
           
static int kCSS_WrapOption
           
static int kCSS_XmlLang
           
static int kCSS_ZIndex
           
static int kCSSVal_DisplayBlockAnnotation
           
static int kCSSVal_DisplayBlockFootnote
           
static int kCSSVal_DisplayBlockList
           
static int kCSSVal_DisplayBlockLogicalUnit
           
static int kCSSVal_DisplayBlockPhysicalUnit
           
static int kCSSVal_Emboss
           
static int kCSSVal_Engrave
           
static int kCSSVal_Outline
           
static int kCSSVal_Shadow
           
static java.lang.String kCustomCSSPrefix
          Prefix string definition for custom CSS properties used by infinity-loop products.
static java.lang.String kCustomCSSValPrefix
           
static java.lang.String kGeneratedPrefix
          special property values
static int kMaxProperties
          maximum number of defined properties.
 
Constructor Summary
CSSProperties()
           
 
Method Summary
static java.util.Stack getDefaultPropertySettings()
          Retrieves a Stack of Pair()s with default (aka start-) values for all supported CSS properties.
static InheritanceDescriptor getInheritanceDescriptor(int kind)
          Retrieves any associated InheritanceDescriptor for the passed property.
static java.lang.String makeValidCSS2Identifier(java.lang.String src)
          Escapes the passed name so that it becomes a valid CSS2 class identifier.
static java.lang.String makeValidCSS2PropertyValue(java.lang.String src)
          Makes a (quoted, if need be) CSS2 property value using only ASCII characters for maximum compatibility.
static int translateToId(java.lang.String name)
          Translates the passed property name into its corresponding id TODO: Make a Hashmap from the whole mapping table and use this for lookups.
static java.lang.String translateToName(int id)
          Translates the passed property id into its corresponding name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kCustomCSSPrefix

public static final java.lang.String kCustomCSSPrefix
Prefix string definition for custom CSS properties used by infinity-loop products. '-ilx-' means "Infinity-Loop downCast eXtension". The leading hyphen is quoted on externalization to not break existing CSS2 parsers, where a leading hyphen is not an allowed identifier start character. This info based on non-published CSS-WG spec and mail by Bert Bos on www-style (2003-02-20):
          "The latest proposal (unfortunately still not published) is to use

             1. a hyphen or an underscore, followed by
             2. the (possibly abbreviated) name of your company,
             3. another hyphen or underscore, and
             4. the property name

          E.g., "-moz-border-radius" if you are Mozilla or "-wap-accesskey" if
          you are OMA :-)

          Those extensions are meant for local use, they should ideally not be
          passed over the public Web, but to reduce any risk of clashes, you
          should probably still use a prefix whose length is inversely
          proportional to how well-known your company is...

          (And, of course, you should not use proprietary extensions at all.)

          The initial hyphen is guaranteed never to clash with any official CSS
          property, because indeed in the official grammar, an identifier cannot
          start with a hyphen. We thought that somebody who needed a proprietary
          property would not have much problem with also using a proprietary
          tokenizer (the modification is tiny), but apparently it does pose a
          problem for some implementations, so we added the underscore
          convention. The underscore is a legal initial character, but part of
          the proposal is that the CSS WG promises never to use it for any
          official property."

See Also:
Constant Field Values

kCustomCSSValPrefix

public static final java.lang.String kCustomCSSValPrefix
See Also:
Constant Field Values

inheritedProperties

protected static java.util.Hashtable inheritedProperties
Table of properties that show inheritance behaviour


defaultValues

protected static java.util.Hashtable defaultValues
Table of default values for CSS properties.


kCSS_UNKNOWN_PROPERTY

public static final int kCSS_UNKNOWN_PROPERTY
See Also:
Constant Field Values

kCSS_FontFamily

public static final int kCSS_FontFamily
See Also:
Constant Field Values

kCSS_FontSize

public static final int kCSS_FontSize
See Also:
Constant Field Values

kCSS_Color

public static final int kCSS_Color
See Also:
Constant Field Values

kCSS_Additive

public static final int kCSS_Additive
See Also:
Constant Field Values

kCSS_PCDATA

public static final int kCSS_PCDATA
See Also:
Constant Field Values

kCSS_CharacterStyle

public static final int kCSS_CharacterStyle
See Also:
Constant Field Values

kCSS_ParagraphStyle

public static final int kCSS_ParagraphStyle
See Also:
Constant Field Values

kCSS_BorderTopWidth

public static final int kCSS_BorderTopWidth
See Also:
Constant Field Values

kCSS_BorderRightWidth

public static final int kCSS_BorderRightWidth
See Also:
Constant Field Values

kCSS_BorderBottomWidth

public static final int kCSS_BorderBottomWidth
See Also:
Constant Field Values

kCSS_BorderLeftWidth

public static final int kCSS_BorderLeftWidth
See Also:
Constant Field Values

kCSS_BorderTopColor

public static final int kCSS_BorderTopColor
See Also:
Constant Field Values

kCSS_BorderRightColor

public static final int kCSS_BorderRightColor
See Also:
Constant Field Values

kCSS_BorderBottomColor

public static final int kCSS_BorderBottomColor
See Also:
Constant Field Values

kCSS_BorderLeftColor

public static final int kCSS_BorderLeftColor
See Also:
Constant Field Values

kCSS_BorderTopStyle

public static final int kCSS_BorderTopStyle
See Also:
Constant Field Values

kCSS_BorderRightStyle

public static final int kCSS_BorderRightStyle
See Also:
Constant Field Values

kCSS_BorderBottomStyle

public static final int kCSS_BorderBottomStyle
See Also:
Constant Field Values

kCSS_BorderLeftStyle

public static final int kCSS_BorderLeftStyle
See Also:
Constant Field Values

kCSS_BorderHorizontalInsideStyle

public static final int kCSS_BorderHorizontalInsideStyle
See Also:
Constant Field Values

kCSS_BorderVerticalInsideStyle

public static final int kCSS_BorderVerticalInsideStyle
See Also:
Constant Field Values

kCSS_BorderHorizontalInsideColor

public static final int kCSS_BorderHorizontalInsideColor
See Also:
Constant Field Values

kCSS_BorderVerticalInsideColor

public static final int kCSS_BorderVerticalInsideColor
See Also:
Constant Field Values

kCSS_BorderHorizontalInsideWidth

public static final int kCSS_BorderHorizontalInsideWidth
See Also:
Constant Field Values

kCSS_BorderVerticalInsideWidth

public static final int kCSS_BorderVerticalInsideWidth
See Also:
Constant Field Values

kCSS_TextAlign

public static final int kCSS_TextAlign
See Also:
Constant Field Values

kCSS_TextIndent

public static final int kCSS_TextIndent
See Also:
Constant Field Values

kCSS_InternalListId

public static final int kCSS_InternalListId
See Also:
Constant Field Values

kCSS_ListStyleType

public static final int kCSS_ListStyleType
See Also:
Constant Field Values

kCSS_ListStylePosition

public static final int kCSS_ListStylePosition
See Also:
Constant Field Values

kCSS_ListNumberBefore

public static final int kCSS_ListNumberBefore
See Also:
Constant Field Values

kCSS_ListNumberAfter

public static final int kCSS_ListNumberAfter
See Also:
Constant Field Values

kCSS_Width

public static final int kCSS_Width
See Also:
Constant Field Values

kCSS_Height

public static final int kCSS_Height
See Also:
Constant Field Values

kCSS_MarginLeft

public static final int kCSS_MarginLeft
See Also:
Constant Field Values

kCSS_MarginRight

public static final int kCSS_MarginRight
See Also:
Constant Field Values

kCSS_MarginTop

public static final int kCSS_MarginTop
See Also:
Constant Field Values

kCSS_MarginBottom

public static final int kCSS_MarginBottom
See Also:
Constant Field Values

kCSS_PaddingLeft

public static final int kCSS_PaddingLeft
See Also:
Constant Field Values

kCSS_PaddingRight

public static final int kCSS_PaddingRight
See Also:
Constant Field Values

kCSS_PaddingTop

public static final int kCSS_PaddingTop
See Also:
Constant Field Values

kCSS_PaddingBottom

public static final int kCSS_PaddingBottom
See Also:
Constant Field Values

kCSS_TextDecoration

public static final int kCSS_TextDecoration
See Also:
Constant Field Values

kCSS_FontVariant

public static final int kCSS_FontVariant
See Also:
Constant Field Values

kCSS_FontWeight

public static final int kCSS_FontWeight
See Also:
Constant Field Values

kCSS_TextTransform

public static final int kCSS_TextTransform
See Also:
Constant Field Values

kCSS_VerticalAlign

public static final int kCSS_VerticalAlign
See Also:
Constant Field Values

kCSS_FontStyle

public static final int kCSS_FontStyle
See Also:
Constant Field Values

kCSS_BackgroundColor

public static final int kCSS_BackgroundColor
See Also:
Constant Field Values

kCSS_Widows

public static final int kCSS_Widows
See Also:
Constant Field Values

kCSS_Orphans

public static final int kCSS_Orphans
See Also:
Constant Field Values

kCSS_PageBreakBefore

public static final int kCSS_PageBreakBefore
See Also:
Constant Field Values

kCSS_PageBreakInside

public static final int kCSS_PageBreakInside
See Also:
Constant Field Values

kCSS_PageBreakAfter

public static final int kCSS_PageBreakAfter
See Also:
Constant Field Values

kCSS_Display

public static final int kCSS_Display
See Also:
Constant Field Values

kCSS_LineHeight

public static final int kCSS_LineHeight
See Also:
Constant Field Values

kCSS_Float

public static final int kCSS_Float
See Also:
Constant Field Values

kCSS_Clear

public static final int kCSS_Clear
See Also:
Constant Field Values

kCSS_TextUnderlineStyle

public static final int kCSS_TextUnderlineStyle
See Also:
Constant Field Values

kCSS_TextUnderlineMode

public static final int kCSS_TextUnderlineMode
See Also:
Constant Field Values

kCSS_Page

public static final int kCSS_Page
See Also:
Constant Field Values

kCSS_BorderSpacing

public static final int kCSS_BorderSpacing
See Also:
Constant Field Values

kCSS_WordBreakInside

public static final int kCSS_WordBreakInside
See Also:
Constant Field Values

kCSS_Direction

public static final int kCSS_Direction
See Also:
Constant Field Values

kCSS_EmptyCells

public static final int kCSS_EmptyCells
See Also:
Constant Field Values

kCSS_FontStretch

public static final int kCSS_FontStretch
See Also:
Constant Field Values

kCSS_FontSizeAdjust

public static final int kCSS_FontSizeAdjust
See Also:
Constant Field Values

kCSS_LetterSpacing

public static final int kCSS_LetterSpacing
See Also:
Constant Field Values

kCSS_ListStyleImage

public static final int kCSS_ListStyleImage
See Also:
Constant Field Values

kCSS_Quotes

public static final int kCSS_Quotes
See Also:
Constant Field Values

kCSS_WhiteSpace

public static final int kCSS_WhiteSpace
See Also:
Constant Field Values

kCSS_WordSpacing

public static final int kCSS_WordSpacing
See Also:
Constant Field Values

kCSS_Position

public static final int kCSS_Position
See Also:
Constant Field Values

kCSS_Top

public static final int kCSS_Top
See Also:
Constant Field Values

kCSS_Right

public static final int kCSS_Right
See Also:
Constant Field Values

kCSS_Bottom

public static final int kCSS_Bottom
See Also:
Constant Field Values

kCSS_Left

public static final int kCSS_Left
See Also:
Constant Field Values

kCSS_ZIndex

public static final int kCSS_ZIndex
See Also:
Constant Field Values

kCSS_BorderColor

public static final int kCSS_BorderColor
See Also:
Constant Field Values

kCSS_BorderStyle

public static final int kCSS_BorderStyle
See Also:
Constant Field Values

kCSS_BorderWidth

public static final int kCSS_BorderWidth
See Also:
Constant Field Values

kCSS_TextUnderlineColor

public static final int kCSS_TextUnderlineColor
See Also:
Constant Field Values

kCSS_TextLineThroughStyle

public static final int kCSS_TextLineThroughStyle
See Also:
Constant Field Values

kCSSVal_Engrave

public static final int kCSSVal_Engrave
See Also:
Constant Field Values

kCSSVal_Emboss

public static final int kCSSVal_Emboss
See Also:
Constant Field Values

kCSSVal_Shadow

public static final int kCSSVal_Shadow
See Also:
Constant Field Values

kCSSVal_Outline

public static final int kCSSVal_Outline
See Also:
Constant Field Values

kCSS_PictAltText

public static final int kCSS_PictAltText
See Also:
Constant Field Values

kCSS_ColumnCount

public static final int kCSS_ColumnCount
See Also:
Constant Field Values

kCSS_ColumnWidth

public static final int kCSS_ColumnWidth
See Also:
Constant Field Values

kCSS_ColumnGap

public static final int kCSS_ColumnGap
See Also:
Constant Field Values

kCSS_ColumnRule

public static final int kCSS_ColumnRule
See Also:
Constant Field Values

kCSS_FootnoteMarker

public static final int kCSS_FootnoteMarker
See Also:
Constant Field Values

kCSS_BlockBorderMode

public static final int kCSS_BlockBorderMode
See Also:
Constant Field Values

kCSS_WrapDistanceHorizontal

public static final int kCSS_WrapDistanceHorizontal
See Also:
Constant Field Values

kCSS_WrapDistanceVertical

public static final int kCSS_WrapDistanceVertical
See Also:
Constant Field Values

kCSS_ListLevel

public static final int kCSS_ListLevel
See Also:
Constant Field Values

kCSSVal_DisplayBlockLogicalUnit

public static final int kCSSVal_DisplayBlockLogicalUnit
See Also:
Constant Field Values

kCSSVal_DisplayBlockPhysicalUnit

public static final int kCSSVal_DisplayBlockPhysicalUnit
See Also:
Constant Field Values

kCSSVal_DisplayBlockFootnote

public static final int kCSSVal_DisplayBlockFootnote
See Also:
Constant Field Values

kCSSVal_DisplayBlockAnnotation

public static final int kCSSVal_DisplayBlockAnnotation
See Also:
Constant Field Values

kCSSVal_DisplayBlockList

public static final int kCSSVal_DisplayBlockList
See Also:
Constant Field Values

kCSS_EditingRights

public static final int kCSS_EditingRights
See Also:
Constant Field Values

kCSS_FontFamilyGeneric

public static final int kCSS_FontFamilyGeneric
See Also:
Constant Field Values

kCSS_TextVisibility

public static final int kCSS_TextVisibility
See Also:
Constant Field Values

kCSS_BorderSpacingHorizontal

public static final int kCSS_BorderSpacingHorizontal
See Also:
Constant Field Values

kCSS_BorderSpacingVertical

public static final int kCSS_BorderSpacingVertical
See Also:
Constant Field Values

kCSS_ListNumberingAbsolute

public static final int kCSS_ListNumberingAbsolute
See Also:
Constant Field Values

kCSS_BorderHorizontalInside

public static final int kCSS_BorderHorizontalInside
See Also:
Constant Field Values

kCSS_BorderVerticalInside

public static final int kCSS_BorderVerticalInside
See Also:
Constant Field Values

kCSS_ImageSource

public static final int kCSS_ImageSource
See Also:
Constant Field Values

kCSS_TabStops

public static final int kCSS_TabStops
See Also:
Constant Field Values

kCSS_XmlLang

public static final int kCSS_XmlLang
See Also:
Constant Field Values

kCSS_ListGroup

public static final int kCSS_ListGroup
See Also:
Constant Field Values

kCSS_ListMarkerTemplate

public static final int kCSS_ListMarkerTemplate
See Also:
Constant Field Values

kCSS_ListMarkerAlign

public static final int kCSS_ListMarkerAlign
See Also:
Constant Field Values

kCSS_ListMarkerFollow

public static final int kCSS_ListMarkerFollow
See Also:
Constant Field Values

kCSS_ListMarkerOffset

public static final int kCSS_ListMarkerOffset
See Also:
Constant Field Values

kCSS_Gutter

public static final int kCSS_Gutter
See Also:
Constant Field Values

kCSS_FacingPages

public static final int kCSS_FacingPages
See Also:
Constant Field Values

kCSS_MirrorMargins

public static final int kCSS_MirrorMargins
See Also:
Constant Field Values

kCSS_HeaderOffset

public static final int kCSS_HeaderOffset
See Also:
Constant Field Values

kCSS_FooterOffset

public static final int kCSS_FooterOffset
See Also:
Constant Field Values

kCSS_RTFFontFamily

public static final int kCSS_RTFFontFamily
See Also:
Constant Field Values

kCSS_UnicodeOffset

public static final int kCSS_UnicodeOffset
See Also:
Constant Field Values

kCSS_OutlineLevel

public static final int kCSS_OutlineLevel
See Also:
Constant Field Values

kCSS_ReferencePresentationType

public static final int kCSS_ReferencePresentationType
See Also:
Constant Field Values

kCSS_FontFamilyDefault

public static final int kCSS_FontFamilyDefault
See Also:
Constant Field Values

kCSS_FootnoteStyleType

public static final int kCSS_FootnoteStyleType
See Also:
Constant Field Values

kCSS_FootnoteNumberingPolicy

public static final int kCSS_FootnoteNumberingPolicy
See Also:
Constant Field Values

kCSS_FootnotePosition

public static final int kCSS_FootnotePosition
See Also:
Constant Field Values

kCSS_CellBorderTop

public static final int kCSS_CellBorderTop
See Also:
Constant Field Values

kCSS_CellBorderRight

public static final int kCSS_CellBorderRight
See Also:
Constant Field Values

kCSS_CellBorderBottom

public static final int kCSS_CellBorderBottom
See Also:
Constant Field Values

kCSS_CellBorderLeft

public static final int kCSS_CellBorderLeft
See Also:
Constant Field Values

kCSS_TableRowGroup

public static final int kCSS_TableRowGroup
See Also:
Constant Field Values

kCSS_BorderTop

public static final int kCSS_BorderTop
See Also:
Constant Field Values

kCSS_BorderRight

public static final int kCSS_BorderRight
See Also:
Constant Field Values

kCSS_BorderBottom

public static final int kCSS_BorderBottom
See Also:
Constant Field Values

kCSS_BorderLeft

public static final int kCSS_BorderLeft
See Also:
Constant Field Values

kCSS_BorderCharacter

public static final int kCSS_BorderCharacter
See Also:
Constant Field Values

kCSS_RowBorderTop

public static final int kCSS_RowBorderTop
See Also:
Constant Field Values

kCSS_RowBorderRight

public static final int kCSS_RowBorderRight
See Also:
Constant Field Values

kCSS_RowBorderBottom

public static final int kCSS_RowBorderBottom
See Also:
Constant Field Values

kCSS_RowBorderLeft

public static final int kCSS_RowBorderLeft
See Also:
Constant Field Values

kCSS_RowBorderV

public static final int kCSS_RowBorderV
See Also:
Constant Field Values

kCSS_RowBorderH

public static final int kCSS_RowBorderH
See Also:
Constant Field Values

kCSS_BorderTopStyleChar

public static final int kCSS_BorderTopStyleChar
See Also:
Constant Field Values

kCSS_LeftIndent

public static final int kCSS_LeftIndent
See Also:
Constant Field Values

kCSS_TableNesting

public static final int kCSS_TableNesting
See Also:
Constant Field Values

kCSS_Codepage

public static final int kCSS_Codepage
See Also:
Constant Field Values

kCSS_UnicodeSkipCount

public static final int kCSS_UnicodeSkipCount
See Also:
Constant Field Values

kCSS_EndnoteStyleType

public static final int kCSS_EndnoteStyleType
See Also:
Constant Field Values

kCSS_EndnoteNumberingPolicy

public static final int kCSS_EndnoteNumberingPolicy
See Also:
Constant Field Values

kCSS_EndnotePosition

public static final int kCSS_EndnotePosition
See Also:
Constant Field Values

kCSS_FollowingStyle

public static final int kCSS_FollowingStyle
See Also:
Constant Field Values

kCSS_AllSpaceTreatment

public static final int kCSS_AllSpaceTreatment
See Also:
Constant Field Values

kCSS_WrapOption

public static final int kCSS_WrapOption
See Also:
Constant Field Values

kCSS_LinefeedTreatment

public static final int kCSS_LinefeedTreatment
See Also:
Constant Field Values

kCSS_WhiteSpaceTreatment

public static final int kCSS_WhiteSpaceTreatment
See Also:
Constant Field Values

kCSS_ID

public static final int kCSS_ID
See Also:
Constant Field Values

kCSS_MinWidth

public static final int kCSS_MinWidth
See Also:
Constant Field Values

kCSS_MaxWidth

public static final int kCSS_MaxWidth
See Also:
Constant Field Values

kCSS_MinHeight

public static final int kCSS_MinHeight
See Also:
Constant Field Values

kCSS_MaxHeight

public static final int kCSS_MaxHeight
See Also:
Constant Field Values

kCSS_Overflow

public static final int kCSS_Overflow
See Also:
Constant Field Values

kCSS_TableLayout

public static final int kCSS_TableLayout
See Also:
Constant Field Values

kCSS_PageBreakBeforeSymbol

public static final int kCSS_PageBreakBeforeSymbol
See Also:
Constant Field Values

kCSS_ListMarkerFontFamily

public static final int kCSS_ListMarkerFontFamily
See Also:
Constant Field Values

kCSS_ListMarkerFontSize

public static final int kCSS_ListMarkerFontSize
See Also:
Constant Field Values

kCSS_UnicodeRenderingHint

public static final int kCSS_UnicodeRenderingHint
See Also:
Constant Field Values

kCSS_FontswitchRenderingHint

public static final int kCSS_FontswitchRenderingHint
See Also:
Constant Field Values

kCSS_StyleUpdate

public static final int kCSS_StyleUpdate
See Also:
Constant Field Values

kCSS_PageNumberingStart

public static final int kCSS_PageNumberingStart
See Also:
Constant Field Values

kCSS_PageNumberingMode

public static final int kCSS_PageNumberingMode
See Also:
Constant Field Values

kCSS_PageNumberingStyle

public static final int kCSS_PageNumberingStyle
See Also:
Constant Field Values

kCSS_AnnotationMarker

public static final int kCSS_AnnotationMarker
See Also:
Constant Field Values

kCSS_PaperOrientation

public static final int kCSS_PaperOrientation
See Also:
Constant Field Values

kCSS_LineStackingStrategy

public static final int kCSS_LineStackingStrategy
See Also:
Constant Field Values

kCSS_BorderCollapse

public static final int kCSS_BorderCollapse
See Also:
Constant Field Values

kCSS_FootnoteNumberingStart

public static final int kCSS_FootnoteNumberingStart
See Also:
Constant Field Values

kCSS_EndnoteNumberingStart

public static final int kCSS_EndnoteNumberingStart
See Also:
Constant Field Values

kMaxProperties

public static final int kMaxProperties
maximum number of defined properties. Used for establishing translation map size.

See Also:
Constant Field Values

kGeneratedPrefix

public static final java.lang.String kGeneratedPrefix
special property values

See Also:
Constant Field Values
Constructor Detail

CSSProperties

public CSSProperties()
Method Detail

makeValidCSS2Identifier

public static java.lang.String makeValidCSS2Identifier(java.lang.String src)
Escapes the passed name so that it becomes a valid CSS2 class identifier.

Parameters:
src - name to escape
Returns:
escaped name

makeValidCSS2PropertyValue

public static java.lang.String makeValidCSS2PropertyValue(java.lang.String src)
Makes a (quoted, if need be) CSS2 property value using only ASCII characters for maximum compatibility. This replaces simply all characters outside 0x20..0x7f by the Unicode quoting mechanism.

Parameters:
src - the value string to convert
Returns:
the converted value string

translateToId

public static int translateToId(java.lang.String name)
Translates the passed property name into its corresponding id

TODO: Make a Hashmap from the whole mapping table and use this for lookups.

Parameters:
name - property name
Returns:
id as int
See Also:
translateToName(int)

translateToName

public static java.lang.String translateToName(int id)
Translates the passed property id into its corresponding name. This is the reverse of translateToId().

See Also:
translateToId(java.lang.String)

getDefaultPropertySettings

public static java.util.Stack getDefaultPropertySettings()
Retrieves a Stack of Pair()s with default (aka start-) values for all supported CSS properties.


getInheritanceDescriptor

public static InheritanceDescriptor getInheritanceDescriptor(int kind)
Retrieves any associated InheritanceDescriptor for the passed property.

Parameters:
kind - the property id
Returns:
the InheritanceDescriptor or null, if this property is not inherited
See Also:
InheritanceDescriptor, translateToId(java.lang.String)