source: extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml @ 682

Last change on this file since 682 was 682, checked in by Nicklas Nordborg, 14 years ago

References #103. Moved all examples into a submenu.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 5.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<extensions xmlns="http://base.thep.lu.se/extensions.xsd">
3  <about>
4    <name>Extensions example package</name>
5    <description>
6      This package contains several simple example extensions.
7      Most of them are variants of the well-known "Hello world"
8      code example.
9    </description>
10    <version>1.0</version>
11    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url>
12  </about>
13  <extension
14    id="net.sf.basedb.clients.web.menu.extensions.helloworld"
15    extends="net.sf.basedb.clients.web.menu.extensions"
16    >
17    <index>0</index>
18    <action-factory>
19      <factory-class>
20        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
21      </factory-class>
22      <parameters>
23        <type>SUBMENU</type>
24        <submenuId>hello</submenuId>
25        <title>Hello world examples!</title>
26        <tooltip>Find all examples here</tooltip>
27        <icon>/images/info.gif</icon>
28      </parameters>
29    </action-factory>
30  </extension>
31  <extension
32    id="net.sf.basedb.clients.web.menu.extensions.helloworldsimple"
33    extends="net.sf.basedb.clients.web.menu.extensions"
34    >
35    <index>1</index>
36    <about>
37      <name>Hello world</name>
38      <description>
39        The very first extensions example. Adds a "Hello world"
40        menu item that displays "Hello world" in a javascript
41        popup when selected.
42      </description>
43    </about>
44    <action-factory>
45      <factory-class>
46        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
47      </factory-class>
48      <parameters>
49        <menuId>hello</menuId>
50        <title>Hello world!</title>
51        <tooltip>This is to test the extensions system</tooltip>
52        <onClick>alert('Hello world!')</onClick>
53        <icon>/images/info.gif</icon>
54      </parameters>
55    </action-factory>
56  </extension>
57 
58  <extension
59    id="net.sf.basedb.clients.web.menu.extensions.helloworldfactory"
60    extends="net.sf.basedb.clients.web.menu.extensions"
61    >
62    <index>2</index>
63    <about>
64      <name>Hello factory world</name>
65      <description>
66        A "Hello world" variant with a custom action factory.
67        Everything is hard-coded into the factory.
68      </description>
69    </about>
70    <action-factory>
71      <factory-class>
72        net.sf.basedb.examples.extensions.HelloWorldFactory
73      </factory-class>
74    </action-factory>
75  </extension>
76 
77  <extension
78    id="net.sf.basedb.clients.web.menu.extensions.hellouser"
79    extends="net.sf.basedb.clients.web.menu.extensions"
80    >
81    <index>3</index>
82    <about>
83      <name>Greetings user</name>
84      <description>
85        A "Hello world" variant with a custom action factory
86        that displays "Greetings {name of user}" instead. We also
87        make the icon configurable.
88      </description>
89    </about>
90    <action-factory>
91      <factory-class>
92        net.sf.basedb.examples.extensions.HelloUserFactory
93      </factory-class>
94      <parameters>
95        <prefix>Greetings</prefix>
96        <icon>/images/take_ownership.png</icon>
97      </parameters>
98    </action-factory>
99  </extension>
100
101  <extension
102    id="net.sf.basedb.clients.web.menu.extensions.hellojspworld"
103    extends="net.sf.basedb.clients.web.menu.extensions"
104    >
105    <index>4</index>
106    <about>
107      <name>Hello JSP world</name>
108      <description>
109        This example uses a custom JSP page to display the
110        "Hello world" message instead of a javascript popup.
111      </description>
112    </about>
113    <action-factory>
114      <factory-class>
115        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
116      </factory-class>
117      <parameters>
118        <menuId>hello</menuId>
119        <title>Hello JSP world!</title>
120        <tooltip>Opens a JSP page with the message</tooltip>
121        <onClick>Main.openPopup('$HOME$/hello_world.jsp?ID=' + getSessionId(), 'HelloJspWorld', 400, 300)</onClick>
122        <icon>~/images/world.png</icon>
123      </parameters>
124    </action-factory>
125  </extension>
126  <extension
127    id="net.sf.basedb.clients.web.menu.extensions.helloxjspworld"
128    extends="net.sf.basedb.clients.web.menu.extensions"
129    >
130    <index>5</index>
131    <about>
132      <name>Hello X-JSP world</name>
133      <description>
134        This example uses a custom X-JSP page to display the
135        "Hello world" message instead of a javascript popup.
136        An X-JSP file is a JSP file that has access to classes in
137        the extension's JAR file. NOTE! This example requires that
138        the XJSP compiler is installed on the server.
139      </description>
140    </about>
141    <action-factory>
142      <factory-class>
143        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
144      </factory-class>
145      <parameters>
146        <menuId>hello</menuId>
147        <title>Hello X-JSP world!</title>
148        <tooltip>Opens a X-JSP page with the message</tooltip>
149        <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloXJspWorld', 400, 300)</onClick>
150        <icon>~/images/xworld.png</icon>
151      </parameters>
152    </action-factory>
153  </extension>
154  <extension
155    id="net.sf.basedb.clients.web.menu.extensions.helloservletworld"
156    extends="net.sf.basedb.clients.web.menu.extensions"
157    >
158    <index>6</index>
159    <about>
160      <name>Hello Servlet world</name>
161      <description>
162        This example uses a custom Servlet page to display the
163        "Hello world" message instead of a javascript popup.
164      </description>
165    </about>
166    <action-factory>
167      <factory-class>
168        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
169      </factory-class>
170      <parameters>
171        <menuId>hello</menuId>
172        <title>Hello Servlet world!</title>
173        <tooltip>Opens a Servlet generated page with the message</tooltip>
174        <onClick>Main.openPopup('$HOME$/HelloWorld.servlet?ID=' + getSessionId(), 'HelloServletWorld', 400, 300)</onClick>
175        <icon>~/images/servlet.png</icon>
176      </parameters>
177    </action-factory>
178  </extension>
179
180</extensions>
Note: See TracBrowser for help on using the repository browser.