| java.lang.Object com.sun.portal.wireless.htmlconversion.processors.BaseTagProcessor com.sun.portal.wireless.htmlconversion.processors.HtmlRadioTagProcessor
HtmlRadioTagProcessor | public class HtmlRadioTagProcessor extends BaseTagProcessor (Code) | | Tag processor for HTML radio input tags. This one's a bit special
since it has to find all radio buttons with the same name, group
them under a common AmlChoice as AmlOption elements, and get the text
for each.
Implementation is tricky - since HTML does not have a container tag
demarcating groups of radio buttons, every time a radio button is
encountered, we'll have to walk back through the set of children on
the current node, removing them one by one, until the parent AmlChoice
is encountered. The AmlText elements in the group of children removed
will have to be concatenated and set as the text for the AmlOption
created for the radio button.
author: ashwin.mathew@sun.com |
|
|