com.aelitis.azureus.ui.swt.views.skin.sidebar
Class SideBar
java.lang.Object
  
com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      
com.aelitis.azureus.ui.swt.views.skin.SkinView
          
com.aelitis.azureus.ui.swt.mdi.BaseMDI
              
com.aelitis.azureus.ui.swt.views.skin.sidebar.SideBar
- All Implemented Interfaces: 
 - UIUpdatable, MultipleDocumentInterface, MultipleDocumentInterfaceSWT, SWTSkinObjectListener, AEDiagnosticsEvidenceGenerator, ObfusticateImage
 
public class SideBar
- extends BaseMDI
- implements ObfusticateImage, AEDiagnosticsEvidenceGenerator
  
- Author:
 
  - TuxPaper
 
 
 
| Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView | 
soMain | 
 
| Fields inherited from interface com.aelitis.azureus.ui.mdi.MultipleDocumentInterface | 
SIDEBAR_HEADER_DEVICES, SIDEBAR_HEADER_DISCOVERY, SIDEBAR_HEADER_DVD, SIDEBAR_HEADER_PLUGINS, SIDEBAR_HEADER_TRANSFERS, SIDEBAR_HEADER_VUZE, SIDEBAR_POS_FIRST, SIDEBAR_SECTION_ABOUTPLUGINS, SIDEBAR_SECTION_ACTIVITIES, SIDEBAR_SECTION_ALLPEERS, SIDEBAR_SECTION_ARCHIVED_DOWNLOADS, SIDEBAR_SECTION_BETAPROGRAM, SIDEBAR_SECTION_BURN_INFO, SIDEBAR_SECTION_CHAT, SIDEBAR_SECTION_CLIENT_STATS, SIDEBAR_SECTION_CONFIG, SIDEBAR_SECTION_DEVICES, SIDEBAR_SECTION_DOWNLOAD_HISTORY, SIDEBAR_SECTION_GAMES, SIDEBAR_SECTION_LIBRARY, SIDEBAR_SECTION_LIBRARY_CD, SIDEBAR_SECTION_LIBRARY_DL, SIDEBAR_SECTION_LIBRARY_UNOPENED, SIDEBAR_SECTION_LOGGER, SIDEBAR_SECTION_MY_SHARES, SIDEBAR_SECTION_MY_TRACKER, SIDEBAR_SECTION_PLUGINS, SIDEBAR_SECTION_PLUS, SIDEBAR_SECTION_SEARCH, SIDEBAR_SECTION_SUBSCRIPTIONS, SIDEBAR_SECTION_TAG_DISCOVERY, SIDEBAR_SECTION_TAGS, SIDEBAR_SECTION_TORRENT_DETAILS, SIDEBAR_SECTION_TORRENT_OPTIONS, SIDEBAR_SECTION_WELCOME | 
 
 
 
| 
Method Summary | 
protected  void | 
_setupNewEntry(SideBarEntrySWT entry,
               String id,
               boolean expandParent,
               boolean closeable)
 
            | 
 void | 
addItem(MdiEntry entry)
 
            | 
 MdiEntry | 
createEntryFromEventListener(String parentEntryID,
                             String parentViewID,
                             UISWTViewEventListener l,
                             String id,
                             boolean closeable,
                             Object datasource,
                             String preferredAfterID)
 
            | 
 MdiEntry | 
createEntryFromSkinRef(String parentID,
                       String id,
                       String configID,
                       String title,
                       ViewTitleInfo titleInfo,
                       Object params,
                       boolean closeable,
                       String preferredAfterID)
 
          If you prefix the 'preferedAfterID' string with '~' then the operation will actually
 switch to 'preferedBeforeID' | 
 MdiEntry | 
createHeader(String id,
             String titleID,
             String preferredAfterID)
 
            | 
protected  void | 
defaultDrop(org.eclipse.swt.dnd.DropTargetEvent event)
 
            | 
protected  void | 
fillDropDownMenu(org.eclipse.swt.widgets.Menu menuDropDown,
                 org.eclipse.swt.widgets.TreeItem[] items,
                 int indent)
 
            | 
 void | 
flipSideBarVisibility()
 
            | 
 void | 
