Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2011
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.64 KB | None | 0 0
  1. /**
  2.  * The contents of this file are subject to the OpenMRS Public License
  3.  * Version 1.0 (the "License"); you may not use this file except in
  4.  * compliance with the License. You may obtain a copy of the License at
  5.  * http://license.openmrs.org
  6.  *
  7.  * Software distributed under the License is distributed on an "AS IS"
  8.  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  9.  * License for the specific language governing rights and limitations
  10.  * under the License.
  11.  *
  12.  * Copyright (C) OpenMRS, LLC.  All Rights Reserved.
  13.  */
  14. package org.openmrs.module.myfirst.extension.html;
  15.  
  16. import java.util.HashMap;
  17. import java.util.Map;
  18.  
  19. import org.openmrs.module.Extension;
  20. import org.openmrs.module.web.extension.AdministrationSectionExt;
  21.  
  22. /**
  23.  * This class defines the links that will appear on the administration page under the
  24.  * "myfirst.title" heading. This extension is enabled by defining (uncommenting) it in the
  25.  * /metadata/config.xml file.
  26.  */
  27. public class AdminList extends AdministrationSectionExt {
  28.    
  29.     /**
  30.      * @see org.openmrs.module.web.extension.AdministrationSectionExt#getMediaType()
  31.      */
  32.     public Extension.MEDIA_TYPE getMediaType() {
  33.         return Extension.MEDIA_TYPE.html;
  34.     }
  35.    
  36.     /**
  37.      * @see org.openmrs.module.web.extension.AdministrationSectionExt#getTitle()
  38.      */
  39.     public String getTitle() {
  40.         return "myfirst.title";
  41.     }
  42.    
  43.     /**
  44.      * @see org.openmrs.module.web.extension.AdministrationSectionExt#getLinks()
  45.      */
  46.     public Map<String, String> getLinks() {
  47.        
  48.         Map<String, String> map = new HashMap<String, String>();
  49.        
  50.         map.put("module/myfirst/myfirstLink.form", "myfirst");
  51.        
  52.         return map;
  53.     }
  54.    
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement