Package org.openfaces.component.input

Examples of org.openfaces.component.input.DropDownItem


        confirmationDetails = "Детали";
        confirmationOkButton = "Выполнить";
    }

    private DropDownItem createFontColorItem(String value) {
        DropDownItem currentItem = new DropDownItem();
        currentItem.setValue(value);
        return currentItem;
    }
View Full Code Here


        confirmationDetails = "Details";
        confirmationOkButton = "Execute";
    }

    private DropDownItem createFontColorItem(String value) {
        DropDownItem currentItem = new DropDownItem();
        currentItem.setValue(value);
        return currentItem;
    }
View Full Code Here

        subNode21 = "Синий";
        subNode22 = "Фиолетовый";
    }

    private DropDownItem createFontColorItem(String value) {
        DropDownItem fontColor = new DropDownItem();
        fontColor.setValue(value);
        HtmlOutputText text = new HtmlOutputText();
        text.setValue(value);
        fontColor.getChildren().add(text);
        return fontColor;
    }
View Full Code Here

        }
    }

    private DropDownItem createFontColorItem() {
        Random rand = new Random();
        DropDownItem fontColor = new DropDownItem();
        HtmlOutputText text = new HtmlOutputText();
        String value = "Item #" + rand.nextInt(37000);
        text.setValue(value);
        text.setStyle("padding-left: 10px;");
        fontColor.setValue(value);
        fontColor.getChildren().add(text);
        return fontColor;
    }
View Full Code Here

    }

    public List<DropDownItem> getDropDownList() {
        List<DropDownItem> tempDropDownList = new ArrayList<DropDownItem>();
        for (TestTableItem temp : tableTestCollection) {
            DropDownItem tempDropDownItem = new DropDownItem();
            tempDropDownItem.setValue(temp.getSecondColumn());
            tempDropDownList.add(tempDropDownItem);
        }
        return tempDropDownList;
    }
View Full Code Here

        }

        List<Object> availableItems = new ArrayList<Object>(possibleValuesCollection);
        List<DropDownItem> itemList = new ArrayList<DropDownItem>(availableItems.size());
        for (Object itemObj : availableItems) {
            DropDownItem item = createDropDownItem(context, itemObj);
            itemList.add(item);
        }
        DropDownItem allRecordsItem = createDropDownItem(context, null);
        String allRecordsCriterionName = filter.getAllRecordsText();
        HtmlOutputText outputText = Components.createOutputText(context, allRecordsCriterionName);
        String predefinedCriterionClass = getPredefinedCriterionClass(context, filter);
        outputText.setStyleClass(predefinedCriterionClass);
        allRecordsItem.getChildren().add(outputText);
        itemList.add(0, allRecordsItem);
        dropDownItems.setValue(itemList);
        List<UIComponent> children = field.getChildren();
        children.clear();
        children.add(dropDownItems);
View Full Code Here

    protected String[] getCopiedFilterAttributes() {
        return DROP_DOWN_FIELD_ATTRIBUTES;
    }

    private DropDownItem createDropDownItem(FacesContext context, Object value) {
        DropDownItem item = (DropDownItem) context.getApplication().createComponent(DropDownItem.COMPONENT_TYPE);
        item.setItemValue(value);
        return item;
    }
View Full Code Here

        }
    }

    private DropDownItem createFontColorItem() {
        Random rand = new Random();
        DropDownItem fontColor = new DropDownItem();
        HtmlOutputText text = new HtmlOutputText();
        String value = "Item #" + rand.nextInt(37000);
        text.setValue(value);
        text.setStyle("padding-left: 10px;");
        fontColor.setValue(value);
        fontColor.getChildren().add(text);
        return fontColor;
    }
View Full Code Here

                "resourceField", DropDownField.class);

        List<TimetableResource> resources = (List<TimetableResource>) dialog.getAttributes().get(
                DayTableRenderer.EVENTEDITOR_RESOURCES_ATTR);
        for (TimetableResource resource : resources) {
            field.getChildren().add(new DropDownItem(resource.getName()));
        }

        field.setCustomValueAllowed(false);
        return field;
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.input.DropDownItem

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.