Package org.zkoss.zul

Examples of org.zkoss.zul.Image$ExtraCtrl


      BufferedImage bi = chart.createBufferedImage(chartWidth, chartHeight, BufferedImage.TRANSLUCENT, null);
      byte[] bytes = EncoderUtil.encode(bi, ImageFormat.PNG, true);

      AImage chartImage = new AImage("Stacked Bar Chart", bytes);

      Image img = new Image();
      img.setContent(chartImage);
      img.setParent(div_chartArea);

    } else {

      div_chartArea.getChildren().clear();
View Full Code Here


      BufferedImage bi = chart.createBufferedImage(chartWidth, chartHeight, BufferedImage.TRANSLUCENT, null);
      byte[] bytes = EncoderUtil.encode(bi, ImageFormat.PNG, true);

      AImage chartImage = new AImage("Stacked Bar Chart 3D", bytes);

      Image img = new Image();
      img.setContent(chartImage);
      img.setParent(div_chartArea);

    } else {

      div_chartArea.getChildren().clear();
View Full Code Here

      BufferedImage bi = chart.createBufferedImage(chartWidth, chartHeight, BufferedImage.TRANSLUCENT, null);
      byte[] bytes = EncoderUtil.encode(bi, ImageFormat.PNG, true);

      AImage chartImage = new AImage("Line Bar Chart", bytes);

      Image img = new Image();
      img.setContent(chartImage);
      img.setParent(div_chartArea);

    } else {

      div_chartArea.getChildren().clear();
View Full Code Here

      BufferedImage bi = chart.createBufferedImage(chartWidth, chartHeight, BufferedImage.TRANSLUCENT, null);
      byte[] bytes = EncoderUtil.encode(bi, ImageFormat.PNG, true);

      AImage chartImage = new AImage("Line Bar Chart 3D", bytes);

      Image img = new Image();
      img.setContent(chartImage);
      img.setParent(div_chartArea);

    } else {

      div_chartArea.getChildren().clear();
View Full Code Here

    private void setBreadcrumbs(Component comp) {
        Component breadcrumbs = comp.getPage().getFellow("breadcrumbs");
        if (breadcrumbs.getChildren() != null) {
            breadcrumbs.getChildren().clear();
        }
        breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
        breadcrumbs.appendChild(new Label(_("My account")));
        breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
        breadcrumbs.appendChild(new Label(_("My dashboard")));
        breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
        breadcrumbs.appendChild(new Label(_("Personal timesheet")));
    }
View Full Code Here

            protected void afterShowAction() {
                limitingResourcesControllerGlobal.reload();
                if (breadcrumbs.getChildren() != null) {
                    breadcrumbs.getChildren().clear();
                }
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(
                        _("Queue-based Resources Planning")));
            }
        };
    }
View Full Code Here

                    setFiltersUnchanged();
                }

                companyPlanningController.setConfigurationForPlanner();
                breadcrumbs.getChildren().clear();
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(_("Projects Planning")));
            }
        };
    }
View Full Code Here

                        orderPlanningController);

                if (breadcrumbs.getChildren() != null) {
                    breadcrumbs.getChildren().clear();
                }
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(_("Project Scheduling")));
                if (mode.isOf(ModeType.ORDER)) {

                    orderPlanningController.getOrderCRUDController()
                            .checkUserCanRead(order);
                    Label nameLabel = new Label(order.getName());
                    nameLabel.setTooltiptext(order.getName() + "."
                            + order.getDescription());
                    nameLabel.setMaxlength(MAX_ORDERNAME_LENGHT);

                    Label schedulingStateLabel = new Label(_(order.getState()
                            .toString()));

                    schedulingStateLabel.setSclass("scheduling-state "
                            + order.getSchedulingState().getCssClass());
                    schedulingStateLabel.setTooltiptext(_(order
                            .getSchedulingState().getStateName()));

                    breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                    breadcrumbs.appendChild(nameLabel);
                    breadcrumbs.appendChild(schedulingStateLabel);
                }

            }
View Full Code Here

            private boolean firstTime = true;

            @Override
            protected void afterShowAction() {
                breadcrumbs.getChildren().clear();
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(getSchedulingLabel()));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(_("Advanced Allocation")));
                breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
                breadcrumbs.appendChild(new Label(mode.getOrder().getName()));

                if (firstTime) {
                    firstTime = false;
                    return;
View Full Code Here

            BigDecimal overtime = dataToRender.getRatios().getOvertimeRatio();
            Label overtimeLabel = new Label(overtime.toString());
            cellOvertime.appendChild(overtimeLabel);
            if (!overtime.equals(BigDecimal.ZERO.setScale(2))) {
                overtimeLabel.setStyle("position: relative; top: -12px");
                Image img = new Image(
                        "/dashboard/img/value-meaning-negative.png");
                img.setStyle("width: 25px; position: relative; top: -5px");
                cellOvertime.appendChild(img);
            }
            item.appendChild(cellOvertime);
        }
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Image$ExtraCtrl

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.