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

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

References #103: Create example extensions

Added X-JSP example

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 4.6 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>1</index>
18    <about>
19      <name>Hello world</name>
20      <description>
21        The very first extensions example. Adds a "Hello world"
22        menu item that displays "Hello world" in a javascript
23        popup when selected.
24      </description>
25    </about>
26    <action-factory>
27      <factory-class>
28        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
29      </factory-class>
30      <parameters>
31        <title>Hello world!</title>
32        <tooltip>This is to test the extensions system</tooltip>
33        <onClick>alert('Hello world!')</onClick>
34        <icon>/images/info.gif</icon>
35      </parameters>
36    </action-factory>
37  </extension>
38 
39  <extension
40    id="net.sf.basedb.clients.web.menu.extensions.helloworldfactory"
41    extends="net.sf.basedb.clients.web.menu.extensions"
42    >
43    <index>2</index>
44    <about>
45      <name>Hello factory world</name>
46      <description>
47        A "Hello world" variant with a custom action factory.
48        Everything is hard-coded into the factory.
49      </description>
50    </about>
51    <action-factory>
52      <factory-class>
53        net.sf.basedb.examples.extensions.HelloWorldFactory
54      </factory-class>
55    </action-factory>
56  </extension>
57 
58  <extension
59    id="net.sf.basedb.clients.web.menu.extensions.hellouser"
60    extends="net.sf.basedb.clients.web.menu.extensions"
61    >
62    <index>3</index>
63    <about>
64      <name>Greetings user</name>
65      <description>
66        A "Hello world" variant with a custom action factory
67        that displays "Greetings {name of user}" instead. We also
68        make the icon configurable.
69      </description>
70    </about>
71    <action-factory>
72      <factory-class>
73        net.sf.basedb.examples.extensions.HelloUserFactory
74      </factory-class>
75      <parameters>
76        <prefix>Greetings</prefix>
77        <icon>/images/take_ownership.png</icon>
78      </parameters>
79    </action-factory>
80  </extension>
81
82  <extension
83    id="net.sf.basedb.clients.web.menu.extensions.hellojspworld"
84    extends="net.sf.basedb.clients.web.menu.extensions"
85    >
86    <index>4</index>
87    <about>
88      <name>Hello JSP world</name>
89      <description>
90        This example uses a custom JSP page to display the
91        "Hello world" message instead of a javascript popup.
92      </description>
93    </about>
94    <action-factory>
95      <factory-class>
96        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
97      </factory-class>
98      <parameters>
99        <title>Hello JSP world!</title>
100        <tooltip>Opens a JSP page with the message</tooltip>
101        <onClick>Main.openPopup('$HOME$/hello_world.jsp?ID=' + getSessionId(), 'HelloJspWorld', 400, 300)</onClick>
102        <icon>~/images/world.png</icon>
103      </parameters>
104    </action-factory>
105  </extension>
106  <extension
107    id="net.sf.basedb.clients.web.menu.extensions.helloxjspworld"
108    extends="net.sf.basedb.clients.web.menu.extensions"
109    >
110    <index>5</index>
111    <about>
112      <name>Hello JSP world</name>
113      <description>
114        This example uses a custom JSP page to display the
115        "Hello world" message instead of a javascript popup.
116      </description>
117    </about>
118    <action-factory>
119      <factory-class>
120        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
121      </factory-class>
122      <parameters>
123        <title>Hello X-JSP world!</title>
124        <tooltip>Opens a X-JSP page with the message</tooltip>
125        <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloJspWorld', 400, 300)</onClick>
126        <icon>~/images/xworld.png</icon>
127      </parameters>
128    </action-factory>
129  </extension>
130  <extension
131    id="net.sf.basedb.clients.web.menu.extensions.helloservletworld"
132    extends="net.sf.basedb.clients.web.menu.extensions"
133    >
134    <index>6</index>
135    <about>
136      <name>Hello Servlet world</name>
137      <description>
138        This example uses a custom Servlet page to display the
139        "Hello world" message instead of a javascript popup.
140      </description>
141    </about>
142    <action-factory>
143      <factory-class>
144        net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory
145      </factory-class>
146      <parameters>
147        <title>Hello Servlet world!</title>
148        <tooltip>Opens a Servlet generated page with the message</tooltip>
149        <onClick>Main.openPopup('$HOME$/HelloWorld.servlet?ID=' + getSessionId(), 'HelloServletWorld', 400, 300)</onClick>
150        <icon>~/images/servlet.png</icon>
151      </parameters>
152    </action-factory>
153  </extension>
154
155</extensions>
Note: See TracBrowser for help on using the repository browser.