Package org.geoserver.web.services

Examples of org.geoserver.web.services.ServiceMenuPageInfo


                            target.addComponent(link);
                        }
                    };
                    item.add(enabled);
                   
                    ServiceMenuPageInfo info = service.adminPage;
                   
                    link.add(new AttributeModifier("title", true,
                        new StringResourceModel(info.getDescriptionKey(), (Component) null, null)));
                    link.add(new Label("link.label",
                        new StringResourceModel(info.getTitleKey(), (Component) null, null)));
                   
                    Image image;
                    if(info.getIcon() != null) {
                        image = new Image("link.icon",
                            new ResourceReference(info.getComponentClass(), info.getIcon()));
                    } else {
                        image = new Image("link.icon",
                            new ResourceReference(GeoServerBasePage.class, "img/icons/silk/wrench.png"));
                    }
                    image.add(new AttributeModifier("alt", true, new ParamResourceModel(info.getTitleKey(), null)));
                    link.add(image);
                    item.add(link);
                }
            };
            add(serviceList);
View Full Code Here

TOP

Related Classes of org.geoserver.web.services.ServiceMenuPageInfo

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.