fi.hut.tml.xsmiles.mlfc.events
Class EventsMLFC

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

public class EventsMLFC
extends MLFC

EventsMLFC is the XML Events main function. It creates the elements and attributes and controls them. Namespace: http://www.w3.org/2001/xml-events


Field Summary
static java.lang.String namespace
           
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
contentHandler, controlsShown, title
 
Constructor Summary
EventsMLFC()
          Constructor.
 
Method Summary
 org.w3c.dom.Attr createAttributeNS(org.apache.xerces.dom.DocumentImpl doc, java.lang.String namespaceURI, java.lang.String qualifiedName)
          Create a DOM attribute.
 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()
          Displays the presentation.
 void stop()
          Stop the MLFC.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.MLFC
commitUpdateTransaction, 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
 

Field Detail

namespace

public static final java.lang.String namespace
See Also:
Constant Field Values
Constructor Detail

EventsMLFC

public EventsMLFC()
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

createAttributeNS

public org.w3c.dom.Attr createAttributeNS(org.apache.xerces.dom.DocumentImpl doc,
                                          java.lang.String namespaceURI,
                                          java.lang.String qualifiedName)
                                   throws org.w3c.dom.DOMException
Create a DOM attribute.

Overrides:
createAttributeNS in class MLFC
Throws:
org.w3c.dom.DOMException

start

public void start()
Displays the presentation. Initializes, prefetches and plays the presenation.

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

stop

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

Specified by:
stop in class MLFC

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.



X-Smiles 1.2