Examples of CompoundPropertyModel


Examples of org.apache.wicket.model.CompoundPropertyModel

    public GlobalSettingsPage() {
        final IModel globalInfoModel = getGlobalInfoModel();
        final IModel loggingInfoModel = getLoggingInfoModel();
       
        Form form = new Form("form", new CompoundPropertyModel(globalInfoModel));

        add(form);

        form.add(new CheckBox("verbose"));
        form.add(new CheckBox("verboseExceptions"));
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

            public Object load() {
                return getGeoServer().getService(getServiceClass());
            }
        };
       
        Form form = new Form( "form", new CompoundPropertyModel(infoModel));
        add(form);
       
        form.add(new Label("service.enabled", new StringResourceModel("service.enabled", this, null, new Object[]{
            getServiceName()
        })));
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    public AbstractStylePage(StyleInfo style) {
        initUI(style);
    }

    protected void initUI(StyleInfo style) {
        styleForm = new Form("form", new CompoundPropertyModel(style != null ? new StyleDetachableModel(style) : getCatalog().getFactory().createStyle())) {
            @Override
            protected void onSubmit() {
                onStyleFormSubmit();
            }
        };
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

       
        form.add( new CRSPanel("crs", new Model()) );
    }
   
    public CRSPanelTestPage(Object o) {
        Form form = new Form("form", new CompoundPropertyModel( o ) );
        add(form);
       
        form.add( new CRSPanel("crs") );
    }
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    }
   
    static class GMLPanel extends Panel {

        public GMLPanel(String id, IModel gmlModel) {
            super(id, new CompoundPropertyModel(gmlModel));
           
            //srsNameStyle
            List<GMLInfo.SrsNameStyle> choices =
                Arrays.asList(SrsNameStyle.values());
            DropDownChoice srsNameStyle = new DropDownChoice("srsNameStyle", choices);
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

            String msg = (String) new ResourceModel(
                    "AbstractDataAccessPage.cantGetDataStoreFactory").getObject();
            throw new IllegalArgumentException(msg);
        }

        final IModel model = new CompoundPropertyModel(storeInfo);

        final Form paramsForm = new Form("dataStoreForm", model);
        add(paramsForm);

        paramsForm.add(new Label("storeType", dsFactory.getDisplayName()));
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    RolesFormComponent rolesForComponent;

    Form form;

    public AbstractDataAccessRulePage(DataAccessRule rule) {
        setModel(new CompoundPropertyModel(new DataAccessRule(rule)));

        // build the form
        form = new Form("ruleForm");
        add(form);
        form.add(workspace = new DropDownChoice("workspace", getWorkspaceNames()));
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

        wsModel = new WorkspaceDetachableModel( ws );

        NamespaceInfo ns = getCatalog().getNamespaceByPrefix( ws.getName() );
        nsModel = new NamespaceDetachableModel(ns);
       
        Form form = new Form( "form", new CompoundPropertyModel( nsModel ) ) {
            protected void onSubmit() {
                try {
                    saveWorkspace();
                } catch (RuntimeException e) {
                    error(e.getMessage());
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    protected AbstractUserPage(UserUIModel user) {
        final Model userModel = new Model(user);

        // build the form
        Form form = new Form("userForm");
        form.setModel(new CompoundPropertyModel(userModel));
        setModel(userModel);
        add(form);
       
        // populate the form editing components
        username = new TextField("username");
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    RolesFormComponent rolesForComponent;

    Form form;

    public AbstractServiceAccessRulePage(ServiceAccessRule rule) {
        setModel(new CompoundPropertyModel(new ServiceAccessRule(rule)));

        // build the form
        form = new Form("ruleForm");
        add(form);
        form.add(service = new DropDownChoice("service", getServiceNames()));
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.