fi.hut.tml.xsmiles.gui.met
Class Metouia

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

public class Metouia
extends GUIImpl

A GUI using the BrowserWindow as a toolkit, instead of integrating directly to it 100% Swing, currently using the metouia style

Author:
juha

Field Summary
protected  MMenuBar menuBar
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.met.GUIImpl
browser
 
Fields inherited from class fi.hut.tml.xsmiles.gui.XSmilesUIAWT
browserWindow, focusPointProviders, guiEventListeners, latestLoc, latestTitle
 
Constructor Summary
Metouia(BrowserWindow b)
          Constructor
Metouia(BrowserWindow b, java.awt.Container c)
          Constructor (ignores c)
 
Method Summary
 void delTab(BrowserTab c)
          only remove a tab if it is not the last
 void destroy()
          Destroy The GUI (delete frame, etc)
 BrowserWindow getInitialBrowser()
          The initial browserWindow, which is associated with the GUI
 BrowserWindow getSelectedBrowser()
           
protected  javax.swing.JTabbedPane getTabs()
           
 java.awt.Window getWindow()
           
 boolean isTabbed()
          Can gui accommodate several content areas within one frame
static void main(java.lang.String[] args)
           
 void newTab()
           
 void newTab(java.lang.String title)
           
 void newTab(java.lang.String title, BrowserWindow bw)
           
 void openInNewTab(XLink link, java.lang.String id)
          Open up a link in a new tab
 boolean shouldReloadAtStartup()
           
 void start()
          After browser is ready, then start is called.
 
Methods inherited from class fi.hut.tml.xsmiles.gui.met.GUIImpl
getComponentFactory, getContentHandlerFactory, getGUIWindow, getMLFCControls, setGUIWindow
 
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, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setLocation, setSkinsIfNeeded, setSkinsIfNeeded, setStatusText, setTitle, showSourceStatic, 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, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setLocation, setSkinsIfNeeded, setStatusText, setTitle, unRegisterFocusPointProvider
 

Field Detail

menuBar

protected MMenuBar menuBar
Constructor Detail

Metouia

public Metouia(BrowserWindow b)
Constructor


Metouia

public Metouia(BrowserWindow b,
               java.awt.Container c)
Constructor (ignores c)

Method Detail

start

public void start()
Description copied from interface: GUI
After browser is ready, then start is called. Not neccesary to implement

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

main

public static void main(java.lang.String[] args)

newTab

public void newTab()

openInNewTab

public void openInNewTab(XLink link,
                         java.lang.String id)
Description copied from interface: GUI
Open up a link in a new tab

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

newTab

public void newTab(java.lang.String title)

newTab

public void newTab(java.lang.String title,
                   BrowserWindow bw)

delTab

public void delTab(BrowserTab c)
only remove a tab if it is not the last


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

getSelectedBrowser

public BrowserWindow getSelectedBrowser()
Returns:
the browserWindow instance connected to the currently selected tab

getInitialBrowser

public BrowserWindow getInitialBrowser()
The initial browserWindow, which is associated with the GUI


getWindow

public java.awt.Window getWindow()
Specified by:
getWindow in interface GUI
Overrides:
getWindow in class GUIImpl

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 GUIImpl

getTabs

protected javax.swing.JTabbedPane getTabs()

shouldReloadAtStartup

public boolean shouldReloadAtStartup()
Specified by:
shouldReloadAtStartup in interface GUI
Overrides:
shouldReloadAtStartup in class GUIImpl
Returns:
whether or not this gui should be instructed to reload. XMLGUI should return false, since it creates an extra content area and browser for the content


X-Smiles 1.2