fi.hut.tml.xsmiles.gui.mobile
Class MobileGUI

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

public class MobileGUI
extends XSmilesUI

A GUI For mobile devices

Version:
0.1
Author:
Juha

Field Summary
 fi.hut.tml.xsmiles.gui.mobile.VirtualKeyboard keypad
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.XSmilesUIAWT
browserWindow, focusPointProviders, guiEventListeners, latestLoc, latestTitle
 
Constructor Summary
MobileGUI(BrowserWindow b)
          Contructor for creating a new GUI
MobileGUI(BrowserWindow b, java.awt.Container c)
          Constructor for switching to this GUI
 
Method Summary
 void browserReady()
          Browser is finished, stop the animator
 void browserWorking()
          Browser is working, animate the animator
 void changeViewEvent(int viewType)
           
 void destroy()
          Destroy The GUI (delete frame, etc)
 void displayKeypad(java.awt.Component target, java.lang.String mode)
           
 void exit()
           
 BrowserConstraints getBrowserConstraints()
           
 ComponentFactory getComponentFactory()
          Default components.
 ContentHandlerFactory getContentHandlerFactory()
           
 java.awt.Container getContentPanel()
           
 MLFCControls getMLFCControls()
           
 javax.swing.JMenu getMLFCMenu()
           
 java.awt.Container getMLFCToolbar()
          Returns a container where MLFC's can insert their controls
 java.awt.Dimension getPreferredSize()
           
 java.awt.Window getWindow()
           
 void hideKeypad()
           
 void navigate(int navigationCommand)
           
 void openFile(java.lang.String fileName)
           
 void openLocation(java.lang.String urlName)
           
 void openLocation(java.net.URL url)
           
 void resizeEvent(java.awt.Dimension size)
           
 void reValidateDocumentArea()
           
 void setEnabledAllMenus(boolean value)
           
 void setEnabledBack(boolean value)
           
 void setEnabledForward(boolean value)
           
 void setEnabledHome(boolean value)
           
 void setEnabledLocationCombo(boolean value)
           
 void setEnabledOpenFile(boolean value)
           
 void setEnabledReload(boolean value)
           
 void setEnabledStop(boolean value)
           
 void setLocation(java.lang.String s)
           
 void setStatusText(java.lang.String statusText)
          Set statusbar text
 void setTitle(java.lang.String title)
           
 void validate()
           
 
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, fireLatestEvents, isTabbed, moveActiveLinkDown, moveActiveLinkUp, openInNewTab, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setSkinsIfNeeded, setSkinsIfNeeded, 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, fireLatestEvents, isTabbed, moveActiveLinkDown, moveActiveLinkUp, openInNewTab, openInNewWindow, reDrawGUI, registerFocusPointProvider, removeGUIEventListener, setSkinsIfNeeded, shouldReloadAtStartup, start, unRegisterFocusPointProvider
 

Field Detail

keypad

public fi.hut.tml.xsmiles.gui.mobile.VirtualKeyboard keypad
Constructor Detail

MobileGUI

public MobileGUI(BrowserWindow b,
                 java.awt.Container c)
Constructor for switching to this GUI

Parameters:
b - the BrowserWindow
c - the presentationPanel

MobileGUI

public MobileGUI(BrowserWindow b)
Contructor for creating a new GUI

Parameters:
b - the BrowserWindow
Method Detail

reValidateDocumentArea

public void reValidateDocumentArea()

validate

public void validate()

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

getPreferredSize

public java.awt.Dimension getPreferredSize()

getMLFCMenu

public javax.swing.JMenu getMLFCMenu()

navigate

public void navigate(int navigationCommand)

openFile

public void openFile(java.lang.String fileName)

openLocation

public void openLocation(java.net.URL url)

openLocation

public void openLocation(java.lang.String urlName)

exit

public void exit()

changeViewEvent

public void changeViewEvent(int viewType)

resizeEvent

public void resizeEvent(java.awt.Dimension size)

setStatusText

public void setStatusText(java.lang.String statusText)
Set statusbar text

Specified by:
setStatusText in interface GUI
Overrides:
setStatusText in class XSmilesUIAWT
Returns:
null if no menu exists (mlfc's will handle the null checking)

setEnabledBack

public void setEnabledBack(boolean value)
Specified by:
setEnabledBack in interface GUI
Overrides:
setEnabledBack in class XSmilesUIAWT

setEnabledForward

public void setEnabledForward(boolean value)
Specified by:
setEnabledForward in interface GUI
Overrides:
setEnabledForward in class XSmilesUIAWT

setEnabledHome

public void setEnabledHome(boolean value)
Specified by:
setEnabledHome in interface GUI
Overrides:
setEnabledHome in class XSmilesUIAWT

setEnabledStop

public void setEnabledStop(boolean value)
Specified by:
setEnabledStop in interface GUI
Overrides:
setEnabledStop in class XSmilesUIAWT

setEnabledReload

public void setEnabledReload(boolean value)
Specified by:
setEnabledReload in interface GUI
Overrides:
setEnabledReload in class XSmilesUIAWT

setEnabledAllMenus

public void setEnabledAllMenus(boolean value)

setEnabledLocationCombo

public void setEnabledLocationCombo(boolean value)

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface GUI
Overrides:
setTitle in class XSmilesUIAWT

setEnabledOpenFile

public void setEnabledOpenFile(boolean value)

setLocation

public void setLocation(java.lang.String s)
Specified by:
setLocation in interface GUI
Overrides:
setLocation in class XSmilesUIAWT

getBrowserConstraints

public BrowserConstraints getBrowserConstraints()
Returns:
The browserConstraints of this gui

getMLFCToolbar

public java.awt.Container getMLFCToolbar()
Returns a container where MLFC's can insert their controls

Returns:
A container where controls can be added

browserWorking

public void browserWorking()
Browser is working, animate the animator

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

browserReady

public void browserReady()
Browser is finished, stop the animator

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

getContentPanel

public java.awt.Container getContentPanel()

getWindow

public java.awt.Window getWindow()
Specified by:
getWindow in interface GUI
Specified by:
getWindow in class XSmilesUIAWT
Returns:
the Frame of the GUI.

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

displayKeypad

public void displayKeypad(java.awt.Component target,
                          java.lang.String mode)
Specified by:
displayKeypad in interface GUI
Overrides:
displayKeypad in class XSmilesUIAWT

hideKeypad

public void hideKeypad()
Specified by:
hideKeypad in interface GUI
Overrides:
hideKeypad 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

getMLFCControls

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


X-Smiles 1.2