fi.hut.tml.xsmiles.gui.gui2.awt
Class GUITab

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.gui2.awt.GUITab
All Implemented Interfaces:
GUIEventListener

public class GUITab
extends java.lang.Object
implements GUIEventListener

The GUITab contains one tab. Each tab has - the action container (back, forward buttons, the url area) - one browser window in the center - the status area in the bottom The GUITab can be extended by subclasses to suit different platforms GUITab is created with the method AWTGUI.createTab()

Author:
honkkis

Nested Class Summary
protected  class GUITab.LocationFieldListener
           
 
Field Summary
 java.awt.Container actionContainer
          The structure of the containers : ------------------------------------------------- Menu ------------------------------------------------- actionContainer (BorderLayout.NORTH) ------------------------------------------------ BrowserWindow.contentArea() (BorderLayout.CENTER) ------------------------------------------------ statusContainer (BorderLayout.SOUTH)
protected  Animation animation
           
 int animationHeight
           
 int animationWidth
           
protected  XButton backButton
           
 java.lang.String backUrl
           
 Browser browserWindow
           
protected  XSmilesDialog dialog
           
protected  XButton forwardButton
           
 java.lang.String forwardUrl
           
protected  AWTGUI gui
           
protected  XButton homeButton
           
 java.lang.String homeUrl
           
 XLink initialURL
           
protected  XInput locationField
           
protected  XButton reloadButton
           
 java.lang.String reloadUrl
           
 java.awt.Container rootContainer
           
 XCaption status
           
 java.awt.Container statusContainer
           
protected  XButton stopButton
           
 java.lang.String stopUrl
           
protected  java.awt.Container topContainer
           
 
Constructor Summary
GUITab(AWTGUI agui)
           
 
Method Summary
protected  void addMLFCControls()
           
 void browserReady()
           
 void browserWorking()
           
 void changeGUIElements(java.lang.String backUrl, java.lang.String forwardUrl, java.lang.String homeUrl, java.lang.String reloadUrl, int animationWidth, int animationHeight)
           
protected  XButton createActionButton(java.lang.String name, java.lang.String icon, java.lang.String actionCommand)
           
 void createActionContainer()
           
 void createBrowserListeners()
           
protected  void createBrowserWindow()
           
protected  java.awt.Container createContainer()
           
protected  java.awt.Component createLocation()
           
protected  void createRootContainer()
           
 void createStatusContainer()
           
 void decorateGUI()
           
 void destroy()
           
protected  java.awt.Font getActionFont()
           
 BrowserWindow getBrowserWindow()
           
 java.awt.Component getComponent()
           
 java.awt.Container getContentArea()
           
protected  java.awt.Container getRootContainer()
           
protected  java.awt.Font getStatusFont()
           
 void GUIEvent(GUIEvent ev)
           
protected  void hideGUIButtons()
           
 void init()
           
 void loadLocation(java.lang.String location)
           
 void openInNewTab(XLink l, java.lang.String id)
           
 void openInNewWindow(XLink l, java.lang.String id)
           
protected  void removeMLFCControls()
           
 void setEnabledBack(boolean value)
           
 void setEnabledForward(boolean value)
           
 void setEnabledHome(boolean value)
           
 void setEnabledReload(boolean value)
           
 void setEnabledStop(boolean value)
           
 void setID(java.lang.String i)
           
 void setInitialURL(XLink url)
           
 void setLocation(java.lang.String s)
           
 void setStatusText(java.lang.String statusText)
           
 void setTitle(java.lang.String title)
           
protected  void showGUIButtons()
           
 void start()
          the GUI event listener interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialURL

public XLink initialURL

dialog

protected XSmilesDialog dialog

gui

protected AWTGUI gui

browserWindow

public Browser browserWindow

actionContainer

public java.awt.Container actionContainer
The structure of the containers : ------------------------------------------------- Menu ------------------------------------------------- actionContainer (BorderLayout.NORTH) ------------------------------------------------ BrowserWindow.contentArea() (BorderLayout.CENTER) ------------------------------------------------ statusContainer (BorderLayout.SOUTH)


