com.aelitis.azureus.ui.swt.shells.main
Class MainWindowImpl

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.shells.main.MainWindowImpl
All Implemented Interfaces:
UIUpdatable, MdiEntryLogIdListener, MdiListener, MainWindow, AEDiagnosticsEvidenceGenerator, ObfusticateShell, IMainWindow

public class MainWindowImpl
extends Object
implements MainWindow, ObfusticateShell, MdiListener, AEDiagnosticsEvidenceGenerator, MdiEntryLogIdListener, UIUpdatable

Author:
TuxPaper

Field Summary
 
Fields inherited from interface org.gudy.azureus2.ui.swt.mainwindow.IMainWindow
WINDOW_CLIENT_AREA, WINDOW_CONTENT_DISPLAY_AREA, WINDOW_ELEMENT_MENU, WINDOW_ELEMENT_STATUSBAR, WINDOW_ELEMENT_TOOLBAR, WINDOW_ELEMENT_TOPBAR
 
Constructor Summary
protected MainWindowImpl(AzureusCore core, org.eclipse.swt.widgets.Display display, IUIIntializer uiInitializer)
          Old Initializer.
protected MainWindowImpl(org.eclipse.swt.widgets.Display display, IUIIntializer uiInitializer)
          New Initializer.
 
Method Summary
 boolean dispose(boolean for_restart, boolean close_already_in_progress)
           
 void generate(IndentWriter writer)
           
 org.eclipse.swt.graphics.Image generateObfusticatedImage()
           
 IMainMenu getMainMenu()
           
 MainStatusBar getMainStatusBar()
           
 org.eclipse.swt.graphics.Rectangle getMetrics(int windowElement)
           
 org.eclipse.swt.widgets.Shell getShell()
           
 UISWTInstanceImpl getUISWTInstanceImpl()
           
 String getUpdateUIName()
          A name for this UIUpdatable so we can track who's being bad
 void init(AzureusCore core)
          Called only on STARTUP_UIFIRST
 boolean isReady()
           
 boolean isVisible(int windowElement)
           
 void mdiEntryLogIdChanged(MdiEntry sideBarEntrySWT, String oldID, String newID)
           
 void mdiEntrySelected(MdiEntry newEntry, MdiEntry oldEntry)
           
 void setHideAll(boolean hide)
           
 void setSelectedLanguageItem()
           
 void setVisible(boolean visible, boolean tryTricks)
           
 void setVisible(int windowElement, boolean value)
           
 void updateUI()
          Update your UI!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainWindowImpl

protected MainWindowImpl(AzureusCore core,
                         org.eclipse.swt.widgets.Display display,
                         IUIIntializer uiInitializer)
Old Initializer. AzureusCore is required to be started

Parameters:
core -
display -
uiInitializer -

MainWindowImpl

protected MainWindowImpl(org.eclipse.swt.widgets.Display display,
                         IUIIntializer uiInitializer)
New Initializer. AzureusCore does not need to be started. Use init(AzureusCore) when core is available. Called for STARTUP_UIFIRST 1) Constructor 2) createWindow 3) init(core)

Parameters:
display -
uiInitializer -
Method Detail

init

public void init(AzureusCore core)
Called only on STARTUP_UIFIRST

Specified by:
init in interface MainWindow

dispose

public boolean dispose(boolean for_restart,
                       boolean close_already_in_progress)
Specified by:
dispose in interface MainWindow

setHideAll

public void setHideAll(boolean hide)
Specified by:
setHideAll in interface MainWindow

setVisible

public void setVisible(boolean visible,
                       boolean tryTricks)
Specified by:
setVisible in interface MainWindow

getShell

public org.eclipse.swt.widgets.Shell getShell()
Specified by:
getShell in interface MainWindow

getUISWTInstanceImpl

public UISWTInstanceImpl getUISWTInstanceImpl()
Specified by:
getUISWTInstanceImpl in interface MainWindow

getMainStatusBar

public MainStatusBar getMainStatusBar()
Specified by:
getMainStatusBar in interface MainWindow

isVisible

public boolean isVisible(int windowElement)
Specified by:
isVisible in interface IMainWindow

setVisible

public void setVisible(int windowElement,
                       boolean value)
Specified by:
setVisible in interface IMainWindow

getMetrics

public org.eclipse.swt.graphics.Rectangle getMetrics(int windowElement)
Specified by:
getMetrics in interface IMainWindow

isReady

public boolean isReady()
Specified by:
isReady in interface MainWindow

generateObfusticatedImage

public org.eclipse.swt.graphics.Image generateObfusticatedImage()
Specified by:
generateObfusticatedImage in interface ObfusticateShell
Returns:

mdiEntrySelected

public void mdiEntrySelected(MdiEntry newEntry,
                             MdiEntry oldEntry)
Specified by:
mdiEntrySelected in interface MdiListener

mdiEntryLogIdChanged

public void mdiEntryLogIdChanged(MdiEntry sideBarEntrySWT,
                                 String oldID,
                                 String newID)
Specified by:
mdiEntryLogIdChanged in interface MdiEntryLogIdListener

generate

public void generate(IndentWriter writer)
Specified by:
generate in interface AEDiagnosticsEvidenceGenerator

setSelectedLanguageItem

public void setSelectedLanguageItem()
Specified by:
setSelectedLanguageItem in interface MainWindow

getMainMenu

public IMainMenu getMainMenu()
Specified by:
getMainMenu in interface MainWindow

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