Class SBC_AllTrackersView
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
com.biglybt.ui.swt.views.skin.SkinView
com.biglybt.ui.swt.views.skin.SBC_AllTrackersView
- All Implemented Interfaces:
AllTrackersManager.AllTrackersListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableSelectionListener, TableViewFilterCheck<SBC_AllTrackersView.AllTrackersViewEntry>, UIUpdatable, SWTSkinObjectListener, TableViewSWTMenuFillListener
public class SBC_AllTrackersView
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<SBC_AllTrackersView.AllTrackersViewEntry>, TableViewSWTMenuFillListener, TableSelectionListener, AllTrackersManager.AllTrackersListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Objectprivate booleanprivate static final Class<SBC_AllTrackersView.AllTrackersViewEntry> private Tagprivate static final Stringprivate org.eclipse.swt.widgets.Composite(package private) TableViewSWT<SBC_AllTrackersView.AllTrackersViewEntry> Fields inherited from interface SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMESFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddRemovalMenu(List<Tag> all_tags, List<Tag> tracker_prop_tags, List<AllTrackersManager.AllTrackersTracker> trackers, boolean hasSelection, org.eclipse.swt.widgets.Menu menu, boolean is_future) voidaddThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menu) Create a SubMenu for column specific tasks.dataSourceChanged(SWTSkinObject skinObject, Object params) voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voidbooleanfilterCheck(SBC_AllTrackersView.AllTrackersViewEntry ds, String filter, boolean regex, boolean confusable) voidvoidfocusChanged(TableRowCore focus) private MdiEntrySWTprivate TagA name for this UIUpdatable so we can track who's being badprotected voidprivate voidinitTable(org.eclipse.swt.widgets.Composite control) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate static voidvoidselected(TableRowCore[] row) private voidsetDataSource(Object params) skinObjectDestroyed(SWTSkinObject skinObject, Object params) Skin Object was destroyedskinObjectHidden(SWTSkinObject skinObject, Object params) Skin Object was hiddenskinObjectInitialShow(SWTSkinObject skinObject, Object params) skinObjectShown(SWTSkinObject skinObject, Object params) Skin Object was shownbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidvoidvoidupdateSelectedContent(boolean force) voidupdateUI()Update your UI!Methods inherited from class SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreatedMethods inherited from class SWTSkinObjectAdapter
eventOccured, skinObjectSelected, updateLanguageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableSelectionListener
defaultSelected, focusRequested, selectionChangedMethods inherited from interface TableViewFilterCheck
filterCheck, filterSet, setRefilterCache, viewChangedMethods inherited from interface UIPluginViewToolBarListener
isActive
-
Field Details
-
TABLE_NAME
- See Also:
-
PLUGIN_DS_TYPE
-
col_filter_helper
-
tv
-
table_parent
private org.eclipse.swt.widgets.Composite table_parent -
columnsAdded
private boolean columnsAdded -
listener_added
private boolean listener_added -
datasource
-
tracker_map
private Map<AllTrackersManager.AllTrackersTracker, SBC_AllTrackersView.AllTrackersViewEntry> tracker_map -
selection_tag
-
-
Constructor Details
-
SBC_AllTrackersView
public SBC_AllTrackersView()
-
-
Method Details
-
skinObjectInitialShow
- Specified by:
skinObjectInitialShowin classSkinView- Parameters:
skinObject-params-- Returns:
-
initColumns
protected void initColumns() -
skinObjectHidden
Description copied from class:SWTSkinObjectAdapterSkin Object was hidden- Overrides:
skinObjectHiddenin classSkinView
-
skinObjectShown
Description copied from class:SWTSkinObjectAdapterSkin Object was shown- Overrides:
skinObjectShownin classSkinView
-
skinObjectDestroyed
Description copied from class:SWTSkinObjectAdapterSkin Object was destroyed- Overrides:
skinObjectDestroyedin classSkinView
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control) -
registerPluginViews
private static void registerPluginViews() -
getSelectionTag
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
getActiveView
-
updateUI
public void updateUI()Description copied from interface:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
getUpdateUIName
Description copied from interface:UIUpdatableA name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUINamein interfaceUIUpdatable- Returns:
- some name
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListenerCreate a SubMenu for column specific tasks. Everytime the user opens the context menu, the "This Column" submenu is cleared, and this function is called to refill it.- Specified by:
addThisColumnSubMenuin interfaceTableViewSWTMenuFillListener- Parameters:
columnName- The name of the column the user clicked onmenu- the menu to fill with MenuItems
-
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
addRemovalMenu
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
updateSelectedContent
public void updateSelectedContent() -
updateSelectedContent
public void updateSelectedContent(boolean force) -
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
trackerEventOccurred
- Specified by:
trackerEventOccurredin interfaceAllTrackersManager.AllTrackersListener
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<SBC_AllTrackersView.AllTrackersViewEntry>
-
filterCheck
public boolean filterCheck(SBC_AllTrackersView.AllTrackersViewEntry ds, String filter, boolean regex, boolean confusable) - Specified by:
filterCheckin interfaceTableViewFilterCheck<SBC_AllTrackersView.AllTrackersViewEntry>
-
setDataSource
-
dataSourceChanged
- Overrides:
dataSourceChangedin classSWTSkinObjectAdapter
-