org.gudy.azureus2.ui.swt.pluginsimpl
Class UIToolBarManagerImpl

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.pluginsimpl.UIToolBarManagerImpl
All Implemented Interfaces:
UIToolBarManager, UIToolBarManagerCore

public class UIToolBarManagerImpl
extends java.lang.Object
implements UIToolBarManagerCore

Author:
TuxPaper

Nested Class Summary
static interface UIToolBarManagerImpl.ToolBarManagerListener
           
 
Field Summary
 java.util.List<UIToolBarManagerImpl.ToolBarManagerListener> listListeners
           
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarManager
GROUP_BIG, GROUP_MAIN
 
Constructor Summary
UIToolBarManagerImpl()
           
 
Method Summary
 void addListener(UIToolBarManagerImpl.ToolBarManagerListener l)
           
 void addToolBarItem(UIToolBarItem item)
          Adds a UIToolBarItem to the UI.
 void addToolBarItem(UIToolBarItem item, boolean trigger)
           
 UIToolBarItem createToolBarItem(java.lang.String id)
          Create a new UIToolBarItem.
 ToolBarItem[] getAllSWTToolBarItems()
           
 UIToolBarItem[] getAllToolBarItems()
           
 java.lang.String[] getGroupIDs()
           
static UIToolBarManager getInstance()
           
 java.lang.String[] getToolBarIDsByGroup(java.lang.String groupID)
           
 UIToolBarItem getToolBarItem(java.lang.String itemID)
           
 UIToolBarItem[] getToolBarItemsByGroup(java.lang.String groupID)
           
 void removeListener(UIToolBarManagerImpl.ToolBarManagerListener l)
           
 void removeToolBarItem(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listListeners

public java.util.List<UIToolBarManagerImpl.ToolBarManagerListener> listListeners
Constructor Detail

UIToolBarManagerImpl

public UIToolBarManagerImpl()
Method Detail

getInstance

public static UIToolBarManager getInstance()

addListener

public void addListener(UIToolBarManagerImpl.ToolBarManagerListener l)
Specified by:
addListener in interface UIToolBarManagerCore

removeListener

public void removeListener(UIToolBarManagerImpl.ToolBarManagerListener l)
Specified by:
removeListener in interface UIToolBarManagerCore

getToolBarItem

public UIToolBarItem getToolBarItem(java.lang.String itemID)
Specified by:
getToolBarItem in interface UIToolBarManager

getAllToolBarItems

public UIToolBarItem[] getAllToolBarItems()
Specified by:
getAllToolBarItems in interface UIToolBarManager

getAllSWTToolBarItems

public ToolBarItem[] getAllSWTToolBarItems()
Specified by:
getAllSWTToolBarItems in interface UIToolBarManagerCore

createToolBarItem

public UIToolBarItem createToolBarItem(java.lang.String id)
Description copied from interface: UIToolBarManager
Create a new UIToolBarItem. You will still need to add it via UIToolBarManager.addToolBarItem(UIToolBarItem), after setting the item's properties

Specified by:
createToolBarItem in interface UIToolBarManager
Parameters:
id - unique id
Returns:
newly created toolbar

addToolBarItem

public void addToolBarItem(UIToolBarItem item)
Description copied from interface: UIToolBarManager
Adds a UIToolBarItem to the UI. Make sure you at least set the icon before adding

Specified by:
addToolBarItem in interface UIToolBarManager

addToolBarItem

public void addToolBarItem(UIToolBarItem item,
                           boolean trigger)
Specified by:
addToolBarItem in interface UIToolBarManagerCore

getToolBarIDsByGroup

public java.lang.String[] getToolBarIDsByGroup(java.lang.String groupID)
Specified by:
getToolBarIDsByGroup in interface UIToolBarManagerCore

getToolBarItemsByGroup

public UIToolBarItem[] getToolBarItemsByGroup(java.lang.String groupID)

removeToolBarItem

public void removeToolBarItem(java.lang.String id)
Specified by:
removeToolBarItem in interface UIToolBarManager

getGroupIDs

public java.lang.String[] getGroupIDs()
Specified by:
getGroupIDs in interface UIToolBarManagerCore