GWT Generators and OOPHM Allahbaksh Mohammedali Asadullah
Outline <ul><li>Generators </li></ul><ul><ul><li>Introduction to Generator </li></ul></ul><ul><ul><li>Creating generator i...
Introduction to Generators <ul><li>What is Generator? </li></ul><ul><li>Whether I am using Generator indirectly any where?...
Creating Generator In Short <ul><li>Defining properties and rules in gwt.xml </li></ul><ul><li>Create class using GWT.crea...
Defining module properties <ul><li><define-property name= &quot; widgetType &quot;  values= &quot;basic,extended&quot; /> ...
Syntax of module file (gwt.xml) <ul><li><replace-with  class= “com.barcamp.example.client.MyWidget”> </li></ul><ul><li><wh...
Out of Process Hosted Mode Browser <ul><li>Debugging GWT application? </li></ul><ul><li>Why I need to mock browser? </li><...
Demo
Upcoming SlideShare
Loading in...5
×

GWT Generators and OOPHM

1,324

Published on

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total Views
1,324
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

GWT Generators and OOPHM

  1. 1. GWT Generators and OOPHM Allahbaksh Mohammedali Asadullah
  2. 2. Outline <ul><li>Generators </li></ul><ul><ul><li>Introduction to Generator </li></ul></ul><ul><ul><li>Creating generator in short </li></ul></ul><ul><ul><li>Defining module properties </li></ul></ul><ul><ul><li>Syntax of module properties </li></ul></ul><ul><ul><li>Demo of Generator &Debugging Generator </li></ul></ul><ul><li>Out of Process Hosted Mode Browser </li></ul><ul><ul><li>What is out of process Hosted Mode Browser </li></ul></ul>
  3. 3. Introduction to Generators <ul><li>What is Generator? </li></ul><ul><li>Whether I am using Generator indirectly any where? </li></ul><ul><li>Why and where can I use these? </li></ul>
  4. 4. Creating Generator In Short <ul><li>Defining properties and rules in gwt.xml </li></ul><ul><li>Create class using GWT.create(Type.class) </li></ul><ul><li>Properties condition checking in module file (.gwt.xml) </li></ul><ul><li>Substitution replace-with </li></ul><ul><li>Generation generate-with </li></ul>
  5. 5. Defining module properties <ul><li><define-property name= &quot; widgetType &quot; values= &quot;basic,extended&quot; /> </li></ul><ul><li><property-provider name= “widgetType&quot; > </li></ul><ul><li><![CDATA[ </li></ul><ul><li>try{ </li></ul><ul><li>var tempVar = __gwt_getMetaProperty(&quot; widgetType &quot;); </li></ul><ul><li>if (tempVar==null){ </li></ul><ul><li>tempVar = &quot;basic&quot;; </li></ul><ul><li>} </li></ul><ul><li>return tempVar; </li></ul><ul><li>} catch (e) { </li></ul><ul><li>return &quot;extended&quot;; </li></ul><ul><li>} </li></ul><ul><li>]]> </li></ul><ul><li></property-provider> </li></ul>
  6. 6. Syntax of module file (gwt.xml) <ul><li><replace-with class= “com.barcamp.example.client.MyWidget”> </li></ul><ul><li><when-type-is class=“com.barcamp.example.client.TestWidget”/> </li></ul><ul><li><when-property-is name=“ widgetType ” value=“allahbaksh”/> </li></ul><ul><li></replace-with > </li></ul><ul><li><generate-with class= “com.barcamp.example.rebind.MyWidgetGenerator”> </li></ul><ul><li><when-type-is class=“com.barcamp.example.client.TestWidget”/> </li></ul><ul><li></ generate-with > </li></ul>
  7. 7. Out of Process Hosted Mode Browser <ul><li>Debugging GWT application? </li></ul><ul><li>Why I need to mock browser? </li></ul><ul><li>Disadvantages of present approach? </li></ul><ul><li>What OOPHM offers me? </li></ul><ul><li>Is the build available? </li></ul>
  8. 8. Demo
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×