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 java.lang.String TABLE_DEVICE_LIBRARY
           
static java.lang.String TABLE_DEVICES
           
static java.lang.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, java.lang.Object data)
           
 void fileRemoved(TranscodeFile file)
           
protected  void fillMenu(org.eclipse.swt.widgets.Menu menu)
           
 java.lang.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(java.util.Map<java.lang.String,java.lang.Long> list)
          Fill in list with the toolbar ids and states you wish to set
protected  void setAdditionalInfoTitle(boolean newVisibility)
           
 java.lang.Object skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
          Skin Object was hidden
 java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
           
 java.lang.Object skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
          Skin Object was shown
 boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.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 java.lang.String TABLE_DEVICES
See Also:
Constant Field Values

TABLE_TRANSCODE_QUEUE

public static final java.lang.String TABLE_TRANSCODE_QUEUE
See Also:
Constant Field Values

TABLE_DEVICE_LIBRARY

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

SBC_DevicesView

public SBC_DevicesView()
Method Detail

skinObjectInitialShow

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

skinObjectShown

public java.lang.Object skinObjectShown(SWTSkinObject skinObject,
                                        java.lang.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 java.lang.Object skinObjectHidden(SWTSkinObject skinObject,
                                         java.lang.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(java.util.Map<java.lang.String,java.lang.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,
                                    java.lang.Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

getUpdateUIName

public java.lang.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,
                        java.lang.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()