Package org.zkoss.zul

Examples of org.zkoss.zul.Div


    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    // Buttons Toolbar/Timer
    Div div = new Div();
    div.setStyle("padding: 0px");
    div.setParent(cap);
    Hbox hbox = new Hbox();
    hbox.setPack("stretch");
    hbox.setWidth("100%");
    hbox.setParent(div);
    Toolbar toolbarRight = new Toolbar();
View Full Code Here


    Row row = new Row();

    Html html_TableName = new Html(tableName);
    html_TableName.setStyle("padding-left: 5px;");
    Div divKey = new Div();
    divKey.setAlign("left");
    divKey.appendChild(html_TableName);

    Html html_RecordCount = null;

    if (value instanceof BigDecimal) {
      BigDecimal myDec = (BigDecimal) value;
      myDec = myDec.setScale(2, BigDecimal.ROUND_HALF_UP);

      // Format the value to money
      NumberFormat formatter = new DecimalFormat("#,##0.00");
      String money = formatter.format(myDec);

      html_RecordCount = new Html(money);
    } else if (value instanceof Integer) {
      html_RecordCount = new Html(String.valueOf(value));
    } else
      html_RecordCount = new Html(String.valueOf(value));

    html_RecordCount.setStyle("padding-right: 5px;");
    Div divValue = new Div();
    divValue.setAlign("right");
    divValue.appendChild(html_RecordCount);

    row.appendChild(divKey);
    row.appendChild(divValue);
    row.setParent(rowParent);
  }
View Full Code Here

    Html html_TableName = new Html(tableName);

    html_TableName.setStyle("padding-left: 5px;");

    Div divKey = new Div();
    divKey.setAlign("left");
    divKey.appendChild(html_TableName);

    Html html_RecordCount = null;

    if (value instanceof BigDecimal) {
      BigDecimal myDec = (BigDecimal) value;
      myDec = myDec.setScale(2, BigDecimal.ROUND_HALF_UP);

      // Format the value to money
      NumberFormat formatter = new DecimalFormat("#,##0.00");
      String money = formatter.format(myDec);

      html_RecordCount = new Html(money);
    } else if (value instanceof Integer) {
      html_RecordCount = new Html(String.valueOf(value));
    } else
      html_RecordCount = new Html(String.valueOf(value));

    if (!color.equalsIgnoreCase("black")) {
      html_RecordCount.setStyle("padding-right: 5px;  color: " + color + ";");
    } else
      html_RecordCount.setStyle("padding-right: 5px;");

    Div divValue = new Div();
    divValue.setAlign("right");
    divValue.appendChild(html_RecordCount);

    row.appendChild(divKey);
    row.appendChild(divValue);
    row.setParent(rowParent);
  }
View Full Code Here

  Div _selected;
  Include xcontents;
 
 
  public void onCategorySelect(ForwardEvent event) {
    Div div = (Div) event.getOrigin().getTarget();
    String name=div.getId();
    if (_selected != div) {
      _selected = div;
      if(name.equals("app0"))
        xcontents.setSrc("onlineApp.zul");
      if(name.equals("app1"))
View Full Code Here

    }

    public static void nomorDocListcellStyle(Listitem item, String uppperContent, String lowerContent) {
        Listcell lcNpa = new Listcell();
        lcNpa.setParent(item);
        Div dvNpa = new Div();
        dvNpa.setParent(lcNpa);
        Label lblNpaNomor = new Label(uppperContent);
        lblNpaNomor.setStyle("text-decoration:underline");
        lblNpaNomor.setParent(dvNpa);
        new Br().setParent(dvNpa);
        Label lblNpaTanggal = new Label(lowerContent);
View Full Code Here

    private Tree getContainerTree() {
        return (Tree) getFellow("loadsTree");
    }

    private Component createFirstLevel(LimitingResourceQueue main) {
        Div result = createLabelWithName(main);
        result.setSclass("firstlevel");
        return result;
    }
View Full Code Here

        result.setSclass("firstlevel");
        return result;
    }

    private Component createSecondLevel(LimitingResourceQueue loadTimeLine) {
        Div result = createLabelWithName(loadTimeLine);
        result.setSclass("secondlevel");
        return result;
    }
View Full Code Here

        result.setSclass("secondlevel");
        return result;
    }

    private Div createLabelWithName(LimitingResourceQueue main) {
        Div result = new Div();
        Label label = new Label();
        final String conceptName = main.getResource().getName();
        label.setValue(conceptName);
        result.appendChild(label);
        return result;
    }
View Full Code Here

            }
        }
        if (deadlineDate != null) {
            int deadlinePosition = getDeadlinePixels(datesMapper, deadlineDate);
            if (deadlinePosition < datesMapper.getHorizontalSize()) {
                Div deadline = new Div();
                deadline.setSclass(isOrderDeadline ? "deadline order-deadline"
                        : "deadline");
                deadline
                        .setLeft((deadlinePosition - startPixels - DEADLINE_MARK_HALF_WIDTH)
                                + "px");
                result.appendChild(deadline);
                result.appendChild(generateNonWorkableShade(datesMapper,
                        queueElement));
View Full Code Here

        if (advancementEndDate == null) {
            return null;
        }
        Duration durationBetween = new Duration(queueElement.getStartTime()
                .toDateTime().getMillis(), advancementEndDate.toDateTime().getMillis());
        Div progressBar = new Div();
        if (!queueElement.getStartDate().isEqual(advancementEndDate.getDate())) {
            progressBar.setWidth(datesMapper.toPixels(durationBetween) + "px");
            progressBar.setSclass("queue-progress-bar");
        }
        return progressBar;
    }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Div

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.