Changes between Version 17 and Version 18 of MolgenisPlugin


Ignore:
Timestamp:
03/22/11 16:06:08 (2 years ago)
Author:
Roan123
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MolgenisPlugin

    v17 v18  
    2323== 2. Add reload logic to 'plugin.pubmed.!PubmedPlugin.java' == 
    2424Open the plugin.pubmed.!PubmedPlugin.java file from the handwritten/java folder. You see it has four methods including: 
     25 
    2526 * 'handleRequest' to process user requests (updates, interactive features) 
    2627 * 'reload' to implement what needs to be done if the page is reloaded (data loading) 
     
    3940{ 
    4041  //get the menu above this plugin 
    41   MenuScreen parentMenu = (MenuScreen)this.getParent(); 
     42  MenuModel parentMenu = (MenuModel)this.getParent(); 
    4243 
    4344  //get the form above the menu, this holds the contacts 
    44   FormScreen<Contact> parentForm = (FormScreen)parentMenu.getParent(); 
     45  FormModel<Contact> parentForm = (FormModel)parentMenu.getParent(); 
    4546 
    4647  //get the currently visible contact 
     
    6667} 
    6768}}} 
    68  
    6969== 3. Create a html layout in plugin.pubmed.!PubmedPlugin.ftl to show Pubmed in iframe == 
    7070Tip: [http://freemarker.sourceforge.net/eclipse.html Install Freemarker Plugin] into eclipse in order to make Eclipse show colorful highlighting. 
    7171 
    72 * Edit the section between 'begin' and 'end': 
     72 * Edit the section between 'begin' and 'end': 
    7373{{{ 
    7474<#--begin your plugin--> 
     
    8181 
    8282== 4. Add user input handling to enable users to choose year == 
    83 * Further edit the 'plugin.pubmed.!PubmedPlugin.ftl' to add inputs to enter 'year' and a 'submit' button.[[BR]] 
    84   NOTICE: within MOLGENIS it has become practice to always use a field named ‘action’ to transfer the users intention. 
    85   Hence the weird {{{onclick=”__action.value=’setYear’}}} mechanism. 
     83 * Further edit the 'plugin.pubmed.!PubmedPlugin.ftl' to add inputs to enter 'year' and a 'submit' button.[[BR]] NOTICE: within MOLGENIS it has become practice to always use a field named ‘action’ to transfer the users intention. Hence the weird `onclick=”__action.value=’setYear’` mechanism. 
    8684 
    8785{{{ 
     
    9492<#--end of your plugin--> 
    9593}}} 
    96  
    97 * Edit the 'plugin.pubmed.!PubmedPlugin.java' to handle the requests 
     94 * Edit the 'plugin.pubmed.!PubmedPlugin.java' to handle the requests 
    9895{{{ 
    9996#!java 
     
    105102  } 
    106103} 
    107 }}}  
     104}}}