fi.hut.tml.xsmiles.mlfc.xforms.dialog
Class DynamicDialogHandler

java.lang.Object
  extended byfi.hut.tml.xsmiles.event.GUIEventAdapter
      extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.DynamicDialogHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, GUIEventListener, XSmilesDialog

public class DynamicDialogHandler
extends GUIEventAdapter
implements XSmilesDialog, java.awt.event.ActionListener

This class is launched by the browser menu command. It will listen for document changes in the browser window and if XForms documents are loaded, it will start to present the form using the DialogUI. The operation is as follows: The focus is always in some XForms control or group. The options are then all the active things that can be done with that group/control

Author:
honkkis

Field Summary
protected  BrowserWindow browser
           
protected  FocusHandler focusHandler
          the element which currently has the focus
protected  DialogUI myUI
           
protected static DynamicDialogHandler previous
           
 
Constructor Summary
DynamicDialogHandler()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
protected  void createListeners()
           
protected  void createUI()
           
 void destroy()
           
 BrowserWindow getBrowserWindow()
           
protected  org.w3c.dom.Document getCurrentDocument()
           
 DialogUI getUI()
           
protected  void removeListeners()
           
 void setBrowserWindow(BrowserWindow b)
           
static void setGlobalObject(DynamicDialogHandler h)
           
 void start()
           
 
Methods inherited from class fi.hut.tml.xsmiles.event.GUIEventAdapter
browserReady, browserWorking, GUIEvent, openInNewTab, openInNewWindow, setEnabledBack, setEnabledForward, setEnabledHome, setEnabledReload, setEnabledStop, setLocation, setStatusText, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myUI

protected DialogUI myUI

browser

protected BrowserWindow browser

previous

protected static DynamicDialogHandler previous

focusHandler

protected FocusHandler focusHandler
the element which currently has the focus

Constructor Detail

DynamicDialogHandler

public DynamicDialogHandler()
Method Detail

setGlobalObject

public static void setGlobalObject(DynamicDialogHandler h)

setBrowserWindow

public void setBrowserWindow(BrowserWindow b)
Specified by:
setBrowserWindow in interface XSmilesDialog

start

public void start()
Specified by:
start in interface XSmilesDialog
Overrides:
start in class GUIEventAdapter

getCurrentDocument

protected org.w3c.dom.Document getCurrentDocument()

getUI

public DialogUI getUI()

createUI

protected void createUI()

removeListeners

protected void removeListeners()

createListeners

protected void createListeners()

destroy

public void destroy()
Specified by:
destroy in interface XSmilesDialog
Overrides:
destroy in class GUIEventAdapter

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getBrowserWindow

public BrowserWindow getBrowserWindow()
Specified by:
getBrowserWindow in interface XSmilesDialog


X-Smiles 1.2