net.sourceforge.java.feednread.frontend.components.tabbar
Class AbstractTabItemData

java.lang.Object
  extended bynet.sourceforge.java.feednread.frontend.components.tabbar.AbstractTabItemData
All Implemented Interfaces:
ITabItemData
Direct Known Subclasses:
BrowserTabItemData, MessageTabItemData, NewsFeedTabItemData

public abstract class AbstractTabItemData
extends Object
implements ITabItemData

Base class for all tab data objects to be used in CTabItems displayed in the NewsFeedTabBar ui component and organized inside a TabManager.

Author:
Sebastian Machhausen

Field Summary
protected  Object component
           The component displayed in the tab
protected  CTabItem item
           The CTabItem that the data object is related to
protected  MainApplicationWindow mainWindow
           The Feed'n Read main window
 
Fields inherited from interface net.sourceforge.java.feednread.frontend.components.tabbar.ITabItemData
TYPE_BROWSER_TAB, TYPE_FILTER_TAB, TYPE_MESSAGE_TAB, TYPE_NEWSFEED_TAB
 
Constructor Summary
protected AbstractTabItemData(MainApplicationWindow mainWindow, CTabItem item, Object component)
           Constructor to initialize the data in this AbstractTabItemData.
 
Method Summary
 Object getComponent()
           Gets the component displayed in the tab related to this AbstractTabItemData object.
 CTabItem getTabItem()
           Gets the CTabItem control related to this AbstractTabItemData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.java.feednread.frontend.components.tabbar.ITabItemData
dispose, getType, getUrl
 

Field Detail

mainWindow

protected MainApplicationWindow mainWindow

The Feed'n Read main window


item

protected CTabItem item

The CTabItem that the data object is related to


component

protected Object component

The component displayed in the tab

Constructor Detail

AbstractTabItemData

protected AbstractTabItemData(MainApplicationWindow mainWindow,
                              CTabItem item,
                              Object component)

Constructor to initialize the data in this AbstractTabItemData.

Parameters:
mainWindow - the Feed'n Read main window
item - the CTabItem control related to this TabItemData object
component - the component displayed in the tab related to this AbstractTabItemData object
Method Detail

getTabItem

public CTabItem getTabItem()

Gets the CTabItem control related to this AbstractTabItemData object.

Specified by:
getTabItem in interface ITabItemData
Returns:
the CTabItem control related to this AbstractTabItemData object

getComponent

public Object getComponent()

Gets the component displayed in the tab related to this AbstractTabItemData object.

Specified by:
getComponent in interface ITabItemData
Returns:
the component displayed in the tab related to this AbstractTabItemData object