Examples of SimpleBookmarkableLink


Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        }
    }

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

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

        String wsName = (String) WORKSPACE.getModel(model).getObject();
        String storeName = (String) storeModel.getObject();
        LayerInfo layer = (LayerInfo) model.getObject();
        StoreInfo store = layer.getResource().getStore();
        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

            final String gridSetName = gridSet.getName();
            final boolean isInternal = GWC.get().getGridSetBroker().getEmbeddedNames()
                    .contains(gridSetName);

            SimpleBookmarkableLink link;

            link = new SimpleBookmarkableLink(id, GridSetEditPage.class, new Model<String>(
                    gridSetName), AbstractGridSetPage.GRIDSET_NAME, gridSetName);

            if (isInternal) {
                link.add(new AttributeModifier("style", true, new Model<String>(
                        "font-style: italic;")));
                link.add(new AttributeModifier("title", true, new ResourceModel(
                        "nameLink.titleInternalGridSet")));
            } else {
                link.add(new AttributeModifier("title", true, new ResourceModel("nameLink.title")));
            }
            return link;

        }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        }

        @Override
        protected Component actionLink(final String id, String gridSetName) {
            SimpleBookmarkableLink link;
            link = new SimpleBookmarkableLink(id, GridSetNewPage.class, new ResourceModel(
                    "templateLink"), AbstractGridSetPage.GRIDSET_TEMPLATE_NAME, gridSetName);

            link.add(new AttributeModifier("title", true, new ResourceModel("templateLink.title")));
            return link;
        }
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, LayerGroupEditPage.class, groupNameModel,
            LayerGroupEditPage.GROUP, groupName, LayerGroupEditPage.WORKSPACE, wsName);
    }
View Full Code Here

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

    Component workspaceLink(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

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

Examples of org.geoserver.web.wicket.SimpleBookmarkableLink

        IModel wsModel = StyleProvider.WORKSPACE.getModel(model);
       
        String name = (String) nameModel.getObject();
        String wsName = (String) wsModel.getObject();

        return new SimpleBookmarkableLink(id, StyleEditPage.class, nameModel,
            StyleEditPage.NAME, name, StyleEditPage.WORKSPACE, wsName);
    }
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.