com.aelitis.azureus.ui.swt.views.skin.sidebar
Class SideBarEntrySWT

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.views.skin.sidebar.SideBarEntrySWT
All Implemented Interfaces:
ViewTitleInfoListener, MdiEntry, MdiEntrySWT, EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.internal.SWTEventListener, AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginView, UIPluginViewToolBarListener, ObfusticateImage, UISWTView, UISWTViewCore

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

Author:
TuxPaper

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
SideBarEntrySWT(SideBar sidebar, SWTSkin _skin, String id, String parentViewID)
           
 
Method Summary
 MdiEntryVitalityImage addVitalityImage(String imageID)
           
protected  boolean attentionUpdate(int ticks)
           
 void build()
           
 SWTSkinObjectContainer buildStandAlone(SWTSkinObjectContainer soParent)
           
 boolean canBuildStandAlone()
           
 boolean close(boolean force)
           
 void expandTo()
           
 SWTSkinObjectContainer getParentSkinObject()
           
 org.eclipse.swt.widgets.TreeItem getTreeItem()
           
 MdiEntryVitalityImage getVitalityImage(int hitX, int hitY)
           
 MdiEntryVitalityImage[] getVitalityImages()
           
 void hide()
           
 boolean isSelectable()
           
 org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
           
 void redraw()
           
protected  void refreshTitle()
           
 void requestAttention()
           
 void setExpanded(boolean expanded)
           
 void setParentSkinObject(SWTSkinObjectContainer soParent)
           
 void setSelectable(boolean selectable)
           
 void setTitle(String title)
          Override the default title with a new one.
protected  void setToolbarVisibility(boolean visible)
           
 void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)
           
 void show()
           
 boolean swt_build()
           
protected  org.eclipse.swt.graphics.Rectangle swt_getBounds()
           
 boolean swt_isVisible()
           
protected  org.eclipse.swt.graphics.Color swt_paintEntryBG(int detail, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds)
           
protected  void swt_paintSideBar(org.eclipse.swt.widgets.Event event)
           
protected  void updateColors()
           
 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, addListener, addListeners, closeView, generate, getAutoOpenInfo, getDatasource, getDatasourceCore, getExportableDatasource, getId, getImageLeft, getImageLeftID, getLogID, getMDI, getMenuHackListeners, getParentID, getPreferredAfterID, getSkinObject, getSkinObjectMaster, getSkinRef, getTitle, getViewTitleInfo, hasDropListeners, isAdded, isCloseable, isCollapseDisabled, isDisposed, isExpanded, releaseImageLeft, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, requestClose, setCloseable, setCollapseDisabled, setDatasource, setDefaultExpanded, setDisposed, setEventListener, setImageLeft, setImageLeftID, setLogID, setParentID, setPluginSkinObject, setPreferredAfterID, setSkinObjectMaster, setSkinRef, setViewTitleInfo, swt_hide, triggerChildCloseListeners, triggerCloseListeners, triggerDatasourceListeners, triggerDropListeners, triggerEvent, triggerLogIDListeners, triggerOpenListeners, updateLanguage, updateUI, viewTitleInfoRefresh
 
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, refreshToolBarItems, removeToolbarEnabler, setControlType, setDelayInitializeToFirstActivate, setDestroyOnDeactivate, setParentView, setTitleID, setToolBarListener, 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

SideBarEntrySWT

public SideBarEntrySWT(SideBar sidebar,
                       SWTSkin _skin,
                       String id,
                       String parentViewID)
Method Detail

updateColors

protected void updateColors()

getTreeItem

public org.eclipse.swt.widgets.TreeItem getTreeItem()

setTreeItem

public void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem)

addVitalityImage

public MdiEntryVitalityImage addVitalityImage(String imageID)
Specified by:
addVitalityImage in interface MdiEntry
Overrides:
addVitalityImage in class BaseMdiEntry

getVitalityImages

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

getVitalityImage

public MdiEntryVitalityImage getVitalityImage(int hitX,
                                              int hitY)

requestAttention

public void requestAttention()
Specified by:
requestAttention in interface MdiEntry
Overrides:
requestAttention in class BaseMdiEntry

attentionUpdate

protected boolean attentionUpdate(int ticks)

redraw

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

swt_getBounds

protected org.eclipse.swt.graphics.Rectangle swt_getBounds()

setExpanded

public void setExpanded(boolean expanded)
Specified by:
setExpanded in interface MdiEntry
Overrides:
setExpanded in class BaseMdiEntry

expandTo

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

close

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

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

hide

public void hide()
Specified by:
hide in interface MdiEntry
Overrides:
hide in class BaseMdiEntry

swt_paintSideBar

protected void swt_paintSideBar(org.eclipse.swt.widgets.Event event)

swt_paintEntryBG

protected org.eclipse.swt.graphics.Color swt_paintEntryBG(int detail,
                                                          org.eclipse.swt.graphics.GC gc,
                                                          org.eclipse.swt.graphics.Rectangle drawBounds)

widgetDisposed

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

setParentSkinObject

public void setParentSkinObject(SWTSkinObjectContainer soParent)

getParentSkinObject

public SWTSkinObjectContainer getParentSkinObject()

setSelectable

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

isSelectable

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

swt_isVisible

public boolean swt_isVisible()

obfusticatedImage

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

setToolbarVisibility

protected void setToolbarVisibility(boolean visible)
Overrides:
setToolbarVisibility in class UISWTViewImpl

setTitle

public void setTitle(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

refreshTitle

protected void refreshTitle()
Overrides:
refreshTitle in class UISWTViewImpl