org.gudy.azureus2.ui.swt.mainwindow
Class MainStatusBar

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.mainwindow.MainStatusBar
All Implemented Interfaces:
UIUpdatable, UIUpdatableAlways, IMainStatusBar

public class MainStatusBar
extends Object
implements IMainStatusBar, UIUpdatableAlways

Moved from MainWindow and GUIUpdater


Nested Class Summary
 class MainStatusBar.CLabelPadding
          CLabel that shrinks to fit text after a specific period of time.
 
Nested classes/interfaces inherited from interface org.gudy.azureus2.ui.swt.mainwindow.IMainStatusBar
IMainStatusBar.CLabelUpdater
 
Constructor Summary
MainStatusBar()
           
 
Method Summary
 void createStatusEntry(IMainStatusBar.CLabelUpdater updater)
           
 org.eclipse.swt.graphics.Rectangle getBounds()
           
 String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
 org.eclipse.swt.widgets.Composite initStatusBar(org.eclipse.swt.widgets.Composite _parent)
           
 boolean isMouseOver()
           
 void refreshStatusText()
           
 void relayout()
           
 void setDebugInfo(String string)
           
 void setStatusText(int statustype, String string, UIStatusTextClickListener l)
           
 void setStatusText(String keyedSentence)
           
 void setUpdateNeeded(UpdateWindow updateWindow)
           
 void updateStatusText()
           
protected  void updateStatusWarnings(LogAlert current_alert, boolean current_added)
           
 void updateUI()
          Update your UI!
 void updateUI(boolean is_visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainStatusBar

public MainStatusBar()
Method Detail

initStatusBar

public org.eclipse.swt.widgets.Composite initStatusBar(org.eclipse.swt.widgets.Composite _parent)
Returns:
composite holding the statusbar

updateStatusWarnings

protected void updateStatusWarnings(LogAlert current_alert,
                                    boolean current_added)

relayout

public void relayout()

setStatusText

public void setStatusText(String keyedSentence)
Specified by:
setStatusText in interface IMainStatusBar
Parameters:
keyedSentence -

setStatusText

public void setStatusText(int statustype,
                          String string,
                          UIStatusTextClickListener l)
Specified by:
setStatusText in interface IMainStatusBar
Parameters:
statustype -
string -
l -

updateStatusText

public void updateStatusText()

refreshStatusText

public void refreshStatusText()

setUpdateNeeded

public void setUpdateNeeded(UpdateWindow updateWindow)
Specified by:
setUpdateNeeded in interface IMainStatusBar
Parameters:
updateWindow -

updateUI

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

Specified by:
updateUI in interface UIUpdatable

updateUI

public void updateUI(boolean is_visible)
Specified by:
updateUI in interface UIUpdatableAlways

setDebugInfo

public void setDebugInfo(String string)
Specified by:
setDebugInfo in interface IMainStatusBar
Parameters:
string -

isMouseOver

public boolean isMouseOver()
Specified by:
isMouseOver in interface IMainStatusBar

createStatusEntry

public void createStatusEntry(IMainStatusBar.CLabelUpdater updater)
Specified by:
createStatusEntry in interface IMainStatusBar

getBounds

public org.eclipse.swt.graphics.Rectangle getBounds()

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