Examples of SimpleBookmarkableLink


Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    private Component layerLink(String id, final IModel model) {
        IModel layerNameModel = NAME.getModel(model);
        String wsName = (String) WORKSPACE.getModel(model).getObject();
        String layerName = (String) layerNameModel.getObject();
        return new SimpleBookmarkableLink(id, ResourceConfigurationPage.class, layerNameModel,
                ResourceConfigurationPage.NAME, layerName, ResourceConfigurationPage.WORKSPACE, wsName);
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        IModel storeModel = STORE.getModel(model);
        String wsName = (String) WORKSPACE.getModel(model).getObject();
        String storeName = (String) storeModel.getObject();
        StoreInfo store = getCatalog().getStoreByName(wsName, storeName, StoreInfo.class);
        if(store instanceof DataStoreInfo) {
            return new SimpleBookmarkableLink(id, DataAccessEditPage.class, storeModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        } else if (store instanceof WMSStoreInfo) {
            return new SimpleBookmarkableLink(id, WMSStoreEditPage.class, storeModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        } else {
            return new SimpleBookmarkableLink(id, CoverageStoreEditPage.class, storeModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        }
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        }
    }

    private Component workspaceLink(String id, final IModel model) {
      IModel nameModel = WORKSPACE.getModel(model);
        return new SimpleBookmarkableLink(id, WorkspaceEditPage.class, nameModel,
                "name", (String) nameModel.getObject());
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

   
    Component layerGroupLink(String id, IModel itemModel) {
        IModel groupNameModel = LayerGroupProvider.NAME.getModel(itemModel);
        String groupName = (String) groupNameModel.getObject();
       
        return new SimpleBookmarkableLink(id, LayerGroupEditPage.class, groupNameModel,
                LayerGroupEditPage.GROUP, groupName);
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    }

    Component styleLink( String id, IModel model ) {
        IModel nameModel = StyleProvider.NAME.getModel(model);
        String name = (String) nameModel.getObject();
        return new SimpleBookmarkableLink(id, StyleEditPage.class, nameModel,
                StyleEditPage.NAME, name);
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    }

    Component scriptLink(String id, final IModel itemModel) {
        IModel nameModel = ScriptProvider.NAME.getModel(itemModel);
        IModel fileModel = ScriptProvider.FILE.getModel(itemModel);
        return new SimpleBookmarkableLink(id, ScriptEditPage.class, nameModel,
        // @TODO type and extension instead of file
                "file", fileModel.getObject().toString());
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        IModel wsModel = LayerGroupProvider.WORKSPACE.getModel(itemModel);

        String groupName = (String) groupNameModel.getObject();
        String wsName = (String) wsModel.getObject();

        return new SimpleBookmarkableLink(id, EoLayerGroupEditPage.class, groupNameModel,
                EoLayerGroupEditPage.GROUP, groupName, EoLayerGroupEditPage.WORKSPACE, wsName);
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    protected Component createWorkspaceLink(String id, IModel itemModel) {
        IModel wsNameModel = LayerGroupProvider.WORKSPACE.getModel(itemModel);
        String wsName = (String) wsNameModel.getObject();
        if (wsName != null) {
            return new SimpleBookmarkableLink(id, WorkspaceEditPage.class, new Model(wsName),
                    "name", wsName);
        } else {
            return new WebMarkupContainer(id);
        }
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    @Override
    protected Component getComponentForProperty(String id, IModel itemModel, Property property) {
        if (ImportContextProvider.ID == property) {
            PageParameters pp = new PageParameters();
            pp.put("id", property.getModel(itemModel).getObject());
            return new SimpleBookmarkableLink(id, ImportPage.class, property.getModel(itemModel), pp);
        }
        else if (ImportContextProvider.CREATED == property || ImportContextProvider.UPDATED == property) {
            Date date = (Date) property.getModel(itemModel).getObject();
            String pretty = PRETTY_TIME.format(date);
            return new Label(id, pretty);
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        String wsName = (String) WORKSPACE.getModel(itemModel).getObject();
        IModel storeNameModel = NAME.getModel(itemModel);
        String storeName = (String) storeNameModel.getObject();
        StoreInfo store = getCatalog().getStoreByName(wsName, storeName, StoreInfo.class);
        if(store instanceof DataStoreInfo) {
            return new SimpleBookmarkableLink(id, DataAccessEditPage.class, storeNameModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        } else if(store instanceof CoverageStoreInfo){
            return new SimpleBookmarkableLink(id, CoverageStoreEditPage.class, storeNameModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        } else if(store instanceof WMSStoreInfo){
            return new SimpleBookmarkableLink(id, WMSStoreEditPage.class, storeNameModel,
                    DataAccessEditPage.STORE_NAME, storeName,
                    DataAccessEditPage.WS_NAME, wsName);
        } else {
            throw new RuntimeException("Don't know what to do with this store " + store);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.