com.aelitis.azureus.ui.swt.mdi
Class BaseMDI
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
- All Implemented Interfaces: 
 - UIUpdatable, MultipleDocumentInterface, MultipleDocumentInterfaceSWT, SWTSkinObjectListener
 
- Direct Known Subclasses: 
 - SideBar, TabbedMDI
 
public abstract class BaseMDI
- extends SkinView
- implements MultipleDocumentInterfaceSWT, UIUpdatable
  
 
 
| Fields inherited from interface com.aelitis.azureus.ui.mdi.MultipleDocumentInterface | 
SIDEBAR_HEADER_DEVICES, SIDEBAR_HEADER_DISCOVERY, SIDEBAR_HEADER_DVD, SIDEBAR_HEADER_PLUGINS, SIDEBAR_HEADER_SUBSCRIPTIONS, SIDEBAR_HEADER_TRANSFERS, SIDEBAR_HEADER_VUZE, SIDEBAR_POS_FIRST, SIDEBAR_SECTION_ABOUTPLUGINS, SIDEBAR_SECTION_ACTIVITIES, SIDEBAR_SECTION_BETAPROGRAM, SIDEBAR_SECTION_BURN_INFO, SIDEBAR_SECTION_DEVICES, SIDEBAR_SECTION_GAMES, SIDEBAR_SECTION_LIBRARY, SIDEBAR_SECTION_LIBRARY_CD, SIDEBAR_SECTION_LIBRARY_DL, SIDEBAR_SECTION_LIBRARY_UNOPENED, SIDEBAR_SECTION_PLUGINS, SIDEBAR_SECTION_PLUS, SIDEBAR_SECTION_SEARCH, SIDEBAR_SECTION_SUBSCRIPTIONS, SIDEBAR_SECTION_TAG_DISCOVERY, SIDEBAR_SECTION_TAGS, SIDEBAR_SECTION_WELCOME, SIDEBAR_TORRENT_DETAILS_PREFIX | 
 
 
 
| 
Method Summary | 
 void | 
addListener(MdiEntryLoadedListener l)
 
            | 
 void | 
addListener(MdiListener l)
 
            | 
 void | 
closeEntry(String id)
 
            | 
abstract  MdiEntry | 
createEntryFromEventListener(String parentID,
                             UISWTViewEventListener l,
                             String id,
                             boolean closeable,
                             Object datasource,
                             String preferedAfterID)
 
          If you prefix the 'preferedAfterID' string with '~' then the operation will actually
 switch to 'preferedBeforeID' | 
abstract  MdiEntry | 
createEntryFromSkinRef(String parentID,
                       String id,
                       String configID,
                       String title,
                       ViewTitleInfo titleInfo,
                       Object params,
                       boolean closeable,
                       String preferedAfterID)
 
          If you prefix the 'preferedAfterID' string with '~' then the operation will actually
 switch to 'preferedBeforeID' | 
abstract  MdiEntry | 
createEntryFromView(String parentID,
                    UISWTViewCore iview,
                    String id,
                    Object datasource,
                    boolean closeable,
                    boolean show,
                    boolean expand)
 
            | 
 boolean | 
entryExists(String id)
 
            | 
 List<MdiEntry> | 
getChildrenOf(String id)
 
            | 
 UISWTViewCore | 
getCoreViewFromID(String id)
 
            | 
 MdiEntry | 
getCurrentEntry()
 
            | 
 MdiEntrySWT | 
getCurrentEntrySWT()
 
            | 
 MdiEntry[] | 
getEntries()
 
            | 
 MdiEntrySWT[] | 
getEntriesSWT()
 
            | 
 MdiEntry | 
getEntry(String id)
 
            | 
 MdiEntry | 
getEntryBySkinView(Object skinView)
 
            | 
 MdiEntrySWT | 
getEntrySWT(String id)
 
            | 
 String[] | 
getPreferredOrder()
 
            | 
 String | 
getUpdateUIName()
 
          A name for this UIUpdatable so we can track who's being bad | 
 void | 
informAutoOpenSet(MdiEntry entry,
                  Map<String,Object> autoOpenInfo)
 
            | 
 void | 
loadCloseables()
 
            | 
 boolean | 
loadEntryByID(String id,
              boolean activate)
 
            | 
 boolean | 
loadEntryByID(String id,
              boolean activate,
              boolean onlyLoadOnce,
              Object datasource)
 
            | 
 void | 