statusContainer

public java.awt.Container statusContainer

rootContainer

public java.awt.Container rootContainer

status

public XCaption status

backUrl

public java.lang.String backUrl

forwardUrl

public java.lang.String forwardUrl

homeUrl

public java.lang.String homeUrl

reloadUrl

public java.lang.String reloadUrl

stopUrl

public java.lang.String stopUrl

animationWidth

public int animationWidth

animationHeight

public int animationHeight

locationField

protected XInput locationField

topContainer

protected java.awt.Container topContainer

backButton

protected XButton backButton

forwardButton

protected XButton forwardButton

homeButton

protected XButton homeButton

reloadButton

protected XButton reloadButton

stopButton

protected XButton stopButton

animation

protected Animation animation
Constructor Detail

GUITab

public GUITab(AWTGUI agui)
Method Detail

changeGUIElements

public void changeGUIElements(java.lang.String backUrl,
                              java.lang.String forwardUrl,
                              java.lang.String homeUrl,
                              java.lang.String reloadUrl,
                              int animationWidth,
                              int animationHeight)

createRootContainer

protected void createRootContainer()

setInitialURL

public void setInitialURL(XLink url)

setID

public void setID(java.lang.String i)

getComponent

public java.awt.Component getComponent()

getBrowserWindow

public BrowserWindow getBrowserWindow()

init

public void init()

destroy

public void destroy()
Specified by:
destroy in interface GUIEventListener

createBrowserWindow

protected void createBrowserWindow()

createBrowserListeners

public void createBrowserListeners()

decorateGUI

public void decorateGUI()

createActionContainer

public void createActionContainer()

createContainer

protected java.awt.Container createContainer()

getActionFont

protected java.awt.Font getActionFont()

getStatusFont

protected java.awt.Font getStatusFont()

createStatusContainer

public void createStatusContainer()

addMLFCControls

protected void addMLFCControls()

removeMLFCControls

protected void removeMLFCControls()

createLocation

protected java.awt.Component createLocation()

loadLocation

public void loadLocation(java.lang.String location)

createActionButton

protected XButton createActionButton(java.lang.String name,
                                     java.lang.String icon,
                                     java.lang.String actionCommand)

getContentArea

public java.awt.Container getContentArea()

getRootContainer

protected java.awt.Container getRootContainer()

start

public void start()
the GUI event listener interface

Specified by:
start in interface GUIEventListener

openInNewTab

public void openInNewTab(XLink l,
                         java.lang.String id)
Specified by:
openInNewTab in interface GUIEventListener

openInNewWindow

public void openInNewWindow(XLink l,
                            java.lang.String id)
Specified by:
openInNewWindow in interface GUIEventListener

setStatusText

public void setStatusText(java.lang.String statusText)
Specified by:
setStatusText in interface GUIEventListener

setEnabledBack

public void setEnabledBack(boolean value)
Specified by:
setEnabledBack in interface GUIEventListener

setEnabledForward

public void setEnabledForward(boolean value)
Specified by:
setEnabledForward in interface GUIEventListener

setEnabledHome

public void setEnabledHome(boolean value)
Specified by:
setEnabledHome in interface GUIEventListener

setEnabledStop

public void setEnabledStop(boolean value)
Specified by:
setEnabledStop in interface GUIEventListener

setEnabledReload

public void setEnabledReload(boolean value)
Specified by:
setEnabledReload in interface GUIEventListener

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface GUIEventListener

setLocation

public void setLocation(java.lang.String s)
Specified by:
setLocation in interface GUIEventListener

browserWorking

public void browserWorking()
Specified by:
browserWorking in interface GUIEventListener

GUIEvent

public void GUIEvent(GUIEvent ev)
Specified by:
GUIEvent in interface GUIEventListener

browserReady

public void browserReady()
Specified by:
browserReady in interface GUIEventListener

hideGUIButtons

protected void hideGUIButtons()

showGUIButtons

protected void showGUIButtons()


X-Smiles 1.2