Package com.googlecode.wicketwebbeans.model.api

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


    public CssPage()
    {
        TestBean bean = new TestBean();
       
        // Create the meta data
        JBeans jbeans = new JBeans(
            new JBean(TestBean.class)
                .columns(1)
                .css("greenBeanBorder")
                .propertyNames("firstName", "lastName", "rows")
                .properties( new JProperty("firstName").css("purpleColor") ),
View Full Code Here


    {
        /**
         * NOTE: you take actions away from beans metadata
         * and test the contexts with global actions
         */
        jbeans = new JBeans(
            new JBean(TestBean.class)
                .context("nofirstname")
                .actions(
                    new JAction("goToGlobal").ajax(true)
                )
View Full Code Here

     *  Localizer configuration.
     */
    public BeanMetaData(Class<?> beanClass, String context, Bean bean, Component component,
                    ComponentRegistry componentRegistry, boolean viewOnly)
    {
        this(beanClass, context, bean == null ? null : new JBeans(bean), null, component, componentRegistry, viewOnly,
                        false);
    }
View Full Code Here

            // It's OK not to have a beanprops file. We can deduce the parameters by convention.
            InputStream propsStream = component.getClass().getResourceAsStream(propFileName);
            if (propsStream != null) {
                try {
                    JBeans beans = new BeanPropsParser(propFileName, propsStream).parseToJBeans(this);
                    beanprops = new CachedBeanProps(beans, timestamp);
                    cachedBeanProps.put(cacheKey, beanprops);
                }
                finally {
                    try {
View Full Code Here

     *
     * @return a JBeans object containing the meta data.
     */
    private JBeans processBeans(List<BeanAST> beans)
    {
        JBeans jbeans = new JBeans();
       
        Class<?> beanClass = beanMetaData.getBeanClass();
        String fullName = beanClass.getName();
        String baseName = BeanMetaData.getBaseClassName(beanClass); // Name without pkg but with parent of inner class
        String shortName = beanClass.getSimpleName(); // Short name without parent of inner class

        for (BeanAST bean : beans) {
            String beanName = bean.getName();
            if (shortName.equals(beanName) || baseName.equals(beanName) || fullName.equals(beanName)) {
                jbeans.add( processBean(bean) );
            }
        }
       
        return jbeans;
    }
View Full Code Here

TOP

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

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.