fi.hut.tml.xsmiles.gui.swing
Class NullGUI

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.XSmilesUIAWT
      extended byfi.hut.tml.xsmiles.gui.swing.XSmilesUI
          extended byfi.hut.tml.xsmiles.gui.swing.NullGUI
All Implemented Interfaces:
GUI

public class NullGUI
extends XSmilesUI

A stub GUI. The main function is to send events to third party GUIs and also to provide default implementations of the ComponentFactory and ContentHandler classes.

Author:
Juha

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.XSmilesUIAWT
browserWindow, focusPointProviders, guiEventListeners, latestLoc, latestTitle
 
Constructor Summary
NullGUI(BrowserWindow b)
           
NullGUI(BrowserWindow b, java.awt.Container c)
           
 
Method Summary
 void destroy()
          Destroy The GUI (delete frame, etc)
 BrowserConstraints getBrowserConstraints()
           
 ComponentFactory getComponentFactory()
          Default components.
 ContentHandlerFactory getContentHandlerFactory()
           
 MLFCControls getMLFCControls()
           
 java.awt.Window getWindow()
          Return mainFrame
 boolean isTabbed()
          Can gui accommodate several content areas within one frame
 
Methods inherited from class fi.hut.tml.xsmiles.gui.swing.XSmilesUI
showErrorDialog, showMessageDialog, showSource
 
Methods inherited from class fi.hut.tml.xsmiles.gui.XSmilesUIAWT
addGUIEventListener, browserReady, browserWorking, displayKeypad, fireLatestEvents, hideKeypad, moveActiveLinkDown, moveActiveLinkUp, openInNewTab, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setLocation, setSkinsIfNeeded, setSkinsIfNeeded, setStatusText, setTitle, shouldReloadAtStartup, showSourceStatic, start, unRegisterFocusPointProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.gui.GUI
addGUIEventListener, browserReady, browserWorking, displayKeypad, fireLatestEvents, hideKeypad, moveActiveLinkDown, moveActiveLinkUp, openInNewTab, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setLocation, setSkinsIfNeeded, setStatusText, setTitle, shouldReloadAtStartup, start, unRegisterFocusPointProvider
 

Constructor Detail

NullGUI

public NullGUI(BrowserWindow b,
               java.awt.Container c)
Parameters:
b - the BrowserWindow
c - componentContainer (optional)

NullGUI

public NullGUI(BrowserWindow b)
Parameters:
b - the BrowserWindow
Method Detail

getBrowserConstraints

public BrowserConstraints getBrowserConstraints()

getContentHandlerFactory

public ContentHandlerFactory getContentHandlerFactory()
Specified by:
getContentHandlerFactory in interface GUI
Overrides:
getContentHandlerFactory in class XSmilesUIAWT
Returns:
ContentHandler creates players for certain mime types
See Also:
ContentHandlerFactory

getWindow

public java.awt.Window getWindow()
Return mainFrame

Specified by:
getWindow in interface GUI
Specified by:
getWindow in class XSmilesUIAWT
Returns:
mainFrame

destroy

public void destroy()
Description copied from interface: GUI
Destroy The GUI (delete frame, etc)

Specified by:
destroy in interface GUI
Overrides:
destroy in class XSmilesUIAWT

isTabbed

public boolean isTabbed()
Description copied from interface: GUI
Can gui accommodate several content areas within one frame

Specified by:
isTabbed in interface GUI
Overrides:
isTabbed in class XSmilesUIAWT

getMLFCControls

public MLFCControls getMLFCControls()
Specified by:
getMLFCControls in interface GUI
Specified by:
getMLFCControls in class XSmilesUIAWT

getComponentFactory

public ComponentFactory getComponentFactory()
Description copied from class: XSmilesUIAWT
Default components. If GUI has a special component deployment sceme, then they should override the fi.hut.tml.xsmiles.gui.components.ComponentFactory in neccecary places.

Specified by:
getComponentFactory in interface GUI
Specified by:
getComponentFactory in class XSmilesUIAWT
Returns:
A ComponentFactory which is capable of returning all components needed by MLFCs, or any other non-GUI package classes.
See Also:
ComponentFactory


X-Smiles 1.2