/** * Insert a NavLink correctly allocated in the Pagination widget * * @param page the number of the page displayed by the NavLink * @return the created NavLink filled with the page number */ public NavLink addPageLink(int page) { final NavLink pageLink = new NavLink(String.valueOf(page)); insert(pageLink, page); return pageLink; }
/** * Insert a NavLink displaying "<" at the most left position of the Pagination widget * * @return the created NavLink */ public NavLink addPreviousLink() { final NavLink pageLink = new NavLink("<"); insert(pageLink, 0); return pageLink; }