generate(IndentWriter writer)
 
            | 
 MdiEntrySWT | 
getEntryFromSkinObject(PluginUISWTSkinObject pluginSkinObject)
 
            | 
 org.eclipse.swt.graphics.Font | 
getHeaderFont()
 
            | 
protected  org.eclipse.swt.widgets.Tree | 
getTree()
 
            | 
protected  int | 
indexOf(MdiEntry entry)
 
            | 
 boolean | 
isVisible()
 
            | 
protected  void | 
itemSelected(MdiEntry entry)
 
            | 
 org.eclipse.swt.graphics.Image | 
obfusticatedImage(org.eclipse.swt.graphics.Image image)
 
            | 
 void | 
removeItem(MdiEntry entry)
 
            | 
protected  void | 
requestAttention(SideBarEntrySWT entry)
 
            | 
protected  void | 
setEntryLoadedOnce(String id)
 
            | 
protected  void | 
setupPluginViews()
 
            | 
 void | 
showEntry(MdiEntry newEntry)
 
            | 
 Object | 
skinObjectCreated(SWTSkinObject skinObject,
                  Object params)
 
          Skin Object was created. | 
 Object | 
skinObjectDestroyed(SWTSkinObject skinObject,
                    Object params)
 
          Skin Object was destroyed | 
 Object | 
skinObjectInitialShow(SWTSkinObject skinObject,
                      Object params)
 
            | 
 void | 
updateUI()
 
          Update your UI! | 
protected  boolean | 
wasEntryLoadedOnce(String id)
 
            | 
 
| Methods inherited from class com.aelitis.azureus.ui.swt.mdi.BaseMDI | 
addListener, addListener, addListener, closeEntry, createEntryByCreationListener, createEntryFromEventListener, createEntryFromEventListener, deregisterEntry, deregisterEntry, entryExists, fillMenu, getChildrenOf, getCoreViewFromID, getCurrentEntry, getCurrentEntrySWT, getEntries, getEntries, getEntriesCount, getEntriesSWT, getEntry, getEntryBySkinView, getEntrySWT, getMenuHackListeners, getPreferredOrder, getUpdateUIName, informAutoOpenSet, loadCloseables, loadEntryByID, loadEntryByID, registerEntry, registerEntry, removeEntryAutoOpen, removeListener, removeListener, removeListener, saveCloseables, setCloseableConfigFile, setEntryAutoOpen, setPreferredOrder, showEntryByID, showEntryByID, triggerEntryLoadedListeners, triggerSelectionListener, updateLanguage | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
isGTK3
protected static final boolean isGTK3
END_INDENT
protected static final boolean END_INDENT
USE_NATIVE_EXPANDER
protected static final boolean USE_NATIVE_EXPANDER
SIDEBAR_ATTENTION_PERIOD
protected static final int SIDEBAR_ATTENTION_PERIOD
- See Also:
 - Constant Field Values
 
SIDEBAR_ATTENTION_DURATION
protected static final int SIDEBAR_ATTENTION_DURATION
- See Also:
 - Constant Field Values
 
draggingOver
protected SideBarEntrySWT draggingOver
instance
public static SideBar instance
SideBar
public SideBar()
skinObjectCreated
public Object skinObjectCreated(SWTSkinObject skinObject,
                                Object params)
- Description copied from class: 
SWTSkinObjectAdapter 
- Skin Object was created.  All children are guaranteed to be created.
- Overrides:
 skinObjectCreated in class SkinView
 
 
 
flipSideBarVisibility
public void flipSideBarVisibility()
 
- Since:
 
  - 3.1.1.1
 
 
isVisible
public boolean isVisible()
- Specified by:
 isVisible in interface MultipleDocumentInterface- Overrides:
 isVisible in class SkinView
 
- Returns:
 - the visible
 
 
skinObjectInitialShow
public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
- Overrides:
 skinObjectInitialShow in class BaseMDI
 
- Returns:
 
 
setupPluginViews
protected void setupPluginViews()
- Overrides:
 setupPluginViews in class BaseMDI
 
 
