com.aelitis.azureus.ui.swt.views.skin
Class SkinView

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      extended by com.aelitis.azureus.ui.swt.views.skin.SkinView
All Implemented Interfaces:
SWTSkinObjectListener
Direct Known Subclasses:
BaseMDI, Browse, DeviceInfoArea, SBC_ActivityTableView, SBC_ActivityView, SBC_ArchivedDownloadsView, SBC_BurnFTUX, SBC_ChatOverview, SBC_DevicesODView, SBC_DevicesView, SBC_DownloadHistoryView, SBC_GenericBrowsePage, SBC_LibraryTableView, SBC_LibraryView, SBC_PlusFTUX, SBC_SubscriptionResultsView, SBC_TagDiscovery, SBC_TagsOverview, SBC_TorrentDetailsView, SearchResultsTabArea, ToolBarView, TopBarView, WelcomeView

public abstract class SkinView
extends SWTSkinObjectAdapter

Converts SWTSkinObjectListener events to method calls, and ensures we only "show" (initialize) once.

Available SkinViews are managed by SkinViewManager

Author:
TuxPaper

Field Summary
protected  SWTSkin skin
           
protected  SWTSkinObject soMain
           
 
Fields inherited from interface com.aelitis.azureus.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_SELECT, EVENT_SHOW, NAMES
 
Constructor Summary
SkinView()
           
 
Method Summary
 SWTSkinObject getMainSkinObject()
           
 SWTSkin getSkin()
           
 SWTSkinObject getSkinObject(String viewID)
           
 boolean isDisposed()
           
 boolean isVisible()
           
 void setMainSkinObject(SWTSkinObject main)
           
 Object skinObjectCreated(SWTSkinObject skinObject, Object params)
          Skin Object was created.
 Object skinObjectDestroyed(SWTSkinObject skinObject, Object params)
          Skin Object was destroyed
 Object skinObjectHidden(SWTSkinObject skinObject, Object params)
          Skin Object was hidden
abstract  Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 Object skinObjectShown(SWTSkinObject skinObject, Object params)
          Skin Object was shown
 
Methods inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
dataSourceChanged, eventOccured, skinObjectSelected, updateLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

soMain

protected SWTSkinObject soMain

skin

protected SWTSkin skin
Constructor Detail

SkinView

public SkinView()
Method Detail

isVisible

public boolean isVisible()
Returns:
the visible

skinObjectShown

public Object skinObjectShown(SWTSkinObject skinObject,
                              Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was shown

Overrides:
skinObjectShown in class SWTSkinObjectAdapter

skinObjectHidden

public Object skinObjectHidden(SWTSkinObject skinObject,
                               Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was hidden

Overrides:
skinObjectHidden in class SWTSkinObjectAdapter

skinObjectDestroyed

public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was destroyed

Overrides:
skinObjectDestroyed in class SWTSkinObjectAdapter

isDisposed

public boolean isDisposed()

skinObjectInitialShow

public abstract Object skinObjectInitialShow(SWTSkinObject skinObject,
                                             Object params)
Parameters:
skinObject -
params -
Returns:

getMainSkinObject

public SWTSkinObject getMainSkinObject()

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 SWTSkinObjectAdapter

setMainSkinObject

public final void setMainSkinObject(SWTSkinObject main)

getSkin

public final SWTSkin getSkin()

getSkinObject

public final SWTSkinObject getSkinObject(String viewID)