Package com.biglybt.ui.swt.views.skin
Class SBC_ActivityTableView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.views.skin.SBC_ActivityTableView
-
- All Implemented Interfaces:
ActivitiesListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UIUpdatable
,SWTSkinObjectListener
public class SBC_ActivityTableView extends SkinView implements UIUpdatable, UIPluginViewToolBarListener, ActivitiesListener
-
-
Field Summary
Fields Modifier and Type Field Description private static ActivitiesListener
activitiesListener
private static int[]
COLOR_UNVIEWED_ENTRIES
private static MdiEntry
mdi_entry
private java.lang.String
tableID
private TableViewSWT<ActivitiesEntry>
view
private org.eclipse.swt.widgets.Composite
viewComposite
private int
viewMode
-
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_ActivityTableView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ISelectedContent[]
getCurrentlySelectedContent()
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badTableViewSWT
getView()
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprivate void
removeEntries(ActivitiesEntry[] toRemove, int startIndex)
protected void
removeSelected()
static void
setupSidebarEntry(MultipleDocumentInterface mdi)
java.lang.Object
skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was destroyedjava.lang.Object
skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateUI()
Update your UI!void
vuzeNewsEntriesAdded(ActivitiesEntry[] entries)
void
vuzeNewsEntriesRemoved(ActivitiesEntry[] entries)
void
vuzeNewsEntryChanged(ActivitiesEntry entry)
-
Methods inherited from class com.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectHidden, skinObjectShown
-
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
-
COLOR_UNVIEWED_ENTRIES
private static int[] COLOR_UNVIEWED_ENTRIES
-
activitiesListener
private static ActivitiesListener activitiesListener
-
mdi_entry
private static MdiEntry mdi_entry
-
view
private TableViewSWT<ActivitiesEntry> view
-
tableID
private java.lang.String tableID
-
viewComposite
private org.eclipse.swt.widgets.Composite viewComposite
-
viewMode
private int viewMode
-
-
Method Detail
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
skinObjectDestroyed
public java.lang.Object skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was destroyed- Overrides:
skinObjectDestroyed
in classSkinView
-
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
-
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
-
getCurrentlySelectedContent
public ISelectedContent[] getCurrentlySelectedContent()
-
vuzeNewsEntriesAdded
public void vuzeNewsEntriesAdded(ActivitiesEntry[] entries)
- Specified by:
vuzeNewsEntriesAdded
in interfaceActivitiesListener
-
vuzeNewsEntriesRemoved
public void vuzeNewsEntriesRemoved(ActivitiesEntry[] entries)
- Specified by:
vuzeNewsEntriesRemoved
in interfaceActivitiesListener
-
vuzeNewsEntryChanged
public void vuzeNewsEntryChanged(ActivitiesEntry entry)
- Specified by:
vuzeNewsEntryChanged
in interfaceActivitiesListener
-
removeEntries
private void removeEntries(ActivitiesEntry[] toRemove, int startIndex)
-
removeSelected
protected void removeSelected()
-
getView
public TableViewSWT getView()
-
setupSidebarEntry
public static void setupSidebarEntry(MultipleDocumentInterface mdi)
-
-