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 | * Paging provider interface. |
c8422608 | 17 | * |
df0b8ff4 | 18 | * Sequence Diagram loaders which implement this class provide the actions for sequence diagram page navigation.<br> |
c8422608 | 19 | * |
df0b8ff4 | 20 | * Action provider are associated to a Sequence Diagram view by calling <code>SDView.setSDPagingProvider()</code>.<br> |
c8422608 AM |
21 | * |
22 | * @version 1.0 | |
73005152 | 23 | * @author sveyrier |
c8422608 | 24 | * |
73005152 BH |
25 | */ |
26 | public interface ISDPagingProvider { | |
27 | ||
28 | /** | |
29 | * Return true to enable the next page button in the coolBar, false otherwise | |
c8422608 | 30 | * |
73005152 BH |
31 | * @return true if a next page exists false otherwise |
32 | */ | |
33 | public boolean hasNextPage(); | |
34 | ||
35 | /** | |
36 | * Return true to enable the previous page button in the coolBar, false otherwise | |
c8422608 | 37 | * |
73005152 BH |
38 | * @return true if a previous page exists false otherwise |
39 | */ | |
40 | public boolean hasPrevPage(); | |
41 | ||
42 | /** | |
43 | * Called back when next page button is pressed in the coolBar | |
44 | */ | |
45 | public void nextPage(); | |
46 | ||
47 | /** | |
48 | * Called back when previous page button is pressed in the coolBar | |
49 | */ | |
50 | public void prevPage(); | |
c8422608 | 51 | |
73005152 BH |
52 | /** |
53 | * Called back when first page button is pressed in the coolBar | |
54 | */ | |
55 | public void firstPage(); | |
c8422608 | 56 | |
73005152 BH |
57 | /** |
58 | * Called back when last page button is pressed in the coolBar | |
59 | */ | |
60 | public void lastPage(); | |
61 | } |