fi.hut.tml.xsmiles.mlfc.gui
Class GUIMLFC

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.MLFC
      extended byfi.hut.tml.xsmiles.mlfc.CoreMLFC
          extended byfi.hut.tml.xsmiles.mlfc.gui.GUIMLFC
All Implemented Interfaces:
ResourceFetcher

public class GUIMLFC
extends CoreMLFC

GUIMLFC is a utility class for creating GUIs with the XML-Languages supported by X-Smiles.. Namespace: http://www.xsmiles.com/GUI-2002-JEEJEE


Field Summary
protected  java.awt.Container contentPanel
           
protected  boolean started
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
GUIMLFC()
          Constructor.
 
Method Summary
 org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc, java.lang.String ns, java.lang.String tag)
          Create a DOM element.
 java.net.URL createURL(java.lang.String partURL)
          Append the given URL to be a full URL.
 void displayStatusText(java.lang.String url)
          Display status text in the broswer.
protected  BrowserWindow getBrowser()
          Get the browser, which the GUI document was loaded from
 void gotoExternalLink(java.lang.String url)
          Called from the LinkHandler - this method asks the browser to go to this external link.
 void setSize(java.awt.Dimension d)
          Not implemented method.
 void start()
          Start the MLFC.
 void stop()
          The opposite of init() deactivate is only called for displayable MLFCs
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.CoreMLFC
getBrowserWindow, getStyleSheet, getXFMUtils, setBrowserWindow, startMLFC
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
commitUpdateTransaction, createAttributeNS, get, getContainer, getContentHandler, getLocalname, getMLFCController, getMLFCListener, getMLFCParameters, getResourceReferencer, getTitle, getVersion, getXMLDocument, init, initMLFC, isHost, isPrimary, pause, rollbackUpdateTransaction, setContainer, setContentHandler, setHost, setMLFCListener, setMLFCParameters, setTitle, setXMLDocument, setZoom, startMLFC, startUpdateTransaction, stopMLFC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentPanel

protected java.awt.Container contentPanel

started

protected boolean started
Constructor Detail

GUIMLFC

public GUIMLFC()
Constructor.

Method Detail

getBrowser

protected BrowserWindow getBrowser()
Get the browser, which the GUI document was loaded from


createElementNS

public org.w3c.dom.Element createElementNS(org.apache.xerces.dom.DocumentImpl doc,
                                           java.lang.String ns,
                                           java.lang.String tag)
Create a DOM element.

Overrides:
createElementNS in class MLFC

start

public void start()
Description copied from class: MLFC
Start the MLFC. This function is the pair to stop().

Specified by:
start in class MLFC

createURL

public java.net.URL createURL(java.lang.String partURL)
Append the given URL to be a full URL.

Parameters:
partURL - Partial URL, e.g. fanfaari.wav
Returns:
Full URL, e.g. http://www.x-smiles.org/demo/fanfaari.wav

setSize

public void setSize(java.awt.Dimension d)
Not implemented method.


gotoExternalLink

public void gotoExternalLink(java.lang.String url)
Called from the LinkHandler - this method asks the browser to go to this external link.

Parameters:
url - URL to jump to.

displayStatusText

public void displayStatusText(java.lang.String url)
Display status text in the broswer. Usually shows the link destination.


stop

public void stop()
The opposite of init() deactivate is only called for displayable MLFCs

Specified by:
stop in class MLFC


X-Smiles 1.2