KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > r33 > PaneFolderButtonListener


1 /*******************************************************************************
2  * Copyright (c) 2004, 2007 IBM Corporation and others.
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
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.presentations.r33;
12
13 import org.eclipse.swt.custom.CTabFolderEvent;
14 import org.eclipse.swt.custom.CTabItem;
15
16
17 /**
18  * This listener receives notifications when the user clicks on one of
19  * the buttons (minimize, maximize, or restore) on a pane folder.
20  *
21  * @since 3.0
22  */

23 public abstract class PaneFolderButtonListener {
24
25     /**
26      * Called when the minimize, maximize, or restore buttons are pressed.
27      *
28      * @param buttonId one of the IStackPresentationSite.STATE_* constants
29      */

30     public void stateButtonPressed(int buttonId) {
31     }
32
33     /**
34      * Called when a close button is pressed.
35      *
36      * @param item the tab whose close button was pressed
37      */

38     public void closeButtonPressed(CTabItem item) {
39     }
40
41     /**
42      *
43      * @since 3.0
44      */

45     public void showList(CTabFolderEvent event) {
46     }
47 }
48
Popular Tags