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

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

public class Select
extends XHtmlTagHandler

Processing for the html SELECT element

Copyright (c) Xoetrope Ltd., 2002-2006

$Revision: 1.1 $

License: see License.txt


Field Summary
 
Fields inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
attribSet, builder, children, comp, content, parent, parentComponent, style
 
Constructor Summary
Select()
          Creates a new instance of Select
 
Method Summary
 boolean addElement(XHtmlTagHandler child)
          Add a child element, possibly data such as when an option is added to a SELECT element.
 void endProcessing(XComponentFactory cf)
          The closing tag has been parsed and now the element can calulate its complete setup should it be dependant on its children for any information.
 XHtmlTagHandler newInstance(XHtmlBuilder builder, XHtmlTagHandler parent)
          Create a new instance of this object
 void startProcessing(XHtmlBuilder builder, XComponentFactory cf, javax.swing.text.MutableAttributeSet as)
          Process the opening html P tag/element
 
Methods inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
addChild, applyAlignment, applyStyle, breaksFlow, decorateAttribute, getAttribute, getChildren, getComponent, getComponentName, getContent, getHeight, getHeight, getLength, getParent, getTextStyleAttributes, getWidth, getWidth, processComment, processCommonAttributes, processText, setBuilder, setComponent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Select

public Select()
Creates a new instance of Select

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

startProcessing

public void startProcessing(XHtmlBuilder builder,
                            XComponentFactory cf,
                            javax.swing.text.MutableAttributeSet as)
Process the opening html P tag/element

Overrides:
startProcessing in class XHtmlTagHandler
Parameters:
builder - the xui builder instance that is processing the html file
cf - the component factory to use for the creation of individual components
as - the attributes of this html tag.

endProcessing

public void endProcessing(XComponentFactory cf)
The closing tag has been parsed and now the element can calulate its complete setup should it be dependant on its children for any information. In the case of a table, the table determines the row and column count from the child elements and cannot calculate its layout till all the children have been initially processed.

Overrides:
endProcessing in class XHtmlTagHandler
Parameters:
cf - the component factory to use for the creation of individual components

addElement

public boolean addElement(XHtmlTagHandler child)
Add a child element, possibly data such as when an option is added to a SELECT element.

Overrides:
addElement in class XHtmlTagHandler
Parameters:
child - the child element
Returns:
true if the item is added, false if further processing is required.