| java.lang.Object com.sun.portal.wireless.htmlconversion.LayoutManager
LayoutManager | public class LayoutManager (Code) | | Maintains layout information - currently referencing table and form tags;
CSS layout is not supported as yet.
This class maintains references to layout elements in the output AML DOM tree.
These references are run through a final round of processing once the basic
DOM tree has been created. The final round involves deciding whether or not
particular layout elements are needed, and if they are needed, what they should
be changed into.
Table layout works on an algorithm that limits max table depth. Thus,
lower-level tables are preserved, while upper level tables are either
ignored, or split into paragraphs.
AML, for some strange reason, does not allow forms within tables, so
forms need to be moved outside tables, if they are within one.
author: aswhin.mathew@sun.com |
Method Summary | |
public Element | getLastAmlFormTag() Utility method used by AmlFormResetTagProcessor and
AmlFormSubmitTagProcessor to find the last form registered
in order to set the submit and reset properties of AmlForm. | public void | onEndAmlTableTag() Invoked at the end of an AmlTable tag. | public void | onStartAmlTableTag(Element amlTable) Invoked when the start of a new AmlTable tag is detected. | public void | reformLayout() Flattens table structures to the MAX_TABLE_DEPTH constant
and moves tags around so that they conform to the
AML DTD, e.g., AmlForm cannot be a child of AmlTableCol,
so move it outside the AmlTable, and make all it's children
children of AmlTableCol. | public void | registerAmlFormTag(Element amlForm) Registers an AmlForm element with the LayoutManager. |
getLastAmlFormTag | public Element getLastAmlFormTag()(Code) | | Utility method used by AmlFormResetTagProcessor and
AmlFormSubmitTagProcessor to find the last form registered
in order to set the submit and reset properties of AmlForm.
|
onEndAmlTableTag | public void onEndAmlTableTag()(Code) | | Invoked at the end of an AmlTable tag.
|
onStartAmlTableTag | public void onStartAmlTableTag(Element amlTable)(Code) | | Invoked when the start of a new AmlTable tag is detected.
Parameters: amlTable - |
reformLayout | public void reformLayout()(Code) | | Flattens table structures to the MAX_TABLE_DEPTH constant
and moves tags around so that they conform to the
AML DTD, e.g., AmlForm cannot be a child of AmlTableCol,
so move it outside the AmlTable, and make all it's children
children of AmlTableCol.
|
registerAmlFormTag | public void registerAmlFormTag(Element amlForm)(Code) | | Registers an AmlForm element with the LayoutManager.
Parameters: amlForm - |
|
|