Class SBC_TagsOverview
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
com.biglybt.ui.swt.views.skin.SkinView
com.biglybt.ui.swt.views.skin.SBC_TagsOverview
- All Implemented Interfaces:
ParameterListener, GlobalManagerEventListener, TagManagerListener, TagTypeListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableSelectionListener, TableViewFilterCheck<Tag>, UIUpdatable, SWTSkinObjectListener, TableViewSWTMenuFillListener, EventListener, org.eclipse.swt.events.KeyListener
public class SBC_TagsOverview
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<Tag>, TagManagerListener, TagTypeListener, TableViewSWTMenuFillListener, TableSelectionListener, org.eclipse.swt.events.KeyListener, ParameterListener, GlobalManagerEventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface TagTypeListener
TagTypeListener.TagEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate GlobalManagerprivate booleanprivate booleanprivate org.eclipse.swt.widgets.Compositeprivate static final Stringprivate boolean(package private) TableViewSWT<Tag> 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 TypeMethodDescriptionvoidaddThisColumnSubMenu(String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.dataSourceChanged(SWTSkinObject skinObject, Object params) voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voideventOccurred(GlobalManagerEvent event) voidbooleanfilterCheck(Tag tag, String filter, boolean regex, boolean confusable) voidvoidfocusChanged(TableRowCore focus) private MdiEntrySWTA name for this UIUpdatable so we can track who's being badprivate voidhandleProps(Tag tag) protected voidprivate voidinitTable(org.eclipse.swt.widgets.Composite control) voidkeyPressed(org.eclipse.swt.events.KeyEvent e) voidkeyReleased(org.eclipse.swt.events.KeyEvent e) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidparameterChanged(String parameterName) Called, when a parameter has changed.voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate static voidvoidselected(TableRowCore[] row) skinObjectDestroyed(SWTSkinObject skinObject, Object params) Skin Object was destroyedskinObjectHidden(SWTSkinObject skinObject, Object params) Skin Object was hiddenskinObjectInitialShow(SWTSkinObject skinObject, Object params) skinObjectSelected(SWTSkinObject skinObject, Object params) Skin Object was selected (activated)skinObjectShown(SWTSkinObject skinObject, Object params) Skin Object was shownvoidvoidtagChanged(Tag tag) voidvoidtagRemoved(Tag tag) voidtagTypeAdded(TagManager manager, TagType tag_type) voidtagTypeChanged(TagType tag_type) General change not specific to one tagvoidtagTypeRemoved(TagManager manager, TagType tag_type) booleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidvoidupdateSelectedContent(boolean force) voidupdateUI()Update your UI!Methods inherited from class SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreatedMethods inherited from class SWTSkinObjectAdapter
eventOccured, 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_TAGS
- See Also:
-
PLUGIN_DS_TYPE
-
tv
TableViewSWT<Tag> tv -
table_parent
private org.eclipse.swt.widgets.Composite table_parent -
columnsAdded
private boolean columnsAdded -
tm_listener_added
private boolean tm_listener_added -
gm_listener_added
private boolean gm_listener_added -
datasources_for_selection
-
show_swarm_tags
private boolean show_swarm_tags -
global_manager
-
-
Constructor Details
-
SBC_TagsOverview
public SBC_TagsOverview()
-
-
Method Details
-
parameterChanged
Description copied from interface:ParameterListenerCalled, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChangedin interfaceParameterListener- Parameters:
parameterName- the name of the parameter that has changed
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
getActiveView
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<Tag>
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
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
-
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) - Parameters:
control-- Since:
- 4.6.0.5
-
registerPluginViews
private static void registerPluginViews() -
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
eventOccurred
- Specified by:
eventOccurredin interfaceGlobalManagerEventListener
-
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:
sColumnName- The name of the column the user clicked onmenuThisColumn- the menu to fill with MenuItems
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
updateSelectedContent
public void updateSelectedContent() -
updateSelectedContent
public void updateSelectedContent(boolean force) -
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
filterCheck
- Specified by:
filterCheckin interfaceTableViewFilterCheck<Tag>
-
tagTypeAdded
- Specified by:
tagTypeAddedin interfaceTagManagerListener
-
tagTypeRemoved
- Specified by:
tagTypeRemovedin interfaceTagManagerListener
-
tagTypeChanged
Description copied from interface:TagTypeListenerGeneral change not specific to one tag- Specified by:
tagTypeChangedin interfaceTagTypeListener
-
tagEventOccurred
- Specified by:
tagEventOccurredin interfaceTagTypeListener
-
tagAdded
-
tagChanged
-
handleProps
-
tagRemoved
-
dataSourceChanged
- Overrides:
dataSourceChangedin classSWTSkinObjectAdapter
-
skinObjectSelected
Description copied from class:SWTSkinObjectAdapterSkin Object was selected (activated)- Overrides:
skinObjectSelectedin classSWTSkinObjectAdapter
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent e) - Specified by:
keyPressedin interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e) - Specified by:
keyReleasedin interfaceorg.eclipse.swt.events.KeyListener
-