Package com.biglybt.ui.swt.devices
Class SBC_DiskOpsView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.devices.SBC_DiskOpsView
-
- All Implemented Interfaces:
CoreOperationListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UIUpdatable
,SWTSkinObjectListener
public class SBC_DiskOpsView extends SkinView implements UIUpdatable, UIPluginViewToolBarListener, CoreOperationListener
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
columnsAdded
private static Core
core
static java.lang.String
TABLE_DISK_OPS
private org.eclipse.swt.widgets.Composite
tableParent
private TableViewSWT<CoreOperation>
tvDiskOps
-
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.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SBC_DiskOpsView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 badprivate void
initColumns()
private void
initTable(org.eclipse.swt.widgets.Composite control)
void
operationAdded(CoreOperation operation)
boolean
operationExecuteRequest(CoreOperation operation)
void
operationRemoved(CoreOperation operation)
private boolean
ourOperation(CoreOperation op)
private void
refreshToolbar()
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setjava.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_DISK_OPS
public static final java.lang.String TABLE_DISK_OPS
- See Also:
- Constant Field Values
-
columnsAdded
private static boolean columnsAdded
-
core
private static Core core
-
tvDiskOps
private TableViewSWT<CoreOperation> tvDiskOps
-
tableParent
private org.eclipse.swt.widgets.Composite tableParent
-
-
Method Detail
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
initColumns
private void initColumns()
-
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
-
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
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control)
-
fillMenu
protected void fillMenu(org.eclipse.swt.widgets.Menu menu)
-
refreshToolbar
private void refreshToolbar()
-
ourOperation
private boolean ourOperation(CoreOperation op)
-
operationExecuteRequest
public boolean operationExecuteRequest(CoreOperation operation)
- Specified by:
operationExecuteRequest
in interfaceCoreOperationListener
- Returns:
- true if the listener has taken responsibility for running an operation task
-
operationAdded
public void operationAdded(CoreOperation operation)
- Specified by:
operationAdded
in interfaceCoreOperationListener
-
operationRemoved
public void operationRemoved(CoreOperation operation)
- Specified by:
operationRemoved
in interfaceCoreOperationListener
-
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
-
updateSelectedContent
public void updateSelectedContent()
-
-