Package org.openfaces.component.select

Examples of org.openfaces.component.select.TabSetItem


    public DateChooserBean() {
        locales = new ArrayList<TabSetItem>();
        List<LocaleItem> locales = CalendarBean.calendarLocales();
        for (LocaleItem localeItem : locales) {
            TabSetItem tabSetItem = new TabSetItem();
            HtmlOutputText component = (HtmlOutputText) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlOutputText.COMPONENT_TYPE);
            String stringValue = localeItem.toString();
            component.setValue(stringValue);
            tabSetItem.getChildren().add(component);
            tabSetItem.setItemValue(localeItem);
            this.locales.add(tabSetItem);
        }
        selectedLocaleItem = locales.get(0);
    }
View Full Code Here


    }

    public Collection<TabSetItem> getItems() {
        if (items == null) {
            items = new ArrayList<TabSetItem>();
            TabSetItem item;
            HtmlOutputText tabValue;

            item = new TabSetItem();
            item.setItemValue("tServer");
            tabValue = new HtmlOutputText();
            tabValue.setValue("Server");
            item.getChildren().add(tabValue);
            items.add(item);

            item = new TabSetItem();
            item.setItemValue("tDeveloper");
            tabValue = new HtmlOutputText();
            tabValue.setValue("Developer");
            item.getChildren().add(tabValue);
            items.add(item);

            item = new TabSetItem();
            item.setItemValue("tManager");
            tabValue = new HtmlOutputText();
            tabValue.setValue("Manager");
            item.getChildren().add(tabValue);
            items.add(item);

            item = new TabSetItem();
            item.setItemValue("tGuest");
            tabValue = new HtmlOutputText();
            tabValue.setValue("Guest");
            item.getChildren().add(tabValue);
            items.add(item);
        }
        return items;
    }
View Full Code Here

        Calendar tempToDate = getNextMonday();
        tempToDate.add(Calendar.DAY_OF_YEAR, 14);
        toDate = tempToDate.getTime();
        List<LocaleItem> locales = calendarLocales();
        for (LocaleItem localeItem : locales) {
            TabSetItem tabSetItem = new TabSetItem();
            HtmlOutputText component = (HtmlOutputText) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlOutputText.COMPONENT_TYPE);
            component.setValue(localeItem.toString());
            tabSetItem.getChildren().add(component);
            tabSetItem.setItemValue(localeItem);
            this.locales.add(tabSetItem);
        }
        selectedLocaleItem = locales.get(0);
    }
View Full Code Here

    private int selectedImageIndex = 0;

    public DynamicImageByteArrayBean() {
        List<ImageData> images = imageDatas();
        for (ImageData imageItem : images) {
            TabSetItem tabSetItem = new TabSetItem();
            HtmlOutputText component = (HtmlOutputText) FacesContext.getCurrentInstance().getApplication().createComponent(HtmlOutputText.COMPONENT_TYPE);
            component.setValue(imageItem.toString());
            tabSetItem.getChildren().add(component);
            tabSetItem.setItemValue(imageItem);
            imageDatas.add(tabSetItem);
        }
        currentImageData = images.get(0);
    }
View Full Code Here

    }

    private TabSetItem createTabSetItem(String text, UIComponent idGenerationBase, String idSuffix) {
        FacesContext context = FacesContext.getCurrentInstance();
        TabSetItem tabSetItem = Components.createComponent(context,
                TabSetItem.COMPONENT_TYPE, TabSetItem.class, idGenerationBase, idSuffix);
        HtmlOutputText outputText = Components.createOutputText(context, text);
        outputText.setId(Components.generateIdWithSuffix(tabSetItem, "text"));
        tabSetItem.getChildren().add(outputText);
        return tabSetItem;
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.select.TabSetItem

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.