registerEntry(String id,
              MdiEntryCreationListener l)
 
            | 
 void | 
registerEntry(String id,
              MdiEntryCreationListener2 l)
 
            | 
 void | 
removeEntryAutoOpen(String id)
 
            | 
 void | 
removeItem(MdiEntry entry)
 
            | 
 void | 
removeListener(MdiEntryLoadedListener l)
 
            | 
 void | 
removeListener(MdiListener l)
 
            | 
 void | 
saveCloseables()
 
            | 
 void | 
setEntryAutoOpen(String id,
                 Object datasource)
 
            | 
protected abstract  void | 
setEntryLoadedOnce(String id)
 
            | 
 void | 
setPreferredOrder(String[] preferredOrder)
 
            | 
protected  void | 
setupPluginViews()
 
            | 
 boolean | 
showEntryByID(String id)
 
            | 
 Object | 
skinObjectDestroyed(SWTSkinObject skinObject,
                    Object params)
 
          Skin Object was destroyed | 
 Object | 
skinObjectInitialShow(SWTSkinObject skinObject,
                      Object params)
 
            | 
 void | 
triggerEntryLoadedListeners(MdiEntry entry)
 
            | 
protected  void | 
triggerSelectionListener(MdiEntry newEntry,
                         MdiEntry oldEntry)
 
            | 
 Object | 
updateLanguage(SWTSkinObject skinObject,
               Object params)
 
          skinObject needs to update any text | 
 void | 
updateUI()
 
          Update your UI! | 
protected abstract  boolean | 
wasEntryLoadedOnce(String id)
 
            | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
currentEntry
protected MdiEntrySWT currentEntry
mapIdToEntry
protected Map<String,MdiEntrySWT> mapIdToEntry
BaseMDI
public BaseMDI()
addListener
public void addListener(MdiListener l)
- Specified by:
 addListener in interface MultipleDocumentInterface
 
 
removeListener
public void removeListener(MdiListener l)
- Specified by:
 removeListener in interface MultipleDocumentInterface
 
 
addListener
public void addListener(MdiEntryLoadedListener l)
- Specified by:
 addListener in interface MultipleDocumentInterface
 
 
removeListener
public void removeListener(MdiEntryLoadedListener l)
- Specified by:
 removeListener in interface MultipleDocumentInterface
 
 
triggerSelectionListener
protected void triggerSelectionListener(MdiEntry newEntry,
                                        MdiEntry oldEntry)
 
 
triggerEntryLoadedListeners
public void triggerEntryLoadedListeners(MdiEntry entry)
 
 
closeEntry
public void closeEntry(String id)
- Specified by:
 closeEntry in interface MultipleDocumentInterface
 
 
createEntryFromEventListener
public abstract MdiEntry createEntryFromEventListener(String parentID,
                                                      UISWTViewEventListener l,
                                                      String id,
                                                      boolean closeable,
                                                      Object datasource,
                                                      String preferedAfterID)
- Description copied from interface: 
MultipleDocumentInterfaceSWT 
- If you prefix the 'preferedAfterID' string with '~' then the operation will actually
 switch to 'preferedBeforeID'
- Specified by:
 createEntryFromEventListener in interface MultipleDocumentInterfaceSWT
 
- Returns:
 
 
 
createEntryFromView
public abstract MdiEntry createEntryFromView(String parentID,
                                             UISWTViewCore iview,
                                             String id,
                                             Object datasource,
                                             boolean closeable,
                                             boolean show,
                                             boolean expand)
- Specified by:
 createEntryFromView in interface MultipleDocumentInterfaceSWT
 
 
createEntryFromSkinRef
public abstract MdiEntry createEntryFromSkinRef(String parentID,
                                                String id,
                                                String configID,
                                                String title,
                                                ViewTitleInfo titleInfo,
                                                Object params,
                                                boolean closeable,
                                                String preferedAfterID)
- 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
 
- Returns:
 
 
 
getCurrentEntry
public MdiEntry getCurrentEntry()
- Specified by:
 getCurrentEntry in interface MultipleDocumentInterface
 
 
getCurrentEntrySWT
public MdiEntrySWT getCurrentEntrySWT()
- Specified by:
 getCurrentEntrySWT in interface MultipleDocumentInterfaceSWT
 
 
getEntries
public MdiEntry[] getEntries()
- Specified by:
 getEntries in interface MultipleDocumentInterface
 
 
