List of usage examples for com.vaadin.ui Button Button
public Button(Resource icon)
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoMilestoneList() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.PHASES))); AppContext.addFragment(ProjectLinkGenerator.generateMilestonesLink(project.getId()), AppContext.getMessage(MilestoneI18nEnum.VIEW_LIST_TITLE)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoPageAdd() { this.select(0); buildPageBreadcrumbChain();//from ww w .ja va2 s . co m this.addLink(new Button(AppContext.getMessage(Page18InEnum.VIEW_NEW_TITLE))); AppContext.addFragment( ProjectLinkGenerator.generatePageAdd(project.getId(), CurrentProjectVariables.getCurrentPagePath()), AppContext.getMessage(Page18InEnum.VIEW_NEW_TITLE)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoPageRead(Page page) { this.select(0); buildPageBreadcrumbChain();/*from ww w . j av a2 s. c om*/ this.addLink(new Button(StringUtils.trim(page.getSubject(), 50))); AppContext.addFragment(ProjectLinkGenerator.generatePageRead(project.getId(), page.getPath()), AppContext.getMessage(Page18InEnum.VIEW_READ_TITLE)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoProblemList() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.PROBLEMS))); AppContext.addFragment(ProjectLinkGenerator.generateProblemsLink(project.getId()), AppContext.getMessage(ProblemI18nEnum.VIEW_LIST_TITLE)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoTaskDashboard() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.TASKS))); AppContext.addFragment(ProjectLinkGenerator.generateTaskDashboardLink(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_TASK_DASHBOARD)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoBugDashboard() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.BUGS_DASHBOARD))); AppContext.addFragment(ProjectLinkGenerator.generateBugDashboardLink(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_BUG_DASHBOARD)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoTimeTrackingList() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.TIME_TRACKING))); AppContext.addFragment(ProjectLinkGenerator.generateTimeReportLink(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_TIME_TRACKING)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoFileList() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.FILES))); AppContext.addFragment(ProjectLinkGenerator.generateFileDashboardLink(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_FILES)); }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoStandupList(Date onDate) { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.STANDUP))); if (onDate == null) { AppContext.addFragment("project/standup/list/" + UrlEncodeDecoder.encode(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_STANDUP)); } else {/* w w w . ja v a2 s . c o m*/ AppContext.addFragment( "project/standup/list/" + UrlEncodeDecoder.encode(project.getId() + "/" + AppContext.formatDate(onDate)), AppContext.getMessage(BreadcrumbI18nEnum.FRA_STANDUP)); } }
From source file:com.esofthead.mycollab.module.project.view.ProjectBreadcrumb.java
License:Open Source License
public void gotoUserList() { this.select(0); this.addLink(new Button(AppContext.getMessage(BreadcrumbI18nEnum.USERS))); AppContext.addFragment(ProjectLinkGenerator.generateUsersLink(project.getId()), AppContext.getMessage(BreadcrumbI18nEnum.FRA_MEMBERS)); }