Package com.biglybt.ui.swt.devices
Class SBC_DevicesView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.devices.SBC_DevicesView
-
- All Implemented Interfaces:
DeviceListener
,TranscodeQueueListener
,TranscodeTargetListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UIUpdatable
,SWTSkinObjectListener
public class SBC_DevicesView extends SkinView implements TranscodeQueueListener, UIUpdatable, TranscodeTargetListener, DeviceListener, UIPluginViewToolBarListener
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
columnsAdded
private Device
device
private DeviceManager
device_manager
private java.lang.String
device_name
private int
drag_drop_line_start
private TableRowCore[]
drag_drop_rows
private MdiEntrySWT
mdiEntry
static java.lang.String
TABLE_DEVICE_LIBRARY
static java.lang.String
TABLE_DEVICES
static java.lang.String
TABLE_TRANSCODE_QUEUE
private org.eclipse.swt.widgets.Composite
tableJobsParent
private TranscodeManager
transcode_manager
private TranscodeQueue
transcode_queue
private TranscodeTarget
transTarget
private TableViewSWT<?>
tvDevices
private TableViewSWT<TranscodeFile>
tvFiles
-
Fields inherited from interface com.biglybt.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMES
-
Fields inherited from interface com.biglybt.core.devices.TranscodeTargetListener
CT_PROPERTY
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SBC_DevicesView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addCategory(TranscodeFile[] files)
private void
addCategorySubMenu(org.eclipse.swt.widgets.Menu menu_category, TranscodeFile[] files)
private void
addTagsSubMenu(org.eclipse.swt.widgets.Menu menu_tags, TranscodeFile[] files)
private void
assignSelectedToCategory(Category category, TranscodeFile[] files)
private void
createDragDrop(TableViewSWT<?> table)
protected void
deleteFiles(TranscodeFile[] toRemove, int startIndex)
private void
deleteNoCheck(TranscodeFile file)
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)
private TranscodeFile
getFileInTable(TranscodeFile file)
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badprivate void
initAdvInfo(SWTSkinObject soAdvInfo)
private void
initColumns(Core core)
private void
initDeviceListTable(org.eclipse.swt.widgets.Composite control)
private void
initTranscodeQueueTable(org.eclipse.swt.widgets.Composite control)
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 setprotected void
setAdditionalInfoTitle(boolean newVisibility)
java.lang.Object
skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was hiddenjava.lang.Object
skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
java.lang.Object
skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was shownboolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateSelectedContent()
void
updateUI()
Update your UI!-
Methods inherited from class com.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectDestroyed
-
Methods inherited from class com.biglybt.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
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
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
-
columnsAdded
private static boolean columnsAdded
-
device_manager
private DeviceManager device_manager
-
transcode_manager
private TranscodeManager transcode_manager
-
transcode_queue
private TranscodeQueue transcode_queue
-
tvDevices
private TableViewSWT<?> tvDevices
-
drag_drop_line_start
private int drag_drop_line_start
-
drag_drop_rows
private TableRowCore[] drag_drop_rows
-
tvFiles
private TableViewSWT<TranscodeFile> tvFiles
-
mdiEntry
private MdiEntrySWT mdiEntry
-
tableJobsParent
private org.eclipse.swt.widgets.Composite tableJobsParent
-
device
private Device device
-
device_name
private java.lang.String device_name
-
transTarget
private TranscodeTarget transTarget
-
-
Method Detail
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
initColumns
private void initColumns(Core core)
- Since:
- 4.1.0.5
-
skinObjectShown
public java.lang.Object skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was shown- Overrides:
skinObjectShown
in classSkinView
-
initAdvInfo
private void initAdvInfo(SWTSkinObject soAdvInfo)
- Parameters:
soAdvInfo
-- Since:
- 4.1.0.5
-
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 classSkinView
-
initTranscodeQueueTable
private void initTranscodeQueueTable(org.eclipse.swt.widgets.Composite control)
- Parameters:
control
-- Since:
- 4.1.0.5
-
fillMenu
protected void fillMenu(org.eclipse.swt.widgets.Menu menu)
- Parameters:
menu
-- Since:
- 4.0.0.5
-
addCategorySubMenu
private void addCategorySubMenu(org.eclipse.swt.widgets.Menu menu_category, TranscodeFile[] files)
-
addCategory
private void addCategory(TranscodeFile[] files)
-
assignSelectedToCategory
private void assignSelectedToCategory(Category category, TranscodeFile[] files)
-
addTagsSubMenu
private void addTagsSubMenu(org.eclipse.swt.widgets.Menu menu_tags, TranscodeFile[] files)
-
deviceChanged
public void deviceChanged(Device device)
- Specified by:
deviceChanged
in interfaceDeviceListener
-
initDeviceListTable
private void initDeviceListTable(org.eclipse.swt.widgets.Composite control)
- Parameters:
parent
-- Since:
- 4.1.0.5
-
jobAdded
public void jobAdded(TranscodeJob job)
- Specified by:
jobAdded
in interfaceTranscodeQueueListener
-
jobChanged
public void jobChanged(TranscodeJob job)
- Specified by:
jobChanged
in interfaceTranscodeQueueListener
-
jobRemoved
public void jobRemoved(TranscodeJob job)
- Specified by:
jobRemoved
in interfaceTranscodeQueueListener
-
getFileInTable
private TranscodeFile getFileInTable(TranscodeFile file)
-
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 interfaceUIPluginViewToolBarListener
-
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 interfaceUIToolBarActivationListener
-
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 interfaceUIUpdatable
- Returns:
- some name
-
updateUI
public void updateUI()
Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
fileAdded
public void fileAdded(TranscodeFile file)
- Specified by:
fileAdded
in interfaceTranscodeTargetListener
-
fileChanged
public void fileChanged(TranscodeFile file, int type, java.lang.Object data)
- Specified by:
fileChanged
in interfaceTranscodeTargetListener
-
fileRemoved
public void fileRemoved(TranscodeFile file)
- Specified by:
fileRemoved
in interfaceTranscodeTargetListener
-
deleteFiles
protected void deleteFiles(TranscodeFile[] toRemove, int startIndex)
-
deleteNoCheck
private void deleteNoCheck(TranscodeFile file)
-
createDragDrop
private void createDragDrop(TableViewSWT<?> table)
-
updateSelectedContent
public void updateSelectedContent()
-
-