net.xoetrope.builder.w3c.html.tags
Class Col

java.lang.Object
  extended by net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
      extended by net.xoetrope.builder.w3c.html.tags.Col

public class Col
extends XHtmlTagHandler

Processing for the html col and colgroup elements

Copyright (c) Xoetrope Ltd., 2002-2006

$Revision: 1.2 $

License: see License.txt


Field Summary
protected  java.lang.String tag
           
 
Fields inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
attribSet, builder, children, comp, content, parent, parentComponent, style
 
Constructor Summary
Col(java.lang.String t)
          Creates a new instance of Col
 
Method Summary
 int getNumCols()
          Get the number of table columns represented by this COL element
 XHtmlTagHandler newInstance(XHtmlBuilder builder, XHtmlTagHandler parent)
          Create a new instance of this object
 
Methods inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
addChild, addElement, applyAlignment, applyStyle, breaksFlow, decorateAttribute, endProcessing, getAttribute, getChildren, getComponent, getComponentName, getContent, getHeight, getHeight, getLength, getParent, getTextStyleAttributes, getWidth, getWidth, processComment, processCommonAttributes, processText, setBuilder, setComponent, setParent, startProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

protected java.lang.String tag
Constructor Detail

Col

public Col(java.lang.String t)
Creates a new instance of Col

Method Detail

newInstance

public XHtmlTagHandler newInstance(XHtmlBuilder builder,
                                   XHtmlTagHandler parent)
Create a new instance of this object

Specified by:
newInstance in class XHtmlTagHandler
Parameters:
builder - the html builder and processor for the document
parent - the parent handler
Returns:
the new handler

getNumCols

public int getNumCols()
Get the number of table columns represented by this COL element

Returns:
the number of columns defined by the span attribute or 1 if a span attribute is not present