[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units Body.java,1.3,1.4
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-04-13 16:06:41
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units
In directory usw-pr-cvs1:/tmp/cvs-serv29359/dev/src/net/sourceforge/idrs/deploy/compile/units
Modified Files:
Body.java
Log Message:
added YesNo and formInput tags
Index: Body.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/deploy/compile/units/Body.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Body.java 11 Apr 2002 20:37:06 -0000 1.3
--- Body.java 13 Apr 2002 16:06:35 -0000 1.4
***************
*** 120,127 ****
*/
public void yesNo(String val, Attributes atts) throws Exception {
! String name,srcType,single;
int isrcType,isingle;
name = atts.getValue("name");
single = atts.getValue("single");
if (single == null || single.equalsIgnoreCase("")) {
--- 120,131 ----
*/
public void yesNo(String val, Attributes atts) throws Exception {
! String name,srcType,single, attribs;
int isrcType,isingle;
+ boolean paramFirst = false;
name = atts.getValue("name");
+
+ paramFirst = atts.getValue("paramFirst") != null ? atts.getValue("paramFirst").equalsIgnoreCase("true") : false;
+
single = atts.getValue("single");
if (single == null || single.equalsIgnoreCase("")) {
***************
*** 132,135 ****
--- 136,143 ----
}
+
+ attribs = atts.getValue("atts");
+ attribs = (attribs != null) ? attribs : "";
+
srcType = atts.getValue("srcType");
if (srcType.equalsIgnoreCase("param")) isrcType = YesNo.SRC_PARAM;
***************
*** 137,141 ****
else isrcType = YesNo.SRC_PROP;
! state.getCurrentLine().addChunk(new YesNo(name,isingle,isrcType,val));
}
--- 145,187 ----
else isrcType = YesNo.SRC_PROP;
! state.getCurrentLine().addChunk(new YesNo(name,isingle,isrcType,val,attribs,paramFirst));
!
! }
!
! /**
! * Handles the formInput tag
! */
! public void formInput(String val, Attributes atts) throws Exception {
! String name,srcType,type, attribs,value;
! int isrcType,isingle,itype=-1;
! boolean paramFirst;
!
! paramFirst = atts.getValue("paramFirst") != null ? atts.getValue("paramFirst").equalsIgnoreCase("true") : false;
! System.out.println("Param First : " + paramFirst);
!
! value = atts.getValue("value");
!
! value = value != null ? value : "";
!
! name = atts.getValue("name");
! type = atts.getValue("type");
!
! itype = type.equalsIgnoreCase("hidden") ? InputChunk.INPUT_HIDDEN : itype;
! itype = type.equalsIgnoreCase("text") ? InputChunk.INPUT_TEXT : itype;
! itype = type.equalsIgnoreCase("password") ? InputChunk.INPUT_PASSWORD : itype;
! itype = type.equalsIgnoreCase("checkbox") ? InputChunk.INPUT_CHECKBOX : itype;
! itype = type.equalsIgnoreCase("radio") ? InputChunk.INPUT_RADIO : itype;
! itype = type.equalsIgnoreCase("textarea") ? InputChunk.INPUT_TEXTAREA : itype;
!
!
! attribs = atts.getValue("atts");
! attribs = (attribs != null) ? attribs : "";
!
! srcType = atts.getValue("srcType");
! if (srcType.equalsIgnoreCase("param")) isrcType = YesNo.SRC_PARAM;
! else if (srcType.equalsIgnoreCase("db")) isrcType = YesNo.SRC_DB;
! else isrcType = YesNo.SRC_PROP;
!
! state.getCurrentLine().addChunk(new InputChunk(name,itype,isrcType,val,value,attribs,paramFirst));
}
|