Presentation is loading. Please wait.

Presentation is loading. Please wait.

The New Solution? Translate XHTML to Java GUI.. Advantages Using XML W3C support XSLT Language Testing Language Specification Using XHTML Reuse web tools.

Similar presentations


Presentation on theme: "The New Solution? Translate XHTML to Java GUI.. Advantages Using XML W3C support XSLT Language Testing Language Specification Using XHTML Reuse web tools."— Presentation transcript:

1 The New Solution? Translate XHTML to Java GUI.

2 Advantages Using XML W3C support XSLT Language Testing Language Specification Using XHTML Reuse web tools W3C Recommended Popular, well known Platform independent look Dynamic HTML  Event Handling

3 How to convert XHTML to Java GUI? Specify translation process How? Hard-coding?

4 Hard-coding Disadvantages of hard-coding Repetitive Poor maintainability Poor reusability

5 New Language? Advantages Treated as data XML Easily maintained Clear

6 New Language it is. Should it be interpreted or translated?

7 Interpretation Advantages Simpler to implement Data code separation Disadvantages Slow and inefficient

8 Translation Advantages Weaving Java into the specialized language Efficient execution of generated translator Disadvantages XML data becomes long, repetitive Java code The decision was to translate.

9 Overview

10 DHTML - Event Handling JUI_Interface eventInterface = getInterfaceBytype("java.awt.event.ActionListe ner"); JUI_Method eventMethod = getMethodByName("actionPerformed"); eventMethod.appendImplementationCode( StringManipulation.replace( " if (param0.getSource()==#self#)\n"+ " {\n"+ " "+self.getAttribute("onclick")+"\n"+ " }\n","#self#",outputProperty.getVariableName() ) ); eventInterface.addListeningProperty(outputPro perty); <listener interface="java.awt.event.ActionListener" method="actionPerformed" check="param0.getSource()==#self#" >self.getAttribute("onclick")

11 An example view

12 Thank You


Download ppt "The New Solution? Translate XHTML to Java GUI.. Advantages Using XML W3C support XSLT Language Testing Language Specification Using XHTML Reuse web tools."

Similar presentations


Ads by Google