Package org.jboss.ballroom.client.widgets.forms

Examples of org.jboss.ballroom.client.widgets.forms.DefaultGroupRenderer


        editPanel.addStyleName("form-edit-panel");

        RenderMetaData metaData = new RenderMetaData();
        metaData.setNumColumns(numColumns);

        GroupRenderer groupRenderer = new DefaultGroupRenderer();;


        Map<String, FormItem> groupItems = new LinkedHashMap<String, FormItem>();
        for(FormItem item : items)
        {
            groupItems.put(item.getName(), item);
        }

        // edit view
        Widget widget = groupRenderer.render(metaData, "default", groupItems);
        editPanel.add(widget);

        // plain view
        PlainFormView plainView = new PlainFormView(items);
        plainView.setNumColumns(numColumns);
        plainViews.add(plainView);
        viewPanel.add(groupRenderer.renderPlain(metaData, "default", plainView));

        deck.add(editPanel);

        // toggle default view
        toggleViews();
View Full Code Here


            form.setFields(formItems);
            form.setNumColumns(2);
           
            // put Properties Editor in a single column spanning the bottom of the form
            if (handlerType == HandlerType.CUSTOM) form.setFieldsInGroup(Console.CONSTANTS.subsys_logging_handlerProperties(),
                                                                         new DefaultGroupRenderer(),
                                                                         HandlerAttribute.PROPERTIES.getItemForEdit());
           
            handlerForms.put(handlerType.getDisplayName(), form);
        }
View Full Code Here

public class NamedGroupRenderer implements GroupRenderer {

    private DefaultGroupRenderer delegate;

    public NamedGroupRenderer() {
        this.delegate = new DefaultGroupRenderer();
    }
View Full Code Here

        editPanel.addStyleName("form-edit-panel");

        RenderMetaData metaData = new RenderMetaData();
        metaData.setNumColumns(numColumns);

        GroupRenderer groupRenderer = new DefaultGroupRenderer();;


        Map<String, FormItem> groupItems = new LinkedHashMap<String, FormItem>();
        for(FormItem item : items)
        {
            groupItems.put(item.getName(), item);
        }

        // edit view
        Widget widget = groupRenderer.render(metaData, "default", groupItems);
        editPanel.add(widget);

        // plain view
        PlainFormView plainView = new PlainFormView(items);
        plainView.setNumColumns(numColumns);
        plainViews.add(plainView);
        viewPanel.add(groupRenderer.renderPlain(metaData, "default", plainView));

        deck.add(editPanel);

        // toggle default view
        toggleViews();
View Full Code Here

            form.setFields(formItems);
            form.setNumColumns(2);
           
            // put Properties Editor in a single column spanning the bottom of the form
            if (handlerType == HandlerType.CUSTOM) form.setFieldsInGroup(Console.CONSTANTS.subsys_logging_handlerProperties(),
                                                                         new DefaultGroupRenderer(),
                                                                         HandlerAttribute.PROPERTIES.getItemForEdit());
           
            handlerForms.put(handlerType.getDisplayName(), form);
        }
View Full Code Here

TOP

Related Classes of org.jboss.ballroom.client.widgets.forms.DefaultGroupRenderer

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.