Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.GeoServerAjaxFormLink


        };
    }

    GeoServerAjaxFormLink computeLatLonBoundsLink(final Form refForm,
            final EnvelopePanel nativeBBox, final EnvelopePanel latLonPanel) {
        return new GeoServerAjaxFormLink("computeLatLon", refForm) {

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                // perform manual processing of the required fields
                nativeBBox.processInput();
View Full Code Here


                    }
                };
            }
        });*/
       
        form.add(new GeoServerAjaxFormLink("revert", form) {
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
               
            }
        });
View Full Code Here

            }
        };
    }
   
    Component validateLink() {
        return new GeoServerAjaxFormLink("validate", styleForm) {
           
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                editor.validate();
                List<Exception> errors = validateSLD();
View Full Code Here

            }
           
        };
        attributePanel.add(attributes);
       
        GeoServerAjaxFormLink reload = new GeoServerAjaxFormLink("reload") {
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                GeoServerApplication app = (GeoServerApplication) getApplication();
               
                FeatureTypeInfo ft = (FeatureTypeInfo)getResourceInfo();
                app.getCatalog().getResourcePool().clear(ft);
                app.getCatalog().getResourcePool().clear(ft.getStore());
                target.addComponent(attributePanel);
            }
        };
        attributePanel.add(reload);
       
        GeoServerAjaxFormLink warning = new GeoServerAjaxFormLink("reloadWarning") {
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                reloadWarningDialog.show(target);
            }
        };
View Full Code Here

        form.add(crsPanel = (crs != null) ? new CRSPanel( "crs", crs ) : new CRSPanel( "crs", new Model() ));
        crsPanel.setOutputMarkupId( true );
        crsPanel.setRequired(true);
       
        form.add(new GeoServerAjaxFormLink( "generateBounds") {
            @Override
            public void onClick(AjaxRequestTarget target, Form form) {
                // build a layer group with the current contents of the group
                LayerGroupInfo lg = getCatalog().getFactory().createLayerGroup();
                for ( LayerGroupEntry entry : lgEntryPanel.getEntries() ) {
View Full Code Here

                return new DemoRequestResponse(new Model(request));
            }
        });

        // the describe process link
        final GeoServerAjaxFormLink describeLink = new GeoServerAjaxFormLink("describeProcess") {

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                processChoice.processInput();
                if (execute.processName != null) {
View Full Code Here

        } else {
            newView = true;
        }
       
        // the links to refresh, add and remove a parameter
        form.add(new GeoServerAjaxFormLink("guessParams") {
           
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                sqlEditor.processInput();
                parameters.processInputs();
                if (sql != null && !"".equals(sql.trim())) {
                    paramProvider.refreshFromSql(sql);
                    target.addComponent(parameters);
                }
            }
        });
        form.add(new GeoServerAjaxFormLink("addNewParam") {
           
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                paramProvider.addParameter();
                target.addComponent(parameters);
            }
        });
        form.add(new GeoServerAjaxFormLink("removeParam") {
           
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                paramProvider.removeAll(parameters.getSelection());
                parameters.clearSelection();
View Full Code Here

            }
        });
    }

    private GeoServerAjaxFormLink refreshLink() {
        return new GeoServerAjaxFormLink("refresh") {

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                sqlEditor.processInput();
                parameters.processInputs();
View Full Code Here

        };
    }

    Component editAttributeLink(final IModel itemModel) {
        GeoServerAjaxFormLink link = new GeoServerAjaxFormLink("link") {

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                AttributeDescription attribute = (AttributeDescription) itemModel.getObject();
                setResponsePage(new AttributeEditPage(attribute, NewFeatureTypePage.this));
            }

        };
        link.add(new Label("name", new PropertyModel(itemModel, "name")));
        return link;
    }
View Full Code Here

    protected Component headerPanel() {
        Fragment header = new Fragment(HEADER_PANEL, "header", this);

        // the add button
        header.add(new GeoServerAjaxFormLink("addNew", form) {

            @Override
            public void onClick(AjaxRequestTarget target, Form form) {
                AttributeDescription attribute = new AttributeDescription();
                setResponsePage(new AttributeNewPage(attribute, NewFeatureTypePage.this));
            }
        });

        header.add(new GeoServerAjaxFormLink("removeSelected", form) {

            @Override
            public void onClick(AjaxRequestTarget target, Form form) {
                attributesProvider.removeAll(attributeTable.getSelection());
                attributeTable.clearSelection();
View Full Code Here

TOP

Related Classes of org.geoserver.web.wicket.GeoServerAjaxFormLink

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.