Package org.gridsphere.provider.portletui.beans

Examples of org.gridsphere.provider.portletui.beans.ListBoxItemBean


        List requests = accountService.getAccountRequestsByStatus(statusType);
        setOrderedOids(requests);

        statusTypeBean.clear();
        statusTypeBean.setMultipleSelection(false);
        ListBoxItemBean itemAll = new ListBoxItemBean();
        itemAll.setName("ALL");
        itemAll.setValue("ALL");
        itemAll.setSelected("ALL".equals(statusType));
        statusTypeBean.addBean(itemAll);
        EnumSet allStatus = EnumSet.allOf(AccountRequest.Status.class);
        for (Iterator itr = allStatus.iterator(); itr.hasNext(); ) {
            AccountRequest.Status status = (AccountRequest.Status)itr.next();
            String name = status.toString();
            ListBoxItemBean item = new ListBoxItemBean();
            item.setName(name);
            item.setValue(name);
            item.setSelected(name.equals(statusType));
            statusTypeBean.addBean(item);
        }

        req.setAttribute("requests", requests);
View Full Code Here


                value = bundle.getString(name);
            } catch (MissingResourceException e) {
                log.error(e.getMessage(), e);
                value = name;
            }
            ListBoxItemBean item = new ListBoxItemBean();
            item.setName(name);
            item.setValue(value);
            item.setSelected(false);
            target.addBean(item);
        }
    }
View Full Code Here

TOP

Related Classes of org.gridsphere.provider.portletui.beans.ListBoxItemBean

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.