Package com.biglybt.ui.swt.views.skin
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:
TagManagerListener
,TagTypeListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,TableSelectionListener
,TableViewFilterCheck<Tag>
,UIUpdatable
,SWTSkinObjectListener
,TableViewSWTMenuFillListener
,java.util.EventListener
,org.eclipse.swt.events.KeyListener
,org.eclipse.swt.internal.SWTEventListener
public class SBC_TagsOverview extends SkinView implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<Tag>, TagManagerListener, TagTypeListener, TableViewSWTMenuFillListener, TableSelectionListener, org.eclipse.swt.events.KeyListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagTypeListener
TagTypeListener.TagEvent
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
columnsAdded
private java.lang.Object
datasource
static java.lang.Class<Tag>
PLUGIN_DS_TYPE
private org.eclipse.swt.widgets.Composite
table_parent
private static java.lang.String
TABLE_TAGS
private boolean
tm_listener_added
(package private) TableViewSWT<Tag>
tv
-
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_TagsOverview()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addThisColumnSubMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
Create a SubMenu for column specific tasks.java.lang.Object
dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
void
defaultSelected(TableRowCore[] rows, int stateMask)
void
deselected(TableRowCore[] rows)
void
fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
boolean
filterCheck(Tag ds, java.lang.String filter, boolean regex)
void
filterSet(java.lang.String filter)
void
focusChanged(TableRowCore focus)
private MdiEntrySWT
getActiveView()
java.lang.String
getUpdateUIName()
A name for this UIUpdatable so we can track who's being badprivate void
handleProps(Tag tag)
protected void
initColumns()
private void
initTable(org.eclipse.swt.widgets.Composite control)
void
keyPressed(org.eclipse.swt.events.KeyEvent e)
void
keyReleased(org.eclipse.swt.events.KeyEvent e)
void
mouseEnter(TableRowCore row)
void
mouseExit(TableRowCore row)
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 static void
registerPluginViews()
void
selected(TableRowCore[] row)
java.lang.Object
skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was destroyedjava.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
skinObjectSelected(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was selected (activated)java.lang.Object
skinObjectShown(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was shownvoid
tagAdded(Tag tag)
void
tagChanged(Tag tag)
void
tagEventOccurred(TagTypeListener.TagEvent event)
void
tagRemoved(Tag tag)
void
tagTypeAdded(TagManager manager, TagType tag_type)
void
tagTypeChanged(TagType tag_type)
General change not specific to one tagvoid
tagTypeRemoved(TagManager manager, TagType tag_type)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateSelectedContent()
void
updateSelectedContent(boolean force)
void
updateUI()
Update your UI!-
Methods inherited from class com.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated
-
Methods inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
eventOccured, 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.ui.common.table.TableSelectionListener
defaultSelected, selectionChanged
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
TABLE_TAGS
private static final java.lang.String TABLE_TAGS
- See Also:
- Constant Field Values
-
PLUGIN_DS_TYPE
public static final java.lang.Class<Tag> 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
-
datasource
private java.lang.Object datasource
-
-
Method Detail
-
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
-
getActiveView
private MdiEntrySWT getActiveView()
-
filterSet
public void filterSet(java.lang.String filter)
- Specified by:
filterSet
in interfaceTableViewFilterCheck<Tag>
-
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
-
updateUI
public void updateUI()
Description copied from interface:UIUpdatable
Update your UI!- Specified by:
updateUI
in interfaceUIUpdatable
-
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
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
initColumns
protected void initColumns()
-
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
-
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
-
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
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control)
- Parameters:
control
-- Since:
- 4.6.0.5
-
registerPluginViews
private static void registerPluginViews()
-
fillMenu
public void fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
public void addThisColumnSubMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
Description copied from interface:TableViewSWTMenuFillListener
Create 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:
addThisColumnSubMenu
in interfaceTableViewSWTMenuFillListener
- Parameters:
sColumnName
- The name of the column the user clicked onmenuThisColumn
- the menu to fill with MenuItems
-
selected
public void selected(TableRowCore[] row)
- Specified by:
selected
in interfaceTableSelectionListener
-
deselected
public void deselected(TableRowCore[] rows)
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
public void focusChanged(TableRowCore focus)
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
defaultSelected
public void defaultSelected(TableRowCore[] rows, int stateMask)
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
updateSelectedContent
public void updateSelectedContent()
-
updateSelectedContent
public void updateSelectedContent(boolean force)
-
mouseEnter
public void mouseEnter(TableRowCore row)
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
public void mouseExit(TableRowCore row)
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
filterCheck
public boolean filterCheck(Tag ds, java.lang.String filter, boolean regex)
- Specified by:
filterCheck
in interfaceTableViewFilterCheck<Tag>
-
tagTypeAdded
public void tagTypeAdded(TagManager manager, TagType tag_type)
- Specified by:
tagTypeAdded
in interfaceTagManagerListener
-
tagTypeRemoved
public void tagTypeRemoved(TagManager manager, TagType tag_type)
- Specified by:
tagTypeRemoved
in interfaceTagManagerListener
-
tagTypeChanged
public void tagTypeChanged(TagType tag_type)
Description copied from interface:TagTypeListener
General change not specific to one tag- Specified by:
tagTypeChanged
in interfaceTagTypeListener
-
tagEventOccurred
public void tagEventOccurred(TagTypeListener.TagEvent event)
- Specified by:
tagEventOccurred
in interfaceTagTypeListener
-
tagAdded
public void tagAdded(Tag tag)
-
tagChanged
public void tagChanged(Tag tag)
-
handleProps
private void handleProps(Tag tag)
-
tagRemoved
public void tagRemoved(Tag tag)
-
dataSourceChanged
public java.lang.Object dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
- Overrides:
dataSourceChanged
in classSWTSkinObjectAdapter
-
skinObjectSelected
public java.lang.Object skinObjectSelected(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was selected (activated)- Overrides:
skinObjectSelected
in classSWTSkinObjectAdapter
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyPressed
in interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyReleased
in interfaceorg.eclipse.swt.events.KeyListener
-
-