com.aelitis.azureus.ui.swt.mdi
Class TabbedEntry

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewImpl
      extended by com.aelitis.azureus.ui.swt.mdi.BaseMdiEntry
          extended by com.aelitis.azureus.ui.swt.mdi.TabbedEntry
All Implemented Interfaces:
ViewTitleInfoListener, MdiEntry, MdiEntrySWT, java.util.EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginView, UIPluginViewToolBarListener, ObfusticateImage, UISWTView, UISWTViewCore

public class TabbedEntry
extends BaseMdiEntry
implements org.eclipse.swt.events.DisposeListener

MDI Entry that is a CTabItem and belongs wo TabbedMDI

TODO: VitalityImages


Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.swt.mdi.BaseMdiEntry
logID, mdi, viewTitleInfo
 
Fields inherited from class org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewImpl
CFG_PREFIX, composite, datasource, id, skinObject
 
Fields inherited from interface org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewCore
CONTROLTYPE_SKINOBJECT
 
Fields inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTView
CONTROLTYPE_AWT, CONTROLTYPE_SWT
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Constructor Summary
TabbedEntry(TabbedMDI mdi, SWTSkin skin, java.lang.String id, java.lang.String parentViewID)
           
 
Method Summary
 void addListener(MdiSWTMenuHackListener l)
           
 MdiEntryVitalityImage addVitalityImage(java.lang.String imageID)
          Tabs don't have Vitality Image support (yet)
 void build()
           
 SWTSkinObjectContainer buildStandAlone(SWTSkinObjectContainer soParent)
           
 boolean canBuildStandAlone()
           
 boolean close(boolean forceClose)
           
 void expandTo()
           
 java.lang.String getParentID()
           
 org.eclipse.swt.widgets.Item getSwtItem()
           
 MdiEntryVitalityImage[] getVitalityImages()
           
 boolean isCloseable()
           
 boolean isSelectable()
           
 org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
           
 void redraw()
           
 void removeListener(MdiSWTMenuHackListener l)
           
 void setCloseable(boolean closeable)
           
 void setImageLeft(org.eclipse.swt.graphics.Image imageLeft)
           
 void setImageLeftID(java.lang.String id)
           
 void setParentID(java.lang.String id)
           
 void setSelectable(boolean selectable)
           
 void setSwtItem(org.eclipse.swt.custom.CTabItem swtItem)
           
 void setTitle(java.lang.String title)
          Override the default title with a new one.
 void show()
           
 boolean swt_build()
           
 void viewTitleInfoRefresh(ViewTitleInfo titleInfoToRefresh)
           
 void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
           
 
Methods inherited from class com.aelitis.azureus.ui.swt.mdi.BaseMdiEntry
addListener, addListener, addListener, addListener, addListener, addListener, addListeners, closeView, generate, getAutoOpenInfo, getDatasource, getDatasourceCore, getExportableDatasource, getId, getImageLeft, getImageLeftID, getLogID, getMDI, getMenuHackListeners, getPreferredAfterID, getSkinObject, getSkinObjectMaster, getSkinRef, getTitle, getViewTitleInfo, hasDropListeners, hide, isAdded, isCollapseDisabled, isDisposed, isExpanded, releaseImageLeft, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, requestAttention, requestClose, setCollapseDisabled, setDatasource, setDefaultExpanded, setDisposed, setEventListener, setExpanded, setLogID, setPluginSkinObject, setPreferredAfterID, setSkinObjectMaster, setSkinRef, setViewTitleInfo, swt_hide, triggerChildCloseListeners, triggerCloseListeners, triggerDatasourceListeners, triggerDropListeners, triggerEvent, triggerLogIDListeners, triggerOpenListeners, updateLanguage, updateUI
 
Methods inherited from class org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewImpl
addToolbarEnabler, getComposite, getControlType, getDataSource, getEventListener, getFullTitle, getInitialDataSource, getParentView, getPluginInterface, getPluginSkinObject, getTitleID, getToolbarEnablers, getToolBarListener, getUserData, getViewID, hasToolbarEnableers, initialize, isDelayInitializeToFirstActivate, isDestroyOnDeactivate, refreshTitle, refreshToolBarItems, removeToolbarEnabler, setControlType, setDelayInitializeToFirstActivate, setDestroyOnDeactivate, setParentView, setTitleID, setToolBarListener, setToolbarVisibility, setUseCoreDataSource, setUserData, toolBarItemActivated, triggerEventRaw, useCoreDataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.azureus.ui.swt.mdi.MdiEntrySWT
getEventListener
 
