Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.SimpleAjaxLink


    @Override
    protected Component getComponentForProperty(String id, final IModel itemModel,
            Property<LayerInfo> property) {
        IModel model = property.getModel( itemModel );
        if ( NAME == property ) {
            return new SimpleAjaxLink( id, model ) {
                @Override
                protected void onClick(AjaxRequestTarget target) {
                    LayerInfo layer = (LayerInfo) itemModel.getObject();
                    handleLayer( layer, target );
                }
View Full Code Here


        h.setEnabled(getService().getSecurityManager().checkAuthenticationForAdminRole());
    }


    Component editGroupLink(String id, IModel itemModel, Property<GeoServerUserGroup> property) {
        return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) {
            @Override
            protected void onClick(AjaxRequestTarget target) {
                setResponsePage(new EditGroupPage(serviceName,(GeoServerUserGroup) getDefaultModelObject())
                    .setReturnPage(getPage()));
            }
View Full Code Here

        form.add(importAllLink());
       
    }
   
    SimpleAjaxLink resourceChooserLink(String id, IModel itemModel, IModel label) {
        return new SimpleAjaxLink(id, itemModel, label) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                LayerResource resource = (LayerResource) getDefaultModelObject();
                setResponsePage(new ResourceConfigurationPage(
View Full Code Here

        });
        return stores;
    }

    SimpleAjaxLink resourceChooserLink(String id, IModel itemModel, IModel label) {
        return new SimpleAjaxLink(id, itemModel, label) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                Resource resource = (Resource) getDefaultModelObject();
                setResponsePage(new ResourceConfigurationPage(
View Full Code Here

            super(id, dataProvider, false);
        }
   
   
        Component createEditLink(String id, final IModel model, final Property<RequestFilterChain> property) {
            return new SimpleAjaxLink(id, property.getModel(model)) {
   
                String chainName=(String)property.getModel(model).getObject();   
                @Override
                protected void onClick(AjaxRequestTarget target) {
                   
View Full Code Here

        }               
        throw new RuntimeException("Uknown property " + property);
    }

    protected Component editUserLink(String id, IModel itemModel, Property<GeoServerUser> property) {
        return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                setResponsePage(new EditUserPage(ugServiceName,(GeoServerUser) getDefaultModelObject())
                    .setReturnPage(getPage()));
View Full Code Here

            new ListView<GeoServerRole>("calculatedRoles", new CalculatedRoleModel(user)) {
            @Override
            @SuppressWarnings("unchecked")
            protected void populateItem(ListItem<GeoServerRole> item) {
                IModel<GeoServerRole> model = item.getModel();
                item.add(new SimpleAjaxLink("role", model, RoleListProvider.ROLENAME.getModel(model)) {
                    @Override
                    protected void onClick(AjaxRequestTarget target) {
                        setResponsePage(
                            new EditRolePage(getSecurityManager().getActiveRoleService().getName(),
                                (GeoServerRole) getDefaultModelObject()).setReturnPage(this.getPage()));
View Full Code Here

        };
    }

    Component editRuleLink(String id, IModel itemModel, Property<ServiceAccessRule> property) {
        return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                setResponsePage(new EditServiceAccessRulePage((ServiceAccessRule) getDefaultModelObject()));
            }
View Full Code Here

        add(dialog = new GeoServerDialog("dialog"));
        setHeaderPanel(headerPanel());
    }

    Component editRuleLink(String id, IModel itemModel, Property<DataAccessRule> property) {
        return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                setResponsePage(new EditDataAccessRulePage((DataAccessRule) getDefaultModelObject()));
            }
View Full Code Here

        };
    }

    Component editUserLink(String id, IModel itemModel, Property<User> property) {
        return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) {

            @Override
            protected void onClick(AjaxRequestTarget target) {
                setResponsePage(new EditUserPage((UserDetails) getDefaultModelObject()));
            }
View Full Code Here

TOP

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

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.