Commit | Line | Data |
---|---|---|
73005152 | 1 | /********************************************************************** |
c8422608 | 2 | * Copyright (c) 2005, 2012 IBM Corporation, Ericsson |
73005152 BH |
3 | * All rights reserved. This program and the accompanying materials |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
c8422608 AM |
7 | * |
8 | * Contributors: | |
9 | * IBM - Initial API and implementation | |
10 | * Bernd Hufmann - Updated for TMF | |
73005152 | 11 | **********************************************************************/ |
c8422608 | 12 | |
73005152 BH |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.handlers.provider; |
14 | ||
15 | /** | |
df0b8ff4 | 16 | * Interface for providing an extended find provider. |
c8422608 | 17 | * |
73005152 BH |
18 | * An advanced paging provider is able to compute number of pages, and to display the number of items it treats on each |
19 | * page and for total counts.<br> | |
20 | * An item can be a message, a node or anything meaningful from loader standpoint.<br> | |
21 | * Items are only here for information to the user. | |
c8422608 AM |
22 | * |
23 | * @version 1.0 | |
df0b8ff4 | 24 | * @author sveyrier |
73005152 BH |
25 | */ |
26 | public interface ISDAdvancedPagingProvider extends ISDPagingProvider { | |
27 | ||
28 | /** | |
df0b8ff4 | 29 | * Returns the current page. |
c8422608 | 30 | * |
df0b8ff4 | 31 | * @return the current page the loader is dealing with. <b>Note</b> that first page has the 0 index (indexes are from |
73005152 BH |
32 | * 0 to pagesCount()-1). |
33 | */ | |
34 | public int currentPage(); | |
35 | ||
36 | /** | |
df0b8ff4 | 37 | * Returns the number of pages. |
c8422608 | 38 | * |
73005152 BH |
39 | * @return number of pages the loader is dealing with |
40 | */ | |
41 | public int pagesCount(); | |
42 | ||
43 | /** | |
44 | * Instructs a load of the <pageNumber_><i>th</i> page.<br> | |
df0b8ff4 | 45 | * <b>Note</b> that first page has the index 0 (indexes are from 0 to pagesCount()-1). |
c8422608 | 46 | * |
eb63f5ff | 47 | * @param pageNumber index of the page to load |
73005152 | 48 | */ |
eb63f5ff | 49 | public void pageNumberChanged(int pageNumber); |
73005152 BH |
50 | |
51 | } |