Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.GeoServerDialog$DialogDelegate


        initUI(store);
    }

    @Override
    void initUI(CoverageStoreInfo store) {
        dialog = new GeoServerDialog("dialog");
        add(dialog);
       
        super.initUI(store);

        if (store.getId() != null) {
View Full Code Here


            final IModel paramLabelModel, final boolean required, IValidator... validators) {
        super(id, paramValue, paramLabelModel, required, validators);

        // override the dialog component
        remove(dialog);
        add(gsDialog = new GeoServerDialog("dialog"));
    }
View Full Code Here

        };
        table.setOutputMarkupId(true);
        add(table);
       
        // the confirm dialog
        add(dialog = new GeoServerDialog("dialog"));
        setHeaderPanel(headerPanel());
    }
View Full Code Here

        };
        table.setOutputMarkupId(true);
        add(table);

        // the confirm dialog
        add(dialog = new GeoServerDialog("dialog"));
        dialog.setInitialWidth(360);
        dialog.setInitialHeight(180);
        setHeaderPanel(headerPanel());
    }
View Full Code Here

    @Test
    public void testInDialog() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new GeoServerDialog(id);
            }
        }));
       
        tester.assertRenderedPage(FormTestPage.class);

        tester.debugComponentTrees();
       
        GeoServerDialog dialog = (GeoServerDialog) tester.getComponentFromLastRenderedPage("form:panel");
        assertNotNull(dialog);

        dialog.showOkCancel(new AjaxRequestTarget(tester.getLastRenderedPage()),
            new DialogDelegate() {
                @Override
                protected Component getContents(String id) {
                    return new GeoServerFileChooser(id, new Model(root));
                }

                @Override
                protected boolean onSubmit(AjaxRequestTarget target, Component contents) {
                    assertNotNull(contents);
                    assertTrue(contents instanceof GeoServerFileChooser);
                    return true;
                }
        });
       
        dialog.submit(new AjaxRequestTarget(tester.getLastRenderedPage()));
    }
View Full Code Here

        };
        table.setOutputMarkupId(true);
        add(table);

        // the confirm dialog
        add(dialog = new GeoServerDialog("dialog"));
        dialog.setInitialWidth(360);
        dialog.setInitialHeight(180);
        setHeaderPanel(headerPanel());

        Long imageIOFileCachingThreshold = ImageIOExt.getFilesystemThreshold();
View Full Code Here

        this.returnPageClass = EoLayerGroupPage.class;
        lgModel = new LayerGroupDetachableModel( layerGroup );
        layerGroupId = layerGroup.getId();
       
        add(popupWindow = new ModalWindow("popup"));
        add(dialog = new GeoServerDialog("dialog"));

        Form form = new Form( "form", new CompoundPropertyModel( lgModel ) ) {
            @Override
            public IConverter getConverter(Class<?> type) {
                if (LayerInfo.class.isAssignableFrom(type)) {
View Full Code Here

        initUI(store);
    }

    protected void initUI(final DataStoreInfo dataStoreInfo) {
        // the confirm dialog
        dialog = new GeoServerDialog("dialog");
        add(dialog);
       
        super.initUI(dataStoreInfo);

        if (dataStoreInfo.getId() != null) {
View Full Code Here

    protected PasswordParamPanel password;
   
    void initUI(final WMSStoreInfo store) {
        IModel model = new Model(store);
       
        add(dialog = new GeoServerDialog("dialog"));

        // build the form
        form = new Form("form", model);
        add(form);
View Full Code Here

            }
        }
        cachedLayerExistedInitially = tileLayer != null;

        // UI construction phase
        add(confirmRemovalDialog = new GeoServerDialog("confirmRemovalDialog"));
        confirmRemovalDialog.setInitialWidth(360);
        confirmRemovalDialog.setInitialHeight(180);

        add(new Label("createTileLayerLabel", createTileLayerLabelModel));
View Full Code Here

TOP

Related Classes of org.geoserver.web.wicket.GeoServerDialog$DialogDelegate

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.