com.aelitis.azureus.ui.swt.views.skin
Class SBC_TagsOverview

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
      extended by com.aelitis.azureus.ui.swt.views.skin.SkinView
          extended by com.aelitis.azureus.ui.swt.views.skin.SBC_TagsOverview
All Implemented Interfaces:
TagManagerListener, TagTypeListener, TableSelectionListener, TableViewFilterCheck<Tag>, UIUpdatable, SWTSkinObjectListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableViewSWTMenuFillListener

public class SBC_TagsOverview
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<Tag>, TagManagerListener, TagTypeListener, TableViewSWTMenuFillListener, TableSelectionListener

Author:
TuxPaper

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.tag.TagTypeListener
TagTypeListener.TagEvent
 
Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
skin, soMain
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Fields inherited from interface com.aelitis.azureus.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_SELECT, EVENT_SHOW, NAMES
 
Constructor Summary
SBC_TagsOverview()
           
 
Method Summary
 void addThisColumnSubMenu(String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
          Create a SubMenu for column specific tasks.
 Object dataSourceChanged(SWTSkinObject skinObject, Object params)
           
 void defaultSelected(TableRowCore[] rows, int stateMask)
           
 void deselected(TableRowCore[] rows)
           
 void fillMenu(String sColumnName, org.eclipse.swt.widgets.Menu menu)
           
 boolean filterCheck(Tag ds, String filter, boolean regex)
           
 void filterSet(String filter)
           
 void focusChanged(TableRowCore focus)
           
 String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
protected  void initColumns()
           
 void mouseEnter(TableRowCore row)
           
 void mouseExit(TableRowCore row)
           
 void refreshToolBarItems(Map<String,Long> list)
          Fill in list with the toolbar ids and states you wish to set
 void selected(TableRowCore[] row)
           
 Object skinObjectDestroyed(SWTSkinObject skinObject, Object params)
          Skin Object was destroyed
 Object skinObjectHidden(SWTSkinObject skinObject, Object params)
          Skin Object was hidden
 Object skinObjectInitialShow(SWTSkinObject skinObject, Object params)
           
 Object skinObjectSelected(SWTSkinObject skinObject, Object params)
          Skin Object was selected (activated)
 Object skinObjectShown(SWTSkinObject skinObject, Object params)
          Skin Object was shown
 void 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 tag
 void tagTypeRemoved(TagManager manager, TagType tag_type)
           
 boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
          XXX Should have been UIToolBarItem
 void updateSelectedContent()
           
 void updateSelectedContent(boolean force)
           
 void updateUI()
          Update your UI!
 
Methods inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
getMainSkinObject, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated
 
Methods inherited from class com.aelitis.azureus.ui.swt.skin.SWTSkinObjectAdapter
eventOccured, updateLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SBC_TagsOverview

public SBC_TagsOverview()
Method Detail

toolBarItemActivated

public boolean toolBarItemActivated(ToolBarItem item,
                                    long activationType,
                                    Object datasource)
Description copied from interface: UIToolBarActivationListener
XXX Should have been UIToolBarItem

Specified by:
toolBarItemActivated in interface UIToolBarActivationListener

filterSet

public void filterSet(String filter)
Specified by:
filterSet in interface TableViewFilterCheck<Tag>

refreshToolBarItems

public void refreshToolBarItems(Map<String,Long> list)
Description copied from interface: UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set

Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener

updateUI

public void updateUI()
Description copied from interface: UIUpdatable
Update your UI!

Specified by:
updateUI in interface UIUpdatable

getUpdateUIName

public String getUpdateUIName()
Description copied from interface: UIUpdatable
A name for this UIUpdatable so we can track who's being bad

Specified by:
getUpdateUIName in interface UIUpdatable
Returns:
some name

skinObjectInitialShow

public Object skinObjectInitialShow(SWTSkinObject skinObject,
                                    Object params)
Specified by:
skinObjectInitialShow in class SkinView
Returns:

initColumns

protected void initColumns()

skinObjectHidden

public Object skinObjectHidden(SWTSkinObject skinObject,
                               Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was hidden

Overrides:
skinObjectHidden in class SkinView

skinObjectShown

public Object skinObjectShown(SWTSkinObject skinObject,
                              Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was shown

Overrides:
skinObjectShown in class SkinView

skinObjectDestroyed

public Object skinObjectDestroyed(SWTSkinObject skinObject,
                                  Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was destroyed

Overrides:
skinObjectDestroyed in class SkinView

fillMenu

public void fillMenu(String sColumnName,
                     org.eclipse.swt.widgets.Menu menu)
Specified by:
fillMenu in interface TableViewSWTMenuFillListener

addThisColumnSubMenu

public void addThisColumnSubMenu(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 interface TableViewSWTMenuFillListener
Parameters:
sColumnName - The name of the column the user clicked on
menuThisColumn - the menu to fill with MenuItems

selected

public void selected(TableRowCore[] row)
Specified by:
selected in interface TableSelectionListener

deselected

public void deselected(TableRowCore[] rows)
Specified by:
deselected in interface TableSelectionListener

focusChanged

public void focusChanged(TableRowCore focus)
Specified by:
focusChanged in interface TableSelectionListener

defaultSelected

public void defaultSelected(TableRowCore[] rows,
                            int stateMask)
Specified by:
defaultSelected in interface TableSelectionListener

updateSelectedContent

public void updateSelectedContent()

updateSelectedContent

public void updateSelectedContent(boolean force)

mouseEnter

public void mouseEnter(TableRowCore row)
Specified by:
mouseEnter in interface TableSelectionListener

mouseExit

public void mouseExit(TableRowCore row)
Specified by:
mouseExit in interface TableSelectionListener

filterCheck

public boolean filterCheck(Tag ds,
                           String filter,
                           boolean regex)
Specified by:
filterCheck in interface TableViewFilterCheck<Tag>

tagTypeAdded

public void tagTypeAdded(TagManager manager,
                         TagType tag_type)
Specified by:
tagTypeAdded in interface TagManagerListener

tagTypeRemoved

public void tagTypeRemoved(TagManager manager,
                           TagType tag_type)
Specified by:
tagTypeRemoved in interface TagManagerListener

tagTypeChanged

public void tagTypeChanged(TagType tag_type)
Description copied from interface: TagTypeListener
General change not specific to one tag

Specified by:
tagTypeChanged in interface TagTypeListener

tagEventOccurred

public void tagEventOccurred(TagTypeListener.TagEvent event)
Specified by:
tagEventOccurred in interface TagTypeListener

tagAdded

public void tagAdded(Tag tag)

tagChanged

public void tagChanged(Tag tag)

tagRemoved

public void tagRemoved(Tag tag)

dataSourceChanged

public Object dataSourceChanged(SWTSkinObject skinObject,
                                Object params)
Overrides:
dataSourceChanged in class SWTSkinObjectAdapter

skinObjectSelected

public Object skinObjectSelected(SWTSkinObject skinObject,
                                 Object params)
Description copied from class: SWTSkinObjectAdapter
Skin Object was selected (activated)

Overrides:
skinObjectSelected in class SWTSkinObjectAdapter