skinObjectDestroyed
public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
- Description copied from class: 
SWTSkinObjectAdapter 
- Skin Object was destroyed
- Overrides:
 skinObjectDestroyed in class BaseMDI
 
 
 
defaultDrop
protected void defaultDrop(org.eclipse.swt.dnd.DropTargetEvent event)
 
- Parameters:
 event - 
 
fillDropDownMenu
protected void fillDropDownMenu(org.eclipse.swt.widgets.Menu menuDropDown,
                                org.eclipse.swt.widgets.TreeItem[] items,
                                int indent)
 
- Parameters:
 menuDropDown - - Since:
 
  - 3.1.1.1
 
 
indexOf
protected int indexOf(MdiEntry entry)
 
 
createHeader
public MdiEntry createHeader(String id,
                             String titleID,
                             String preferredAfterID)
- Specified by:
 createHeader in interface MultipleDocumentInterface
 
 
_setupNewEntry
protected void _setupNewEntry(SideBarEntrySWT entry,
                              String id,
                              boolean expandParent,
                              boolean closeable)
 
 
showEntry
public void showEntry(MdiEntry newEntry)
- Specified by:
 showEntry in interface MultipleDocumentInterface
 
 
createEntryFromEventListener
public MdiEntry createEntryFromEventListener(String parentEntryID,
                                             String parentViewID,
                                             UISWTViewEventListener l,
                                             String id,
                                             boolean closeable,
                                             Object datasource,
                                             String preferredAfterID)
- Specified by:
 createEntryFromEventListener in interface MultipleDocumentInterfaceSWT- Specified by:
 createEntryFromEventListener in class BaseMDI
 
- See Also:
 com.aelitis.azureus.ui.swt.mdi.BaseMDI#createEntryFromEventListener(java.lang.String, org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener, java.lang.String, boolean, java.lang.Object)
 
createEntryFromSkinRef
public MdiEntry createEntryFromSkinRef(String parentID,
                                       String id,
                                       String configID,
                                       String title,
                                       ViewTitleInfo titleInfo,
                                       Object params,
                                       boolean closeable,
                                       String preferredAfterID)
- Description copied from interface: 
MultipleDocumentInterface 
- If you prefix the 'preferedAfterID' string with '~' then the operation will actually
 switch to 'preferedBeforeID'
- Specified by:
 createEntryFromSkinRef in interface MultipleDocumentInterface- Specified by:
 createEntryFromSkinRef in class BaseMDI
 
- Returns:
 
 
 
updateUI
public void updateUI()
- Description copied from interface: 
UIUpdatable 
- Update your UI!
- Specified by:
 updateUI in interface UIUpdatable- Overrides:
 updateUI in class BaseMDI
 
 
 
wasEntryLoadedOnce
protected boolean wasEntryLoadedOnce(String id)
- Specified by:
 wasEntryLoadedOnce in class BaseMDI
 
 
setEntryLoadedOnce
protected void setEntryLoadedOnce(String id)
- Specified by:
 setEntryLoadedOnce in class BaseMDI
 
 
getHeaderFont
public org.eclipse.swt.graphics.Font getHeaderFont()
 
 
getTree
protected org.eclipse.swt.widgets.Tree getTree()
 
 
getEntryFromSkinObject
public MdiEntrySWT getEntryFromSkinObject(PluginUISWTSkinObject pluginSkinObject)
- Specified by:
 getEntryFromSkinObject in interface MultipleDocumentInterfaceSWT
 
 
requestAttention
protected void requestAttention(SideBarEntrySWT entry)
 
 
addItem
public void addItem(MdiEntry entry)
- Overrides:
 addItem in class BaseMDI
 
 
itemSelected
protected void itemSelected(MdiEntry entry)
- Overrides:
 itemSelected in class BaseMDI
 
 
removeItem
public void removeItem(MdiEntry entry)
- Specified by:
 removeItem in interface MultipleDocumentInterface- Overrides:
 removeItem in class BaseMDI
 
 
generate
public void generate(IndentWriter writer)
- Specified by:
 generate in interface AEDiagnosticsEvidenceGenerator
 
 
obfusticatedImage
public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
- Specified by:
 obfusticatedImage in interface ObfusticateImage