コード例 #1
0
 public void formGroupContextsDisplayRightEnter(PrintWriter out) {
   if (inFormGroupContext()) {
     utils.FormGroupContext temp = getFormGroupContext();
     if (!temp.isInColumnContext()) {
       temp.enterColumnContext();
       out.print("<div style=\"float: left;\">");
       formGroupContextClosingTags.push("right");
       temp.toLeftContext();
     } else {
       formGroupContextClosingTags.push("none");
     }
   }
 }
コード例 #2
0
 public void formGroupContextsCheckEnter(PrintWriter out) {
   if (inFormGroupContext()) {
     utils.FormGroupContext temp = getFormGroupContext();
     if (!temp.isInDoubleColumnContext()) { // ignore defaults when in scope of a double column
       if (!temp.isInColumnContext()) { // don't nest left and right
         temp.enterColumnContext();
         if (temp.isInLeftContext()) {
           out.print("<div style=\"clear:left; float:left; width: " + formGroupLeftSize + "px\">");
           formGroupContextClosingTags.push("left");
           temp.toRightContext();
         } else {
           out.print("<div style=\"float: left;\">");
           formGroupContextClosingTags.push("right");
           temp.toLeftContext();
         }
       } else {
         formGroupContextClosingTags.push("none");
       }
     }
   }
 }