Package org.zkoss.zul

Examples of org.zkoss.zul.Listcell.appendChild()


            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);
        }

        private String calculateRgba(BigDecimal avaliability) {
View Full Code Here


        Resource resource = (Resource) item.getValue();
        org.zkoss.zul.Label typeLabel = new org.zkoss.zul.Label(
                getType(resource));

        Listcell typeResourceCell = new Listcell();
        typeResourceCell.appendChild(typeLabel);
        item.appendChild(typeResourceCell);
    }

    private void appendLimiting(final Listitem item) {
        final Resource resource = (Resource) item.getValue();
View Full Code Here

        final Checkbox limitingCheckbox = new Checkbox();
        limitingCheckbox.setChecked(resource.isLimitingResource());
        limitingCheckbox.setDisabled(true);

        Listcell limitingResourceCell = new Listcell();
        limitingResourceCell.appendChild(limitingCheckbox);
        item.appendChild(limitingResourceCell);
    }

    private void appendName(final Listitem item) {
        Resource resource = (Resource) item.getValue();
View Full Code Here

        Resource resource = (Resource) item.getValue();
        org.zkoss.zul.Label nameLabel = new org.zkoss.zul.Label(
                getName(resource));

        Listcell nameResourceCell = new Listcell();
        nameResourceCell.appendChild(nameLabel);
        item.appendChild(nameResourceCell);
    }

    private void appendCode(Listitem item) {
        Resource resource = (Resource) item.getValue();
View Full Code Here

        Resource resource = (Resource) item.getValue();
        org.zkoss.zul.Label codeLabel = new org.zkoss.zul.Label(resource
                .getCode());

        Listcell codeResourceCell = new Listcell();
        codeResourceCell.appendChild(codeLabel);
        item.appendChild(codeResourceCell);
    }

    private void appendDeleteButton(final Listitem item) {
        Button delete = new Button("", "/common/img/ico_borrar1.png");
View Full Code Here

                onRemoveResource((Resource) item.getValue());
            }
        });

        Listcell deleteResourceCell = new Listcell();
        deleteResourceCell.appendChild(delete);
        item.appendChild(deleteResourceCell);
    }

    private String getName(Resource resource) {
        if ((resource instanceof Worker) && (((Worker) resource).isReal())) {
View Full Code Here

            appendOperations(item, stretch);
        }

        private void appendChild(Listitem item, Component component) {
            Listcell listcell = new Listcell();
            listcell.appendChild(component);
            item.appendChild(listcell);
        }

        private void appendDate(Listitem item, final Stretch stretch) {
            final Datebox tempDatebox = new Datebox();
View Full Code Here

                                reloadCurrentWindow();
                            }

                        });

                inheritedListcell.appendChild(inheritedCheckbox);
            }
            item.appendChild(inheritedListcell);
        }

        private void addLabelCell(Listitem item, final Days day) {
View Full Code Here

        private void addLabelCell(Listitem item, final Days day) {
            String days[] = DateFormatSymbols.getInstance(Locales.getCurrent())
                    .getWeekdays();

            Listcell labelListcell = new Listcell();
            labelListcell.appendChild(new Label(days[day.getIndex()]));
            item.appendChild(labelListcell);
        }

        private void addNormalDurationCell(Listitem item,
                EffortDurationPicker normalDurationPicker) {
View Full Code Here

        }

        private void addNormalDurationCell(Listitem item,
                EffortDurationPicker normalDurationPicker) {
            Listcell normalEffortCell = new Listcell();
            normalEffortCell.appendChild(normalDurationPicker);
            item.appendChild(normalEffortCell);
        }

        private void addExtraEffortCell(Listitem item,
                EffortDurationPicker extraDurationPicker, Checkbox checkbox) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.