Package com.googlecode.wicketwebbeans.model.api

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


                    .propertyNames("address1", EMPTY, EMPTY,
                                   "address2", EMPTY, EMPTY, "city", "state", "zip")
            )
            // Customize certain properties from above.
            .properties(
                new JProperty("firstName").required(true).maxLength(10),
                new JProperty("lastName").required(true)
            )
            .actions( new JAction("save").confirm("Are you sure you want to save?") );
       
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, jbean, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
View Full Code Here


        JBeans jbeans = new JBeans(
            new JBean(TestBean.class)
                .columns(1)
                .css("greenBeanBorder")
                .propertyNames("firstName", "lastName", "rows")
                .properties( new JProperty("firstName").css("purpleColor") ),
            new JBean(RowBean.class)
                .css("redBeanBorder")
                .dynamicCss("getRowCss")
                .properties( new JProperty("description").dynamicCss("getDescriptionCss") )
        );
       
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, jbeans, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
View Full Code Here

                .context("nofirstname")
                .actions(
                    new JAction("goToGlobal").ajax(true)
                )
                .properties(
                    new JProperty("action.goToGlobal"),
                    new JProperty("-action.clear"),
                    new JProperty("-action.global"),
                    new JProperty("firstName"),
                    new JProperty("lastName"),
                    new JProperty("operand1"),
                    new JProperty("operand2"),
                    new JProperty("result"),
                    new JProperty("number")
                ),
            new JBean(TestBean.class)
                .context("clearfirstname")
                .actions(
                    new JAction("clear").ajax(true)
                )
                .properties(
                    new JProperty("-action.goToGlobal"),
                    new JProperty("action.clear"),
                    new JProperty("-action.global"),
                    new JProperty("firstName").viewOnly(true),
                    new JProperty("lastName").viewOnly(true),
                    new JProperty("operand1"),
                    new JProperty("operand2"),
                    new JProperty("-result"),
                    new JProperty("-number")
                ),

            new JBean(TestBean.class)
                .context("global")
                .properties(
                    new JProperty("-action.goToGlobal"),
                    new JProperty("-action.clear"),
                    new JProperty("firstName"),
                    new JProperty("lastName").viewOnly(true),
                    new JProperty("operand1").viewOnly(true),
                    new JProperty("operand2").viewOnly(true),
                    new JProperty("result").viewOnly(true),
                    new JProperty("number").viewOnly(true)
                )

        );
        meta = new BeanMetaData(bean.getClass(), getContext(), jbeans, this, null, false);
        form = new BeanForm("beanForm", bean, meta);
View Full Code Here

    List<Property> processProps(List<ParameterValueAST> values)
    {
        List<Property> jproperties = new ArrayList<Property>();
        for (ParameterValueAST value : values) {
            String elementName = value.getValue();
            JProperty jproperty = new JProperty(elementName);
            jproperties.add(jproperty);
            for (ParameterAST param : value.getParameters()) {
                jproperty.add(param.getName(), param.getValuesAsStrings());
            }
        }
       
        return jproperties;
    }
View Full Code Here

TOP

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

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.