Package org.rhq.core.domain.common.composite

Examples of org.rhq.core.domain.common.composite.IntegerOptionItem


            return new ArrayList<IntegerOptionItem>();
        }

        List<IntegerOptionItem> results = new ArrayList<IntegerOptionItem>();
        for (Resource next : resourceOrder) {
            results.add(new IntegerOptionItem(next.getId(), next.getName()));
        }

        return results;
    }
View Full Code Here


    public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String string) {
        int index = string.indexOf(DELIMITER);
        int id = Integer.parseInt(string.substring(0, index));
        String displayName = string.substring(index + 1);
        return new IntegerOptionItem(id, displayName);
    }
View Full Code Here

        return new IntegerOptionItem(id, displayName);
    }

    @SuppressWarnings("unchecked")
    public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object object) {
        IntegerOptionItem composite = (IntegerOptionItem) object;
        return composite.getId() + String.valueOf(DELIMITER) + composite.getDisplayName();
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.common.composite.IntegerOptionItem

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.