|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.xforms.XFormsElementHandler
The factory for creating DOM event instances it also keeps track of different per page things, such as models, cursors etc.
| Field Summary | |
protected java.util.Hashtable |
cases
All the case elements in the document |
protected java.util.Hashtable |
cursors
All the Repeat elements in the document |
static boolean |
debugXForms
|
protected ModelElementImpl |
defaultXForm
the default XForm element |
protected DialogGUIDebug |
dialogUI
the possible dialog UI |
protected ExtendedDocument |
doc
|
protected org.apache.xerces.dom.DocumentImpl |
docImpl
|
protected MLFC |
mlfc
the CSS stylesheet object |
protected java.util.Hashtable |
models
All the XForm elements in the document |
protected java.util.Hashtable |
nodeindexes
All the Repeat elements in the document |
protected java.util.Vector |
nodeIndexListeners
Listeners for nodeindex changes |
protected Action |
outermostAction
|
protected RepeatIndexHandler |
repeatIndexHandler
the ui index handler for repeats |
protected static AdaptiveControlFactory |
sAdaptiveControlFactory
factory used to create datatype aware controls |
| Constructor Summary | |
XFormsElementHandler(ExtendedDocument a_doc,
MLFC xmlfc)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
addBind(BindElementImpl bind)
|
void |
addCase(CaseElementImpl caseElem)
|
void |
addModel(ModelElementImpl form)
|
void |
addNodeIndexListener(FunctionChangeListener list)
|
boolean |
askUserConfirmation(java.lang.String title,
java.lang.String prompt)
|
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(java.lang.String URI,
java.lang.String tagname)
|
void |
destroy()
|
void |
enterAction(Action action)
for deferred updates |
void |
exitAction(Action action)
when the outermost action exits, go thru all models and run deferred events |
AdaptiveControlFactory |
getAdaptiveControlFactory()
|
BindElementImpl |
getBind(java.lang.String id)
|
BrowserWindow |
getBrowser()
|
CaseElementImpl |
getCase(java.lang.String id)
|
ComponentFactory |
getComponentFactory()
|
int |
getCursor(java.lang.String id)
|
boolean |
getDebugEvents()
|
org.apache.xerces.dom.DocumentImpl |
getDocumentImpl()
|
ExtendedDocument |
getExtendedDocument()
|
boolean |
getInsideAction()
|
protected MLFC |
getMLFC()
return my mlfc |
ModelElementImpl |
getModel(java.lang.String xform)
|
java.util.Hashtable |
getModels()
|
org.w3c.dom.Node |
getNodeIndex(java.lang.String id)
|
RepeatIndexHandler |
getRepeatIndexHandler()
Starts the additional dialog UI for speech |
XSmilesStyleSheet |
getStyleSheet()
|
XMLDocument |
getXMLDocument()
|
java.net.URL |
getXResource(java.lang.String id)
|
protected void |
listenForHelpKeyPress()
this method tries to listen to help keypress. |
void |
nodeIndexChanged(java.lang.String id,
org.w3c.dom.Node n)
|
protected void |
notifyFunctionChanged()
|
void |
openLocation(java.net.URL uri,
short show)
|
XSmilesConnection |
openURLWithGET(java.net.URL u)
|
void |
removeModel(ModelElementImpl form)
|
void |
removeNodeIndexListener(FunctionChangeListener list)
|
void |
setCursor(java.lang.String id,
int value)
|
void |
showErrorText(java.lang.String text)
|
void |
showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
boolean errorMessage,
long timeToLive)
|
void |
showUserError(java.lang.Throwable e)
|
void |
start()
called when MLFC start is called |
boolean |
understandElement(org.w3c.dom.Element elem)
|
protected void |
unlistenForHelpKeyPress()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DialogGUIDebug dialogUI
protected java.util.Hashtable models
protected ModelElementImpl defaultXForm
protected java.util.Hashtable cursors
protected java.util.Hashtable nodeindexes
protected java.util.Vector nodeIndexListeners
protected java.util.Hashtable cases
protected RepeatIndexHandler repeatIndexHandler
protected ExtendedDocument doc
protected org.apache.xerces.dom.DocumentImpl docImpl
protected MLFC mlfc
protected static AdaptiveControlFactory sAdaptiveControlFactory
public static boolean debugXForms
protected Action outermostAction
| Constructor Detail |
public XFormsElementHandler(ExtendedDocument a_doc,
MLFC xmlfc)
| Method Detail |
public void start()
public RepeatIndexHandler getRepeatIndexHandler()
getRepeatIndexHandler in interface XFormsContextpublic boolean getDebugEvents()
getDebugEvents in interface XFormsContextpublic org.apache.xerces.dom.DocumentImpl getDocumentImpl()
public void addNodeIndexListener(FunctionChangeListener list)
public void removeNodeIndexListener(FunctionChangeListener list)
public void nodeIndexChanged(java.lang.String id,
org.w3c.dom.Node n)
protected void notifyFunctionChanged()
protected MLFC getMLFC()
public ComponentFactory getComponentFactory()
getComponentFactory in interface XFormsContextpublic AdaptiveControlFactory getAdaptiveControlFactory()
public ExtendedDocument getExtendedDocument()
public org.w3c.dom.Attr createAttributeNS(org.apache.xerces.dom.DocumentImpl doc,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
public org.w3c.dom.Element createElementNS(java.lang.String URI,
java.lang.String tagname)
public void addModel(ModelElementImpl form)
public void removeModel(ModelElementImpl form)
public void addCase(CaseElementImpl caseElem)
public CaseElementImpl getCase(java.lang.String id)
public void setCursor(java.lang.String id,
int value)
setCursor in interface XFormsContextpublic int getCursor(java.lang.String id)
getCursor in interface XFormsContextpublic ModelElementImpl getModel(java.lang.String xform)
public java.util.Hashtable getModels()
getModels in interface XFormsContextpublic BindElementImpl getBind(java.lang.String id)
public void addBind(BindElementImpl bind)
public XSmilesStyleSheet getStyleSheet()
public XMLDocument getXMLDocument()
public BrowserWindow getBrowser()
public java.net.URL getXResource(java.lang.String id)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void destroy()
public void showUserError(java.lang.Throwable e)
public boolean askUserConfirmation(java.lang.String title,
java.lang.String prompt)
public void showMessageDialog(boolean isModal,
java.lang.String title,
java.lang.String message,
boolean errorMessage,
long timeToLive)
public void showErrorText(java.lang.String text)
public void openLocation(java.net.URL uri,
short show)
protected void listenForHelpKeyPress()
protected void unlistenForHelpKeyPress()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean understandElement(org.w3c.dom.Element elem)
public XSmilesConnection openURLWithGET(java.net.URL u)
throws java.lang.Exception
java.lang.Exceptionpublic void enterAction(Action action)
public void exitAction(Action action)
public boolean getInsideAction()
public org.w3c.dom.Node getNodeIndex(java.lang.String id)
getNodeIndex in interface XFormsContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||