/** * Gets the url to use for this link. * * @return The URL that this link links to * @see org.apache.wicket.markup.html.link.Link#getURL() */ @Override protected CharSequence getURL() { PageParameters parameters = getPageParameters(); return urlFor(getPageClass(), parameters); } }
/** * Gets the url to use for this link. * * @return The URL that this link links to * @see org.apache.wicket.markup.html.link.Link#getURL() */ @Override protected CharSequence getURL() { PageParameters parameters = getPageParameters(); return urlFor(getPageClass(), parameters); } }
private void setParameterImpl(String key, Object value) { PageParameters parameters = getPageParameters(); parameters.put(key, value); this.parameters = pageParametersToMiniMap(parameters); }
private void setParameterImpl(String key, Object value) { PageParameters parameters = getPageParameters(); parameters.put(key, value); this.parameters = pageParametersToMiniMap(parameters); }
@Override public PageParameters getPageParameters() { return super.getPageParameters().add("indexName", getModelObject().getName()); } }
/** * Asserts that that the BookmarkablePageLink identified by "id" points to the page as expected * - including parameters. * * @param id * @param pageClass * @param parameters */ public void assertBookmarkablePageLink(final String id, final Class<? extends WebPage> pageClass, final String parameters) { BookmarkablePageLink<?> pageLink = null; try { pageLink = (BookmarkablePageLink<?>)getComponentFromLastRenderedPage(id); } catch (ClassCastException e) { throw new IllegalArgumentException("Component with id:" + id + " is not a BookmarkablePageLink"); } Assert.assertEquals("BookmarkablePageLink: " + id + " is pointing to the wrong page", pageClass, pageLink.getPageClass()); Assert.assertEquals( "One or more of the parameters associated with the BookmarkablePageLink: " + id + " do not match", new PageParameters(parameters), pageLink.getPageParameters()); }
@Override public PageParameters getPageParameters() { return super.getPageParameters().add("className", getModelObject().getName()); } }
@Override public PageParameters getPageParameters() { return super.getPageParameters().add("clusterName", getModelObject().getName()); } }
@Override public PageParameters getPageParameters() { PageParameters pageParameters = super.getPageParameters(); pageParameters.add("rid", buitifyRid(getModelObject())); if(propogateDisplayMode) { pageParameters.add("mode", displayModeModel.getObject().getName()); } return pageParameters; }
@Override public final void onSubmit() { run(); BookmarkablePageLink<?> link = (BookmarkablePageLink<?>) get("viewLink"); link.setBody(new Model<String>(storyContext.getOutput())); link.getPageParameters().set("id", storyContext.getOutput()); } }
@Override public final void onSubmit() { run(); BookmarkablePageLink<?> link = (BookmarkablePageLink<?>) get("viewLink"); link.setBody(new Model<String>(storyContext.getOutput())); link.getPageParameters().set("id", storyContext.getOutput()); } }
/** * Asserts that that the BookmarkablePageLink<?> identified by "id" points to the page as * expected - including parameters. * * @param id * @param pageClass * @param parameters */ public void assertBookmarkablePageLink(final String id, final Class<? extends WebPage> pageClass, final PageParameters parameters) { BookmarkablePageLink<?> pageLink; try { pageLink = (BookmarkablePageLink<?>)getComponentFromLastRenderedPage(id); } catch (ClassCastException e) { throw new IllegalArgumentException( "Component with id:" + id + " is not a BookmarkablePageLink"); } assertEquals(pageClass, pageLink.getPageClass(), "BookmarkablePageLink: " + id + " is pointing to the wrong page"); assertEquals(parameters, pageLink.getPageParameters(), "One or more of the parameters associated with the BookmarkablePageLink: " + id + " do not match"); }
/** * Asserts that that the BookmarkablePageLink<?> identified by "id" points to the page as * expected - including parameters. * * @param id * @param pageClass * @param parameters */ public void assertBookmarkablePageLink(final String id, final Class<? extends WebPage> pageClass, final PageParameters parameters) { BookmarkablePageLink<?> pageLink; try { pageLink = (BookmarkablePageLink<?>)getComponentFromLastRenderedPage(id); } catch (ClassCastException e) { throw new IllegalArgumentException("Component with id:" + id + " is not a BookmarkablePageLink"); } assertEquals("BookmarkablePageLink: " + id + " is pointing to the wrong page", pageClass, pageLink.getPageClass()); assertEquals("One or more of the parameters associated with the BookmarkablePageLink: " + id + " do not match", parameters, pageLink.getPageParameters()); }
/** * @param id component id * @param model model for contact * @param editClass The edit page to redirect to. * @param objectId The id of the object to edit in edit page. * @param label The label to show (additional to the row_pointer.png). The id of the label should be LABEL_ID. */ public TreeIconsActionPanel(final String id, final IModel< ? > model, final Class< ? extends AbstractEditPage< ? , ? , ? >> editClass, final Integer objectId, final Label label, final TreeTable< ? > treeTable) { super(id, model); this.treeTable = treeTable; final BookmarkablePageLink<Void> bookmarkablePagelink = new BookmarkablePageLink<Void>("select", editClass); bookmarkablePagelink.getPageParameters().add(AbstractEditPage.PARAMETER_KEY_ID, objectId); this.link = bookmarkablePagelink; add(link); add(label); }
@Override public PageParameters getPageParameters() { return super.getPageParameters().add("className", getModelObject().getOwnerClass().getName()).add("propertyName", getModelObject().getName()); } }
/** * Gets the url to use for this link. * * @return The URL that this link links to * @see org.apache.wicket.markup.html.link.Link#getURL() */ protected CharSequence getURL() { if (pageMapName != null && getPopupSettings() != null) { throw new IllegalStateException("You cannot specify popup settings and a page map"); } PageParameters parameters = getPageParameters(); if (getPopupSettings() != null) { return urlFor(getPopupSettings().getPageMap(this), getPageClass(), parameters); } else { return urlFor(getPageMap(), getPageClass(), parameters); } } }
PageParameters parameters = getPageParameters();
showTimesheetsLink.getPageParameters().set(TimesheetListPage.PARAMETER_KEY_TASK_ID, id); menu = new ContentMenuEntryPanel(getNewContentMenuChildId(), showTimesheetsLink, getString("task.menu.showTimesheets")); AccessListPage.class); if (form.getData().getId() != null) { showAccessRightsLink.getPageParameters().set(AccessListPage.PARAMETER_KEY_TASK_ID, form.getData().getId());