getEntriesSWT
public MdiEntrySWT[] getEntriesSWT()
 
 
getEntry
public MdiEntry getEntry(String id)
- Specified by:
 getEntry in interface MultipleDocumentInterface
 
 
getEntrySWT
public MdiEntrySWT getEntrySWT(String id)
- Specified by:
 getEntrySWT in interface MultipleDocumentInterfaceSWT
 
 
getEntryBySkinView
public MdiEntry getEntryBySkinView(Object skinView)
- Specified by:
 getEntryBySkinView in interface MultipleDocumentInterfaceSWT
 
- Parameters:
 skinView - 
- Returns:
 - Since:
 
  - 3.1.1.1
 
 
getCoreViewFromID
public UISWTViewCore getCoreViewFromID(String id)
- Specified by:
 getCoreViewFromID in interface MultipleDocumentInterfaceSWT
 
 
getUpdateUIName
public String getUpdateUIName()
- Description copied from interface: 
UIUpdatable 
- A name for this UIUpdatable so we can track who's being bad
- Specified by:
 getUpdateUIName in interface UIUpdatable
 
- Returns:
 - some name
 
 
 
registerEntry
public void registerEntry(String id,
                          MdiEntryCreationListener2 l)
- Specified by:
 registerEntry in interface MultipleDocumentInterface
 
 
registerEntry
public void registerEntry(String id,
                          MdiEntryCreationListener l)
- Specified by:
 registerEntry in interface MultipleDocumentInterface
 
 
showEntryByID
public boolean showEntryByID(String id)
- Specified by:
 showEntryByID in interface MultipleDocumentInterface
 
 
skinObjectInitialShow
public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
- Specified by:
 skinObjectInitialShow in class SkinView
 
- Returns:
 
 
skinObjectDestroyed
public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
- Description copied from class: 
SWTSkinObjectAdapter 
- Skin Object was destroyed
- Overrides:
 skinObjectDestroyed in class SkinView
 
 
 
updateUI
public void updateUI()
- Description copied from interface: 
UIUpdatable 
- Update your UI!
- Specified by:
 updateUI in interface UIUpdatable
 
 
 
loadEntryByID
public boolean loadEntryByID(String id,
                             boolean activate)
- Specified by:
 loadEntryByID in interface MultipleDocumentInterface
 
 
loadEntryByID
public boolean loadEntryByID(String id,
                             boolean activate,
                             boolean onlyLoadOnce,
                             Object datasource)
- Specified by:
 loadEntryByID in interface MultipleDocumentInterface
 
 
setEntryLoadedOnce
protected abstract void setEntryLoadedOnce(String id)
 
 
wasEntryLoadedOnce
protected abstract boolean wasEntryLoadedOnce(String id)
 
 
entryExists
public boolean entryExists(String id)
- Specified by:
 entryExists in interface MultipleDocumentInterface
 
 
setEntryAutoOpen
public void setEntryAutoOpen(String id,
                             Object datasource)
- Specified by:
 setEntryAutoOpen in interface MultipleDocumentInterface
 
 
removeEntryAutoOpen
public void removeEntryAutoOpen(String id)
- Specified by:
 removeEntryAutoOpen in interface MultipleDocumentInterface
 
 
setupPluginViews
protected void setupPluginViews()
 
 
informAutoOpenSet
public void informAutoOpenSet(MdiEntry entry,
                              Map<String,Object> autoOpenInfo)
- Specified by:
 informAutoOpenSet in interface MultipleDocumentInterface
 
 
loadCloseables
public void loadCloseables()
 
 
saveCloseables
public void saveCloseables()
 
 
removeItem
public void removeItem(MdiEntry entry)
- Specified by:
 removeItem in interface MultipleDocumentInterface
 
 
getChildrenOf
public List<MdiEntry> getChildrenOf(String id)
- Specified by:
 getChildrenOf in interface MultipleDocumentInterface
 
 
updateLanguage
public Object updateLanguage(SWTSkinObject skinObject,
                             Object params)
- Description copied from class: 
SWTSkinObjectAdapter 
- skinObject needs to update any text
- Overrides:
 updateLanguage in class SWTSkinObjectAdapter
 
 
 
setPreferredOrder
public void setPreferredOrder(String[] preferredOrder)
- Specified by:
 setPreferredOrder in interface MultipleDocumentInterface
 
 
getPreferredOrder
public String[] getPreferredOrder()
- Specified by:
 getPreferredOrder in interface MultipleDocumentInterface