|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.xoetrope.builder.w3c.html.tags.XHtmlTagHandler
net.xoetrope.builder.w3c.html.tags.Td
public class Td
Processing for the html tr, td, th elements
Copyright (c) Xoetrope Ltd., 2002-2006
$Revision: 1.2 $
License: see License.txt
Field Summary | |
---|---|
protected javax.swing.text.html.HTML.Tag |
tag
|
Fields inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler |
---|
attribSet, builder, children, comp, content, parent, parentComponent, style |
Constructor Summary | |
---|---|
Td(javax.swing.text.html.HTML.Tag t)
Creates a new instance of Td |
Method Summary | |
---|---|
protected void |
addChildren(javax.swing.JPanel table,
info.clearthought.layout.TableLayout tableLayout,
int[] rowSpans,
int rowIdx)
Add the children of the table element |
protected int |
addContent(javax.swing.JPanel table,
info.clearthought.layout.TableLayout tableLayout,
int[] rowSpans,
int rowIdx,
int colIdx)
Add the content of the table element |
boolean |
breaksFlow()
Does this tag break the flow? |
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. |
int |
getNumCols()
Get the number of table columns represented by this COL element |
protected Table |
getTable()
Find the parent table |
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 Img tag/element. |
Methods inherited from class net.xoetrope.builder.w3c.html.tags.XHtmlTagHandler |
---|
addChild, addElement, applyAlignment, applyStyle, 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 |
Field Detail |
---|
protected javax.swing.text.html.HTML.Tag tag
Constructor Detail |
---|
public Td(javax.swing.text.html.HTML.Tag t)
Method Detail |
---|
public XHtmlTagHandler newInstance(XHtmlBuilder builder, XHtmlTagHandler parent)
newInstance
in class XHtmlTagHandler
builder
- the html builder and processor for the documentparent
- the parent handler
public void startProcessing(XHtmlBuilder builder, XComponentFactory cf, javax.swing.text.MutableAttributeSet as)
startProcessing
in class XHtmlTagHandler
builder
- the xui builder instance that is processing the html filecf
- the component factory to use for the creation of individual componentsas
- the attributes of this html tag.public void endProcessing(XComponentFactory cf)
endProcessing
in class XHtmlTagHandler
cf
- the component factory to use for the creation of individual componentsprotected Table getTable()
public int getNumCols()
protected void addChildren(javax.swing.JPanel table, info.clearthought.layout.TableLayout tableLayout, int[] rowSpans, int rowIdx)
table
- the table being filledtableLayout
- the layout being used by the tablerowSpans
- an array of rowspan valuesrowIdx
- the current row indexprotected int addContent(javax.swing.JPanel table, info.clearthought.layout.TableLayout tableLayout, int[] rowSpans, int rowIdx, int colIdx)
table
- the table being filledtableLayout
- the layout being used by the tablerowSpans
- an array of rowspan valuesrowIdx
- the current row indexcolIdx
- the current columnpublic boolean breaksFlow()
breaksFlow
in class XHtmlTagHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |