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

java.lang.Object
  extended bynet.sourceforge.java.feednread.frontend.components.tabbar.AbstractTabItemData
      extended bynet.sourceforge.java.feednread.frontend.components.tabbar.BrowserTabItemData
All Implemented Interfaces:
ITabItemData

public class BrowserTabItemData
extends AbstractTabItemData

Tab data class for CTabItems displaying an InternalBrowser in the NewsFeedTabBar ui component.

Author:
Sebastian Machhausen

Field Summary
private  InternalBrowser browser
           The InternalBrowser component displayed in the tab related to this data object
 
Fields inherited from class net.sourceforge.java.feednread.frontend.components.tabbar.AbstractTabItemData
component, item, mainWindow
 
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
BrowserTabItemData(MainApplicationWindow mainWindow, CTabItem item, InternalBrowser browser)
           Creates a new BrowserTabItemData instance.
 
Method Summary
 void dispose()
           Disposes this BrowserTabItemData object and all claimed resources.
 InternalBrowser getBrowser()
           Gets the InternalBrowser component displayed in the tab related to this BrowserTabItemData object.
 int getType()
           Gets the type of this BrowserTabItemData object.
 String getUrl()
           Gets the url of the web page currently displayed in the tab related to this BrowserTabItemData object.
 
Methods inherited from class net.sourceforge.java.feednread.frontend.components.tabbar.AbstractTabItemData
getComponent, getTabItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browser

private InternalBrowser browser

The InternalBrowser component displayed in the tab related to this data object

Constructor Detail

BrowserTabItemData

public BrowserTabItemData(MainApplicationWindow mainWindow,
                          CTabItem item,
                          InternalBrowser browser)

Creates a new BrowserTabItemData instance.

Parameters:
mainWindow - the Feed'n Read main window
item - the CTabItem control related to this BrowserTabItemData object
browser - the InternalBrowser to reference
Method Detail

getUrl

public String getUrl()

Gets the url of the web page currently displayed in the tab related to this BrowserTabItemData object.

Returns:
the url of the web page currently displayed in the tab related to this BrowserTabItemData object.

dispose

public void dispose()

Disposes this BrowserTabItemData object and all claimed resources.


getType

public int getType()

Gets the type of this BrowserTabItemData object. Always returns ITabItemData.TYPE_BROWSER_TAB to indicate a browser tab.

Returns:
ITabItemData.TYPE_BROWSER_TAB to indicate a browser tab

getBrowser

public InternalBrowser getBrowser()

Gets the InternalBrowser component displayed in the tab related to this BrowserTabItemData object.

Returns:
the InternalBrowser component displayed in the tab related to this BrowserTabItemData object