Package com.googlecode.wicketwebbeans.model.api

Examples of com.googlecode.wicketwebbeans.model.api.JTab


        TestBean bean = new TestBean();
       
        // Create the meta data
        JBean jbean = new JBean(TestBean.class)
            .tabs(
                new JTab("General").propertyNames("firstName", "lastName", "idNumber"),
                new JTab("Address")
                    .propertyNames("address1", EMPTY, EMPTY,
                                   "address2", EMPTY, EMPTY, "city", "state", "zip")
            )
            // Customize certain properties from above.
            .properties(
View Full Code Here


    private List<Tab> processTabs(List<ParameterValueAST> values)
    {
        List<Tab> jtabs = new ArrayList<Tab>();
        for (ParameterValueAST value : values) {
            String elementName = value.getValue();
            JTab jtab = new JTab(elementName);
            jtabs.add(jtab);
            for (ParameterAST param : value.getParameters()) {
                if (param.getName().equals(BeanMetaData.PARAM_PROPS)) {
                    jtab.properties( processProps(param.getValues()) );
                }
                else {
                    jtab.add(param.getName(), param.getValuesAsStrings());
                }
            }
        }
       
        return jtabs;
View Full Code Here

TOP

Related Classes of com.googlecode.wicketwebbeans.model.api.JTab

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.