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

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.ToolBarView
All Implemented Interfaces:
ToolBarItem.ToolBarItemListener, SelectedContentListener, SWTSkinObjectListener, UIToolBarManagerImpl.ToolBarManagerListener

public class ToolBarView
extends SkinView
implements SelectedContentListener, UIToolBarManagerImpl.ToolBarManagerListener, ToolBarItem.ToolBarItemListener

Author:
TuxPaper

Nested Class Summary
static interface ToolBarView.ToolBarViewListener
           
 class ToolBarView.UIToolBarActivationListener_OffSWT
           
 
Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.swt.views.skin.SkinView
skin, soMain
 
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
ToolBarView()
           
 
Method Summary
 void _refreshCoreToolBarItems()
           
 void addListener(ToolBarView.ToolBarViewListener l)
           
 void currentlySelectedContentChanged(ISelectedContent[] currentContent, String viewID)
           
 boolean getShowText()
           
protected  boolean moveBottom()
           
protected  boolean moveTop()
           
 void refreshCoreToolBarItems()
           
 void removeListener(ToolBarView.ToolBarViewListener l)
           
 void setShowText(boolean showText)
           
 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 skinObjectShown(SWTSkinObject skinObject, Object params)
          Skin Object was shown
 void toolbarItemAdded(UIToolBarItem item)
           
 void toolbarItemRemoved(UIToolBarItem toolBarItem)
           
 boolean triggerToolBarItem(ToolBarItem item, long activationType, Object datasource)
           
 void uiFieldChanged(ToolBarItem item)
           
 
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
dataSourceChanged, eventOccured, skinObjectSelected, updateLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolBarView

public ToolBarView()
Method Detail

skinObjectInitialShow

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

currentlySelectedContentChanged

public void currentlySelectedContentChanged(ISelectedContent[] currentContent,
                                            String viewID)
Specified by:
currentlySelectedContentChanged in interface SelectedContentListener

skinObjectShown

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

Overrides:
skinObjectShown in class SkinView

skinObjectHidden

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

Overrides:
skinObjectHidden 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

triggerToolBarItem

public boolean triggerToolBarItem(ToolBarItem item,
                                  long activationType,
                                  Object datasource)
Specified by:
triggerToolBarItem in interface ToolBarItem.ToolBarItemListener

moveBottom

protected boolean moveBottom()

moveTop

protected boolean moveTop()

refreshCoreToolBarItems

public void refreshCoreToolBarItems()

_refreshCoreToolBarItems

public void _refreshCoreToolBarItems()

uiFieldChanged

public void uiFieldChanged(ToolBarItem item)
Specified by:
uiFieldChanged in interface ToolBarItem.ToolBarItemListener

setShowText

public void setShowText(boolean showText)
Parameters:
showText - the showText to set

getShowText

public boolean getShowText()
Returns:
the showText

addListener

public void addListener(ToolBarView.ToolBarViewListener l)

removeListener

public void removeListener(ToolBarView.ToolBarViewListener l)

toolbarItemRemoved

public void toolbarItemRemoved(UIToolBarItem toolBarItem)
Specified by:
toolbarItemRemoved in interface UIToolBarManagerImpl.ToolBarManagerListener

toolbarItemAdded

public void toolbarItemAdded(UIToolBarItem item)
Specified by:
toolbarItemAdded in interface UIToolBarManagerImpl.ToolBarManagerListener