KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > presentations > util > WidgetTabItem


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.util;
12
13 import org.eclipse.swt.widgets.Widget;
14
15 /**
16  * @since 3.1
17  */

18 public abstract class WidgetTabItem extends AbstractTabItem {
19
20     private Object JavaDoc data;
21     private Widget widget;
22     
23     public WidgetTabItem(Widget theWidget) {
24         this.widget = theWidget;
25     }
26
27     /* (non-Javadoc)
28      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#dispose()
29      */

30     public void dispose() {
31         widget.dispose();
32     }
33
34     /* (non-Javadoc)
35      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#getData()
36      */

37     public Object JavaDoc getData() {
38         return data;
39     }
40
41     /* (non-Javadoc)
42      * @see org.eclipse.ui.internal.presentations.util.AbstractTabItem#setData(java.lang.Object)
43      */

44     public void setData(Object JavaDoc data) {
45         this.data = data;
46     }
47
48     public Widget getWidget() {
49         return widget;
50     }
51 }
52
Popular Tags