fi.hut.tml.xsmiles.gui.gui2.swing
Class SimpleSwingGUI

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.gui2.awt.SimpleAWTGUI
      extended byfi.hut.tml.xsmiles.gui.gui2.swing.SimpleSwingGUI
All Implemented Interfaces:
GUIEventListener, GUIInterface
Direct Known Subclasses:
SimpleNoGUI

public class SimpleSwingGUI
extends SimpleAWTGUI

This is a simple ABSTRACT GUI that does not use the OLD gui system. The idea is that it creates a browser window without a OLD gui system and then just gets the content area and adds it to itself. Actually the old GUI system is still created under the hoods, but it is only used to get events back... Anyway, this should show that it is easy to use the browser inside a container in a Java project. Note that some settings (e.g. the ComponentFactory) are set in the config.xml file. Currently this does not support tabs, so it is always one main BrowserWindow inside a AWTGUI. This should be Swing-independent. NOTE: SwingGUI extends this GUI, so that all changes here will be incorporated in both versions

Author:
Mikko Honkala

Nested Class Summary
 
Nested classes inherited from class fi.hut.tml.xsmiles.gui.gui2.awt.SimpleAWTGUI
SimpleAWTGUI.LocationFieldListener
 
Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.gui.gui2.awt.SimpleAWTGUI
aboutHelpMenu, actionContainer, backCommand, bookmarksMenu, browserWindow, configMenu, dialog, dialogClass, editBookmarksMenu, editMenu, exitMenu, fileMenu, forwardCommand, frame, goMenu, helpMenu, homeCommand, initialURL, locationField, menuBar, openFileMenu, reloadCommand, rootContainer, sethomepageMenu, status, statusContainer, title, topContainer, viewBookmarksMenu, viewHideGUIMenu, viewMenu, viewShowGUIMenu, viewSpeechMenu, viewXMLSourceMenu, xsmilesCommand, zoomFactor, zoomMinusMenu, zoomPlusMenu
 
Constructor Summary
SimpleSwingGUI()
           
 
Method Summary
protected  java.awt.Container createContainer()
           
protected  java.awt.Container createRootContainer()
           
protected  java.lang.String getComponentFactoryClassName()
           
protected  java.lang.String getGUIName()
           
 
Methods inherited from class fi.hut.tml.xsmiles.gui.gui2.awt.SimpleAWTGUI
action, addMenuBar, browserReady, browserWorking, createActionButton, createActionContainer, createBrowserListeners, createBrowserWindow, createListeners, createLocation, createMenuItem, createMenus, createStatusContainer, decorateGUI, destroy, getActionFont, getBrowser, getContentArea, getRootContainer, getStatusFont, GUIEvent, listenForWindowClose, loadLocation, openInNewTab, openInNewWindow, setDefaultWindowSize, setDoubleBuffering, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setInitialURL, setLocation, setStatusText, setTitle, setXMLConfigurer, show, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSwingGUI

public SimpleSwingGUI()
Method Detail

getComponentFactoryClassName

protected java.lang.String getComponentFactoryClassName()
Overrides:
getComponentFactoryClassName in class SimpleAWTGUI

getGUIName

protected java.lang.String getGUIName()
Overrides:
getGUIName in class SimpleAWTGUI

createRootContainer

protected java.awt.Container createRootContainer()
Overrides:
createRootContainer in class SimpleAWTGUI

createContainer

protected java.awt.Container createContainer()
Overrides:
createContainer in class SimpleAWTGUI


X-Smiles 1.2