Interpretation "SDRCMWAU: FORMGENERATOR" -03

xiaoxiao2021-03-06  39

tag handler lib / sdrc_mwau / com / sdrc / _metaphase / wcc / mwau / form / tagext / FormGeneratorTag.java bean2 display interface display data bean1 / PresentationBeanlib / sdrc_mwau / com / sdrc / metaphase / wcc / mwau / form / formbean / FormPresentationBean .javalib / SDRC_MWAU / COM / SDRC / _METAPHASE / WCC / MWAU / FORM / RENDERER / WIDGETRENDERER.JAVALIB / SDRC_MWAU / COM / SDRC / _METAPHASE / WCC / MWAU / FORM / RENDERER / HTMLWIDGETRENDERER.JAVA first look

Public Class PresentationBean

Implements PresentationBeanAccess, HTMLELEMENTCONSTRUCT, STYLECLASSES

The local variable owned is:

Protected int current_index;

Protected Int Element_count;

Protected ArrayList Elements;

protected arraylist element_props;

Protected final string attribute_ids = "attrib_ids";

Protected final string attribute_values ​​= "attrib_values";

protected final string parameters = "params";

Protected final string empty_string_Array [] = new string [0];

PRIVATE LOG log_;

Elements and Element_props are corresponding by the serial number, which can be seen from the code of the added element.

Public Boolean Addelement (String ElementName)

{

Try

{

Elements.Add (ElementName);

}

Catch (IllegalarGumentexception_ex)

{

Return False;

}

Try

{

Hashmap element_map = new hashmap ();

ELEMENT_PROPS.ADD (Element_map);

ELEMENT_MAP.PUT ("Attrib_IDS", New ArrayList ());

ELEMENT_MAP.PUT ("Attrib_VALUES", New HashMap ());

Element_map.put ("params", new arraylist ());

}

Catch (IllegalarGumentexception_ex)

{

Elements.Remove (Elements.Size () - 1);

ELEMENT_PROPS.REMOVE (Element_Props.Size () - 1);

Return False;

}

ELEMENT_COUNT = Elements.size ();

Current_index = Element_count - 1;

Return True;

}

The AddAttribute method adds ID and attribute values ​​for an attribute. The AddParameter method adds parameters for an attribute.

转载请注明原文地址:https://www.9cbs.com/read-67740.html

New Post(0)