com.aelitis.azureus.ui.swt.devices
Class SBC_DevicesView

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      extended by com.aelitis.azureus.ui.swt.views.skin.SkinView
          extended by com.aelitis.azureus.ui.swt.devices.SBC_DevicesView
All Implemented Interfaces:
DeviceListener, TranscodeQueueListener, TranscodeTargetListener, UIUpdatable, SWTSkinObjectListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener

public class SBC_DevicesView
extends SkinView
implements TranscodeQueueListener, UIUpdatable, TranscodeTargetListener, DeviceListener, UIPluginViewToolBarListener

Author:
TuxPaper

Field Summary
static String TABLE_DEVICE_LIBRARY
           
static String TABLE_DEVICES
           
static String TABLE_TRANSCODE_QUEUE
           
 
Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
skin, soMain
 
Fields inherited from interface com.aelitis.azureus.core.devices.TranscodeTargetListener
CT_PROPERTY
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
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
SBC_DevicesView()
           
 
Method Summary
protected  void deleteFiles(TranscodeFile[] toRemove, int startIndex)
           
 void deviceChanged(Device device)
           
 void fileAdded(TranscodeFile file)
           
 void fileChanged(TranscodeFile file, int type, Object data)
           
 void fileRemoved(TranscodeFile file)
           
protected  void fillMenu(org.eclipse.swt.widgets.Menu menu)
           
 String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
 void jobAdded(TranscodeJob job)
           
 void jobChanged(TranscodeJob job)
           
 void jobRemoved(TranscodeJob job)
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
protected  void setAdditionalInfoTitle(boolean newVisibility)
           
 Object skinObjectHidden(SWTSkinObject skinObject, Object params)
          Skin Object was hidden
 Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 Object skinObjectShown(SWTSkinObject skinObject, Object params)
          Skin Object was shown
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 void updateSelectedContent()
           
 void updateUI()
          Update your UI!
 
Methods inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
getMainSkinObject, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectDestroyed
 
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

TABLE_DEVICES

public static final String TABLE_DEVICES
See Also:
Constant Field Values

TABLE_TRANSCODE_QUEUE

public static final String TABLE_TRANSCODE_QUEUE
See Also:
Constant Field Values

TABLE_DEVICE_LIBRARY

public static final String TABLE_DEVICE_LIBRARY
See Also:
Constant Field Values
Constructor Detail

SBC_DevicesView

public SBC_DevicesView()
Method Detail

skinObjectInitialShow

public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
Specified by:
skinObjectInitialShow in class SkinView
Returns:

skinObjectShown

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

Overrides:
skinObjectShown in class SkinView

setAdditionalInfoTitle

protected void setAdditionalInfoTitle(boolean newVisibility)
Parameters:
newVisibility -
Since:
4.1.0.5

skinObjectHidden

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

Overrides:
skinObjectHidden in class SkinView

fillMenu

protected void fillMenu(org.eclipse.swt.widgets.Menu menu)
Parameters:
menu -
Since:
4.0.0.5

deviceChanged

public void deviceChanged(Device device)
Specified by:
deviceChanged in interface DeviceListener

jobAdded

public void jobAdded(TranscodeJob job)
Specified by:
jobAdded in interface TranscodeQueueListener

jobChanged

public void jobChanged(TranscodeJob job)
Specified by:
jobChanged in interface TranscodeQueueListener

jobRemoved

public void jobRemoved(TranscodeJob job)
Specified by:
jobRemoved in interface TranscodeQueueListener

refreshToolBarItems

public void refreshToolBarItems(Map<String,Long> list)
Description copied from interface: UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set

Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener

toolBarItemActivated

public boolean toolBarItemActivated(ToolBarItem item,
                                    long activationType,
                                    Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

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

updateUI

public void updateUI()
Description copied from interface: UIUpdatable
Update your UI!

Specified by:
updateUI in interface UIUpdatable

fileAdded

public void fileAdded(TranscodeFile file)
Specified by:
fileAdded in interface TranscodeTargetListener

fileChanged

public void fileChanged(TranscodeFile file,
                        int type,
                        Object data)
Specified by:
fileChanged in interface TranscodeTargetListener

fileRemoved

public void fileRemoved(TranscodeFile file)
Specified by:
fileRemoved in interface TranscodeTargetListener

deleteFiles

protected void deleteFiles(TranscodeFile[] toRemove,
                           int startIndex)

updateSelectedContent

public void updateSelectedContent()