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 Object
implements UIToolBarManagerCore

Author:
TuxPaper

Nested Class Summary
static interface UIToolBarManagerImpl.ToolBarManagerListener
           
 
Field Summary
 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(String id)
          Create a new UIToolBarItem.
 ToolBarItem[] getAllSWTToolBarItems()
           
 UIToolBarItem[] getAllToolBarItems()
           
 String[] getGroupIDs()
           
static UIToolBarManager getInstance()
           
 String[] getToolBarIDsByGroup(String groupID)
           
 UIToolBarItem getToolBarItem(String itemID)
           
 UIToolBarItem[] getToolBarItemsByGroup(String groupID)
           
 void removeListener(UIToolBarManagerImpl.ToolBarManagerListener l)
           
 void removeToolBarItem(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listListeners

public 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(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(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 String[] getToolBarIDsByGroup(String groupID)
Specified by:
getToolBarIDsByGroup in interface UIToolBarManagerCore

getToolBarItemsByGroup

public UIToolBarItem[] getToolBarItemsByGroup(String groupID)

removeToolBarItem

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

getGroupIDs

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