fi.hut.tml.xsmiles.mlfc.gps
Class GPSMLFC

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.MLFC
      extended byfi.hut.tml.xsmiles.mlfc.gps.GPSMLFC
All Implemented Interfaces:
ResourceFetcher

public class GPSMLFC
extends MLFC

GPSMLFC implements provides access to GPS data. Namespace: http://www.fobar.com/gps


Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
GPSMLFC()
          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.
 java.lang.String getVersion()
          Get the version of the MLFC.
 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.MLFC
commitUpdateTransaction, createAttributeNS, get, getContainer, getContentHandler, getLocalname, getMLFCController, getMLFCListener, getMLFCParameters, getResourceReferencer, getTitle, 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
 

Constructor Detail

GPSMLFC

public GPSMLFC()
Constructor.

Method Detail

getVersion

public final java.lang.String getVersion()
Get the version of the MLFC. This version number is updated with the browser version number at compilation time. This version number indicates the browser version this MLFC was compiled with and should be run with.

Overrides:
getVersion in class MLFC
Returns:
MLFC version number.

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