Package org.geoserver.inspire

Examples of org.geoserver.inspire.UniqueResourceIdentifier


                    GeoServerAjaxFormLink removeLink = new GeoServerAjaxFormLink("remove") {

                        @Override
                        protected void onClick(AjaxRequestTarget target, Form form) {
                            UniqueResourceIdentifiers identifiers = identifiersModel.getObject();
                            UniqueResourceIdentifier sdi = (UniqueResourceIdentifier) itemModel
                                    .getObject();
                            identifiers.remove(sdi);
                            target.addComponent(container);
                        }
                    };
                    removeFragment.add(removeLink);
                    return removeFragment;
                }
                return null;
            }
        };
        identifiers.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());
        identifiers.setPageable(false);
        identifiers.setSortable(false);
        identifiers.setFilterable(false);
        container.add(identifiers);

        // add new link button
        button = new AjaxButton("addIdentifier") {

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form form) {
                UniqueResourceIdentifiers identifiers = identifiersModel.getObject();
                identifiers.add(new UniqueResourceIdentifier());

                target.addComponent(container);
            }
           
            @Override
View Full Code Here

TOP

Related Classes of org.geoserver.inspire.UniqueResourceIdentifier

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.