Examples of BookmarkablePageLink


Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

                    store, app);
        }
        paramsForm.add(storeEditPanel);

        // cancel/submit buttons
        paramsForm.add(new BookmarkablePageLink("cancel", StorePage.class));
        paramsForm.add(saveLink());
        paramsForm.setDefaultButton(saveLink());

        // feedback panel for error messages
        paramsForm.add(new FeedbackPanel("feedback"));
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

    protected Component headerPanel() {
        Fragment header = new Fragment(HEADER_PANEL, "header", this);

        // the add button
        header.add(new BookmarkablePageLink("addTranslation", NewTranslationPage.class));

        return header;
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        hostnameFilterTable.setOutputMarkupId(true);
        add(hostnameFilterTable);
       
       
        // the add button
        add(new BookmarkablePageLink("addNewHost", HostnameNewPage.class));
        // the removal button
        hostRemoval = new HostRemovalLink("removeSelectedHost", hostnameFilterTable);
        add(hostRemoval);       
        hostRemoval.setOutputMarkupId(true);
        hostRemoval.setEnabled(false);
       
        //
        //MIMETYPE
        //
        //Put together a table for editing what MIMETypes can go through the proxy
        mimetypeFilterTable =
            new GeoServerTablePanel<String>("mimetypeTable", mimetypeProvider, true) {
            @Override
            protected Component getComponentForProperty(String id, IModel itemModel,
                    Property<String> property) {
                return new Label(id, property.getModel(itemModel));
            }
            //tell the table to enable the remove button when items are selected
            @Override
            protected void onSelectionUpdate(AjaxRequestTarget target) {
                mimetypeRemoval.setEnabled(mimetypeFilterTable.getSelection().size() > 0);
                target.addComponent(mimetypeRemoval);
           
        };
        mimetypeFilterTable.setOutputMarkupId(true);
        add(mimetypeFilterTable);
       
        // the add button
        add(new BookmarkablePageLink("addNewMimetype", MimetypeNewPage.class));
        // the removal button
        mimetypeRemoval = new MimetypeRemovalLink("removeSelectedMimetype", mimetypeFilterTable);
        add(mimetypeRemoval);       
        mimetypeRemoval.setOutputMarkupId(true);
        mimetypeRemoval.setEnabled(false);
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

       
        Authentication auth = getSession().getAuthentication();
        if(isAdmin(auth)) {
            Fragment f = new Fragment("catalogLinks", "catalogLinksFragment", this);
            Catalog catalog = getCatalog();
            f.add(new BookmarkablePageLink("layersLink", LayerPage.class)
                .add(new Label( "nlayers", ""+catalog.getLayers().size())));
            f.add(new BookmarkablePageLink("addLayerLink", NewLayerPage.class));
           
            f.add(new BookmarkablePageLink("storesLink",StorePage.class)
                .add(new Label( "nstores", ""+catalog.getStores(StoreInfo.class).size())));
            f.add(new BookmarkablePageLink("addStoreLink", NewDataPage.class));
           
            f.add(new BookmarkablePageLink("workspacesLink",WorkspacePage.class)
                .add(new Label( "nworkspaces", ""+catalog.getWorkspaces().size())));
            f.add(new BookmarkablePageLink("addWorkspaceLink", WorkspaceNewPage.class));
            add(f);
        } else {
            Label placeHolder = new Label("catalogLinks");
            placeHolder.setVisible(false);
            add(placeHolder);
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

    public DemoPage(){
        List<DemoLinkInfo> links = getGeoServerApplication().getBeansOfType(DemoLinkInfo.class);
        add(new ListView("demoList", links){
            public void populateItem(ListItem item){
                final DemoLinkInfo info = (DemoLinkInfo)item.getModelObject();
                item.add(new BookmarkablePageLink("theLink", info.getComponentClass())
                .add(new Label("theTitle", new StringResourceModel(info.getTitleKey(), (Component)null, null))));
                item.add(new Label("theDescription", new StringResourceModel(info.getDescriptionKey(), (Component)null, null)));
            }
        });
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

    }

    public SimpleBookmarkableLink(String id, Class pageClass, IModel labelModel, PageParameters params) {
        super(id, labelModel);
       
        add(link = new BookmarkablePageLink("link", pageClass, params));
        link.add(label = new Label("label", labelModel));
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        add(logoutForm);
        logoutForm.add(new Label("username", anonymous ? "Nobody" : user.getName()));

        // home page link
        add( new BookmarkablePageLink( "home", GeoServerHomePage.class )
            .add( new Label( "label", new StringResourceModel( "home", (Component)null, null ) )  ) );
       
        // dev buttons
        DeveloperToolbar devToolbar = new DeveloperToolbar("devButtons");
        add(devToolbar);
        devToolbar.setVisible(Application.DEVELOPMENT.equalsIgnoreCase(
                getApplication().getConfigurationType()));
       
        final Map<Category,List<MenuPageInfo>> links = splitByCategory(
            filterSecured(getGeoServerApplication().getBeansOfType(MenuPageInfo.class))
        );

        List<MenuPageInfo> standalone = links.containsKey(null)
            ? links.get(null)
            : new ArrayList<MenuPageInfo>();
        links.remove(null);

        List<Category> categories = new ArrayList(links.keySet());
        Collections.sort(categories);

        add(new ListView("category", categories){
            public void populateItem(ListItem item){
                Category category = (Category)item.getModelObject();
                item.add(new Label("category.header", new StringResourceModel(category.getNameKey(), (Component) null, null)));
                item.add(new ListView("category.links", links.get(category)){
                    public void populateItem(ListItem item){
                        MenuPageInfo info = (MenuPageInfo)item.getModelObject();
                        BookmarkablePageLink link = new BookmarkablePageLink("link", info.getComponentClass());
                        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(new ListView("standalone", standalone){
                    public void populateItem(ListItem item){
                        MenuPageInfo info = (MenuPageInfo)item.getModelObject();
                        BookmarkablePageLink link = new BookmarkablePageLink("link", info.getComponentClass());
                        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)));
                        item.add(link);
                       
                    }
                }
        );
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        final String dataStoreInfoId = storeInfo.getId();
        StoreNameValidator storeNameValidator = new StoreNameValidator(workspacePanel
                .getFormComponent(), dataStoreNamePanel.getFormComponent(), dataStoreInfoId);
        paramsForm.add(storeNameValidator);

        paramsForm.add(new BookmarkablePageLink("cancel", StorePage.class));

        paramsForm.add(new AjaxSubmitLink("save", paramsForm) {
            private static final long serialVersionUID = 1L;

            @Override
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

   
    protected Component headerPanel() {
        Fragment header = new Fragment(HEADER_PANEL, "header", this);
       
        // the add button
        header.add(new BookmarkablePageLink("addNew", NewLayerPage.class));
       
        // the removal button
        header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog));
        removal.setOutputMarkupId(true);
        removal.setEnabled(false);
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

   
    protected Component headerPanel() {
        Fragment header = new Fragment(HEADER_PANEL, "header", this);
       
        // the add button
        header.add(new BookmarkablePageLink("addNew", StyleNewPage.class));
       
        // the removal button
        header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog) {
            @Override
            protected StringResourceModel canRemove(CatalogInfo object) {
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.