Examples of BeanForm


Examples of com.googlecode.wicketwebbeans.containers.BeanForm

    @Override
    protected void onBeforeRender()
    {
        super.onBeforeRender();
        // If we're part of a BeanForm, register ourself with it.
        BeanForm parentBeanForm  = findParent(BeanForm.class);
        if (parentBeanForm != null) {
            this.beanForm = parentBeanForm;
            parentBeanForm.registerComponent(this, (BeanPropertyModel)getDefaultModel(), elementMetaData);

            if (parentBeanForm.getFocusField() != null
                        && parentBeanForm.getFocusField().equals(
                                elementMetaData.getPropertyName())) {

                FormComponentVisitor focusFinder = new FormComponentVisitor();
                visitChildren(focusFinder);
            }
View Full Code Here

Examples of com.googlecode.wicketwebbeans.containers.BeanForm

  {
    if (beanForm == null)
    {
      metaData = beanMetaData != null ? beanMetaData :
          new BeanMetaData(bean.getClass(), null, this, null, false);
      beanForm = new BeanForm("beanForm", bean, metaData);
      add(beanForm);
    }
    super.onBeforeRender()// mandatory if overriding
  }
View Full Code Here

Examples of com.googlecode.wicketwebbeans.containers.BeanForm

     */
    @Override
    protected void onBeforeRender()
    {
        super.onBeforeRender();
        BeanForm parentBeanForm  = findParent(BeanForm.class);
        if (parentBeanForm != null) {
            // Only set this if we're in a BeanForm.
            decorator = BeanForm.AjaxBusyDecorator.INSTANCE;

            beanForm = parentBeanForm;

            if (parentBeanForm.getFocusField() != null
                    && parentBeanForm.getFocusField().equals(elementMetaData.getPropertyName())) {

                AbstractSubmitLinkVisitor focusFinder = new AbstractSubmitLinkVisitor();
                visitChildren(focusFinder);
            }

View Full Code Here

Examples of org.ufacekit.ui.beanform.BeanForm

        UIFactory ui = root.getFactory();
        UIComposite splitter = ui.newHorizontalSplitPanel(root, new GridLayoutData(GridLayoutData.ALIGN_CENTER, GridLayoutData.ALIGN_CENTER));

        UITable tree = createEndpointTableUI(splitter);

        BeanForm selectionForm = new BeanForm();

        UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
        selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getBody(String.class);
            }
        }));
        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getHeaders().toString();
            }
        }));

        selectionForm.bind(tree.getSelectionObservable());
    }
View Full Code Here

Examples of org.ufacekit.ui.beanform.BeanForm

        selectionForm.bind(tree.getSelectionObservable());
    }

    protected UITable createEndpointTableUI(UIComposite root) {
        BeanForm form = new BeanForm();

        UIFactory ui = root.getFactory();
        AttributeDescriptor bindingData = form.detailList("endpoints", Collection.class);

        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                BrowsableEndpoint endpoint = (BrowsableEndpoint) object;
                return endpoint.getEndpointUri();
            }
        }));

        WritableValue value = ModelHelper.createWritableValue(this);
        form.bind(value);
        return table;
    }
View Full Code Here

Examples of org.ufacekit.ui.beanform.BeanForm

        UIFactory ui = root.getFactory();
        UIComposite splitter = ui.newHorizontalSplitPanel(root, new GridLayoutData(GridLayoutData.ALIGN_CENTER, GridLayoutData.ALIGN_CENTER));

        UITable tree = createEndpointTableUI(splitter);

        BeanForm selectionForm = new BeanForm();

        UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
        selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getBody(String.class);
            }
        }));
        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                Exchange exchange = (Exchange) object;
                return exchange.getIn().getHeaders().toString();
            }
        }));

        selectionForm.bind(tree.getSelectionObservable());
    }
View Full Code Here

Examples of org.ufacekit.ui.beanform.BeanForm

        selectionForm.bind(tree.getSelectionObservable());
    }

    protected UITable createEndpointTableUI(UIComposite root) {
        BeanForm form = new BeanForm();

        UIFactory ui = root.getFactory();
        AttributeDescriptor bindingData = form.detailList("endpoints", Collection.class);

        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                BrowsableEndpoint endpoint = (BrowsableEndpoint) object;
                return endpoint.getEndpointUri();
            }
        }));

        WritableValue value = ModelHelper.createWritableValue(this);
        form.bind(value);
        return table;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.