Methods inherited from interface com.aelitis.azureus.ui.mdi.MdiEntry
addToolbarEnabler, getToolbarEnablers, getUserData, removeToolbarEnabler, setTitleID, setUserData
 
Methods inherited from interface org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewCore
getComposite, getFullTitle, getPluginSkinObject, getTitleID, getUserData, initialize, setParentView, setUseCoreDataSource, setUserData, useCoreDataSource
 
Methods inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTView
getControlType, getDataSource, getInitialDataSource, getParentView, getPluginInterface, isDestroyOnDeactivate, setControlType, setDestroyOnDeactivate
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.UIPluginView
getToolBarListener, getViewID, setToolBarListener
 

Constructor Detail

TabbedEntry

public TabbedEntry(TabbedMDI mdi,
                   SWTSkin skin,
                   java.lang.String id,
                   java.lang.String parentViewID)
Method Detail

canBuildStandAlone

public boolean canBuildStandAlone()

buildStandAlone

public SWTSkinObjectContainer buildStandAlone(SWTSkinObjectContainer soParent)

build

public void build()
Overrides:
build in class BaseMdiEntry

swt_build

public boolean swt_build()

show

public void show()
Overrides:
show in class BaseMdiEntry

addVitalityImage

public MdiEntryVitalityImage addVitalityImage(java.lang.String imageID)
Tabs don't have Vitality Image support (yet)

Specified by:
addVitalityImage in interface MdiEntry
Overrides:
addVitalityImage in class BaseMdiEntry

isCloseable

public boolean isCloseable()
Specified by:
isCloseable in interface MdiEntry
Overrides:
isCloseable in class BaseMdiEntry

setCloseable

public void setCloseable(boolean closeable)
Overrides:
setCloseable in class BaseMdiEntry

setSwtItem

public void setSwtItem(org.eclipse.swt.custom.CTabItem swtItem)

getSwtItem

public org.eclipse.swt.widgets.Item getSwtItem()

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: UISWTView
Override the default title with a new one. After setting this, you should use the UISWTViewEvent.TYPE_LANGUAGEUPDATE to update your title to the new language.

Specified by:
setTitle in interface MdiEntry
Specified by:
setTitle in interface UISWTView
Overrides:
setTitle in class BaseMdiEntry
Parameters:
title - new Title

getVitalityImages

public MdiEntryVitalityImage[] getVitalityImages()
Specified by:
getVitalityImages in interface MdiEntry
Overrides:
getVitalityImages in class BaseMdiEntry

close

public boolean close(boolean forceClose)
Specified by:
close in interface MdiEntry
Overrides:
close in class BaseMdiEntry

redraw

public void redraw()
Specified by:
redraw in interface MdiEntry

setImageLeftID

public void setImageLeftID(java.lang.String id)
Specified by:
setImageLeftID in interface MdiEntry
Overrides:
setImageLeftID in class BaseMdiEntry

setImageLeft

public void setImageLeft(org.eclipse.swt.graphics.Image imageLeft)
Specified by:
setImageLeft in interface MdiEntrySWT
Overrides:
setImageLeft in class BaseMdiEntry
Parameters:
imageLeft - the imageLeft to set

widgetDisposed

public void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
Specified by:
widgetDisposed in interface org.eclipse.swt.events.DisposeListener

expandTo

public void expandTo()
Specified by:
expandTo in interface MdiEntry

viewTitleInfoRefresh

public void viewTitleInfoRefresh(ViewTitleInfo titleInfoToRefresh)
Specified by:
viewTitleInfoRefresh in interface ViewTitleInfoListener
Overrides:
viewTitleInfoRefresh in class BaseMdiEntry

isSelectable

public boolean isSelectable()
Specified by:
isSelectable in interface MdiEntry

setSelectable

public void setSelectable(boolean selectable)
Specified by:
setSelectable in interface MdiEntry

addListener

public void addListener(MdiSWTMenuHackListener l)
Specified by:
addListener in interface MdiEntrySWT
Overrides:
addListener in class BaseMdiEntry

removeListener

public void removeListener(MdiSWTMenuHackListener l)
Specified by:
removeListener in interface MdiEntrySWT
Overrides:
removeListener in class BaseMdiEntry

setParentID

public void setParentID(java.lang.String id)
Specified by:
setParentID in interface MdiEntry
Overrides:
setParentID in class BaseMdiEntry

getParentID

public java.lang.String getParentID()
Specified by:
getParentID in interface MdiEntry
Overrides:
getParentID in class BaseMdiEntry

obfusticatedImage

public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
Specified by:
obfusticatedImage in interface ObfusticateImage