protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); header.add(new BookmarkablePageLink<String>("importExisting", RepositoryImportPage.class)); header.add(new BookmarkablePageLink<String>("addNew", RepositoryEditPage.class)); return header; } }
public <C extends Page> SimpleBookmarkableLink( String id, Class<C> pageClass, IModel<?> labelModel, PageParameters params) { super(id, labelModel); add(link = new BookmarkablePageLink<Object>("link", pageClass, params)); link.add(label = new Label("label", labelModel)); }
/** * Creates and returns a bookmarkable link to this application's home page. * * @param id * Name of link * @return Link to home page for this application */ protected final BookmarkablePageLink<Void> homePageLink(final String id) { return new BookmarkablePageLink<>(id, getApplication().getHomePage()); }
/** * Creates and returns a bookmarkable link to this application's home page. * * @param id * Name of link * @return Link to home page for this application */ protected final BookmarkablePageLink<Void> homePageLink(final String id) { return new BookmarkablePageLink<>(id, getApplication().getHomePage()); }
/** * Creates and returns a bookmarkable link to this application's home page. * * @param id * Name of link * @return Link to home page for this application */ protected final BookmarkablePageLink homePageLink(final String id) { return new BookmarkablePageLink(id, getApplication().getHomePage()); }
/** * Creates and returns a bookmarkable link to this application's home page. * * @param id * Name of link * @return Link to home page for this application */ protected final BookmarkablePageLink<?> homePageLink(final String id) { return new BookmarkablePageLink<Void>(id, getApplication().getHomePage()); }
private Component buildAddNewLink(IModel<Project> model) { Project project = model.getObject(); if (project.cdoState() == CDOState.NEW || project.cdoState() == CDOState.TRANSIENT) { // it's a new project, we can't add anything yet Button link = new Button("addNew"); link.setEnabled(false); return link; } PageParameters parameters = WicketUtil.buildPageParametersFor(project); parameters.add(SettingsPanel.QUERY_PARAM_CREATE, PropertiesPackage.Literals.PROJECT_VERSION.getName()); return new BookmarkablePageLink<Void>("addNew", SettingsPage.class, parameters); }
@Override protected Link<Void> newQueryLink(String componentId, NamedCommitQuery namedQuery) { State state = new State(); state.query = namedQuery.getQuery(); return new BookmarkablePageLink<Void>(componentId, ProjectCommitsPage.class, ProjectCommitsPage.paramsOf(getProject(), state)); }
@Override protected void onInitialize() { super.onInitialize(); CodeComment comment = getModelObject(); PageParameters params = ProjectBlobPage.paramsOf(comment); Link<Void> link = new BookmarkablePageLink<Void>("link", ProjectBlobPage.class, params); link.add(new Label("label", comment.getMarkPos().getPath())); add(link); }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink("addNew", LayerGroupNewPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink<Void>("addNew", NewLayerPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
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))); } });
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add( new BookmarkablePageLink<NewDataAccessRulePage>( "addNew", NewDataAccessRulePage.class)); // the removal button header.add(removal = new SelectionDataRuleRemovalLink("removeSelected", rules, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink<NewDataAccessRulePage>( "addNew", NewDataAccessRulePage.class)); // the removal button header.add(removal = new SelectionDataRuleRemovalLink("removeSelected", rules, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add( new BookmarkablePageLink<LayerGroupEditPage>("addNew", LayerGroupEditPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink("addNew", NewDataPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); return header; }
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); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink<WorkspaceNewPage>("addNew", WorkspaceNewPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); // check for full admin, we don't allow workspace admins to add new workspaces header.setEnabled(isAuthenticatedAsAdmin()); return header; }
protected Component headerPanel() { Fragment header = new Fragment(HEADER_PANEL, "header", this); // the add button header.add(new BookmarkablePageLink("addNew", WorkspaceNewPage.class)); // the removal button header.add(removal = new SelectionRemovalLink("removeSelected", table, dialog)); removal.setOutputMarkupId(true); removal.setEnabled(false); //check for full admin, we don't allow workspace admins to add new workspaces header.setEnabled(isAuthenticatedAsAdmin()); return header; }
public StoryForm(final String id) { super(id, new CompoundPropertyModel<ValueMap>(new ValueMap())); add(new TextArea<String>("input", new PropertyModel<String>(storyContext, "input")).setType(String.class)); add(new TextArea<String>("metaFilter", new PropertyModel<String>(storyContext, "metaFilter")) .setType(String.class)); add(new Button("runButton")); add(new BookmarkablePageLink<String>("viewLink", ViewStory.class, new PageParameters())); }