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