Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.GeoServerAjaxFormLink


            protected void onUpdate(AjaxRequestTarget target) {
                target.addComponent(tileMatrixSetEditor);
            }
        });

        addLevelLink = new GeoServerAjaxFormLink("addZoomLevel", form) {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                addZoomLevel(target);
View Full Code Here


                : height);
    }

    private Component computeBoundsLink(Form<GridSetInfo> form) {

        GeoServerAjaxFormLink link = new GeoServerAjaxFormLink("computeBounds", form) {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                computeBounds();
View Full Code Here

                }

                doReturn();
            }
        });
        form.add(new GeoServerAjaxFormLink("cancel") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                doReturn();
View Full Code Here

                }

                doReturn();
            }
        });
        form.add(new GeoServerAjaxFormLink("cancel") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onClick(AjaxRequestTarget target, @SuppressWarnings("rawtypes") Form form) {
                doReturn();
View Full Code Here

        availableGridSets = new DropDownChoice<String>("availableGridsets", new Model<String>(),
                availableModel);
        availableGridSets.setOutputMarkupId(true);
        add(availableGridSets);

        GeoServerAjaxFormLink addGridsubsetLink = new GeoServerAjaxFormLink("addGridset") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                availableGridSets.processInput();

                final String selectedGridset = availableGridSets.getModelObject();
                if (null == selectedGridset) {
                    return;
                }

                List<String> choices = new ArrayList<String>(availableGridSets.getChoices());
                choices.remove(selectedGridset);
                availableGridSets.setChoices(choices);
                availableGridSets.setEnabled(!choices.isEmpty());

                List<String> selectedIds = selection.getObject();
                selectedIds.add(selectedGridset);
                // Execute setPageable() in order to re-create the inner record list updated.
                defaultGridsetsTable.setPageable(false);
                target.addComponent(defaultGridsetsTable);
                target.addComponent(availableGridSets);
            }
        };
        addGridsubsetLink.add(new Icon("addIcon", GWCIconFactory.ADD_ICON));
        add(addGridsubsetLink);

    }
View Full Code Here

            }
        };
    }
   
    Component validateLink() {
        return new GeoServerAjaxFormLink("validate", styleForm) {
           
            @Override
            protected void onClick(AjaxRequestTarget target, Form form) {
                editor.processInput();
View Full Code Here

            };
        };
    }
   
    Component previewLink() {
        return new GeoServerAjaxFormLink("preview", styleForm) {

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

        };
        targetPanel.setRequired(true);
        form.add(targetPanel);
       
        // The link showing
        wktLink = new GeoServerAjaxFormLink("wkt", form) {
            @Override
            public void onClick(AjaxRequestTarget target, Form form) {
                popupWindow.setInitialHeight(525);
                popupWindow.setInitialWidth(525);
                popupWindow.setContent(new WKTPanel(popupWindow.getContentId()));
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.