de.enough.polish.preprocess.borders
Class TopBorderConverter

java.lang.Object
  extended by de.enough.polish.preprocess.css.Converter
      extended by de.enough.polish.preprocess.css.BorderConverter
          extended by de.enough.polish.preprocess.borders.TopBorderConverter

public class TopBorderConverter
extends BorderConverter

Creates the source code for a simple border.

Copyright Enough Software 2004 - 2011

 history
        10-Mar-2004 - rob creation
 

Author:
Robert Virkus, robert@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.preprocess.css.BorderConverter
BORDERS_PACKAGE, color, styleName, width
 
Fields inherited from class de.enough.polish.preprocess.css.Converter
ANCHORS, colorConverter, STANDALONE_MODIFIER, STANDALONE_MODIFIER_NON_FINAL
 
Constructor Summary
TopBorderConverter()
          Creates a new simple border creator
 
Method Summary
protected  String createNewStatement(AttributesGroup border, Style style, StyleSheet styleSheet)
          Creates the J2ME code for a new border based on the given properties.
 
Methods inherited from class de.enough.polish.preprocess.css.BorderConverter
addBorder, parseAnchor, parseBoolean, parseFloat, parseInt
 
Methods inherited from class de.enough.polish.preprocess.css.Converter
getUrl, isAlphaColor, parseAnchor, parseBoolean, parseColor, parseFloat, parseInt, parseInt, parseStroke, print, setColorConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopBorderConverter

public TopBorderConverter()
Creates a new simple border creator

Method Detail

createNewStatement

protected String createNewStatement(AttributesGroup border,
                                    Style style,
                                    StyleSheet styleSheet)
                             throws BuildException
Description copied from class: BorderConverter
Creates the J2ME code for a new border based on the given properties.

Specified by:
createNewStatement in class BorderConverter
Parameters:
border - the map containing all border settings
style - the parent style
styleSheet - the style-sheet into which the style is embedded
Returns:
the new statement, e.g. "new de.enough.polish.ui.borders.SimpleBorder( 0x000000, 1 )" no semicolon or comma must appended.
Throws:
BuildException - when there are invalid CSS declarations in the given background