Changeset 1537 for extensions/net.sf.basedb.examples
- Timestamp:
- Feb 16, 2012, 11:39:54 AM (11 years ago)
- Location:
- extensions/net.sf.basedb.examples/trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.examples/trunk/.classpath
r1348 r1537 5 5 <classpathentry kind="lib" path="lib/compile/jsp-api.jar"/> 6 6 <classpathentry kind="lib" path="lib/compile/servlet-api.jar"/> 7 <classpathentry kind="lib" path="lib/compile/base-core-3. 0.0.jar"/>8 <classpathentry kind="lib" path="lib/compile/base-webclient-3. 0.0.jar"/>7 <classpathentry kind="lib" path="lib/compile/base-core-3.1.0.jar"/> 8 <classpathentry kind="lib" path="lib/compile/base-webclient-3.1.0.jar"/> 9 9 <classpathentry kind="output" path="bin"/> 10 10 </classpath> -
extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml
r1435 r1537 30 30 </description> 31 31 <version>1.4-dev</version> 32 <min-base-version>3. 0.0</min-base-version>32 <min-base-version>3.1.0</min-base-version> 33 33 <copyright>BASE development team</copyright> 34 34 <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url> … … 76 76 <title>Hello world examples!</title> 77 77 <tooltip>Find all examples here</tooltip> 78 <icon>/images/info. gif</icon>78 <icon>/images/info.png</icon> 79 79 </parameters> 80 80 </action-factory> … … 102 102 <tooltip>This is to test the extensions system</tooltip> 103 103 <onClick>alert('Hello world!')</onClick> 104 <icon>/images/info. gif</icon>104 <icon>/images/info.png</icon> 105 105 </parameters> 106 106 </action-factory> … … 170 170 <title>Hello JSP world!</title> 171 171 <tooltip>Opens a JSP page with the message</tooltip> 172 <onClick>Main.openPopup('$HOME$/hello_world.jsp?ID=' + getSessionId(), 'HelloJspWorld', 4 00, 300)</onClick>172 <onClick>Main.openPopup('$HOME$/hello_world.jsp?ID=' + getSessionId(), 'HelloJspWorld', 450, 300)</onClick> 173 173 <icon>~/images/world.png</icon> 174 174 </parameters> … … 198 198 <title>Hello X-JSP world!</title> 199 199 <tooltip>Opens a X-JSP page with the message</tooltip> 200 <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloXJspWorld', 4 00, 300)</onClick>200 <onClick>Main.openPopup('$HOME$/hello_world.xjsp?ID=' + getSessionId(), 'HelloXJspWorld', 450, 300)</onClick> 201 201 <icon>~/images/xworld.png</icon> 202 202 </parameters> … … 223 223 <title>Hello Servlet world!</title> 224 224 <tooltip>Opens a Servlet generated page with the message</tooltip> 225 <onClick>Main.openPopup('$HOME$/HelloWorld/with/some/path-info.servlet?ID=' + getSessionId(), 'HelloServletWorld', 4 00, 300)</onClick>225 <onClick>Main.openPopup('$HOME$/HelloWorld/with/some/path-info.servlet?ID=' + getSessionId(), 'HelloServletWorld', 450, 300)</onClick> 226 226 <icon>~/images/servlet.png</icon> 227 227 </parameters> … … 250 250 <title>Hello Servlet world (alternate)!</title> 251 251 <tooltip>Opens a Servlet generated page with the message</tooltip> 252 <onClick>Main.openPopup('$SERVLET_HOME$/HelloWorld/with/other/path?ID=' + getSessionId(), 'HelloServletWorld', 4 00, 300)</onClick>252 <onClick>Main.openPopup('$SERVLET_HOME$/HelloWorld/with/other/path?ID=' + getSessionId(), 'HelloServletWorld', 450, 300)</onClick> 253 253 <icon>~/images/servlet.png</icon> 254 254 </parameters> … … 275 275 <title>More info...</title> 276 276 <tooltip>Show some information about $NAME</tooltip> 277 <icon>/images/info. gif</icon>277 <icon>/images/info.png</icon> 278 278 <onClick>Examples.showItemInfo('$TYPE', $ID)</onClick> 279 279 <script>~/scripts/examples.jsp</script> … … 301 301 <title>Annotation filter...</title> 302 302 <tooltip>Filter items based on if they have been annotated or not</tooltip> 303 <icon>/images/filter. gif</icon>303 <icon>/images/filter.png</icon> 304 304 <onClick>Examples.filterAnnotated('$TYPE')</onClick> 305 305 <script>~/scripts/examples.jsp</script> -
extensions/net.sf.basedb.examples/trunk/README
r1433 r1537 1 1 == Requirements == 2 2 3 1. BASE 3. 0or later.3 1. BASE 3.1 or later. 4 4 5 5 == Introduction == … … 71 71 1. Type `ant download-lib` to automatically download the BASE core JAR file that 72 72 are neeed for compilation. You can also do this manually by copying the 73 base-core-3. 0.0.jar and base-webclient-3.0.0.jar files from the BASE installation73 base-core-3.1.0.jar and base-webclient-3.1.0.jar files from the BASE installation 74 74 directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory. 75 75 -
extensions/net.sf.basedb.examples/trunk/build.xml
r1435 r1537 42 42 <property name="javac.encoding" value="UTF-8" /> 43 43 <property name="depend.base-version" 44 value="3. 0.0"44 value="3.1.0" 45 45 description="The BASE version that this project depends on." 46 46 /> -
extensions/net.sf.basedb.examples/trunk/lib/compile/readme.txt
r1346 r1537 4 4 root directory to download those files automatically. 5 5 6 * base-core-3. 0.0.jar7 * base-webclient-3. 0.0.jar6 * base-core-3.1.0.jar 7 * base-webclient-3.1.0.jar -
extensions/net.sf.basedb.examples/trunk/resources/filter_annotated.jsp
r1391 r1537 65 65 </base:head> 66 66 <base:body> 67 <h1>Annotation filter</h1> 68 67 69 <form name="filter"> 68 <h3 class="docked">Annotation filter</h3> 69 <div class="boxedbottom"> 70 <input type="radio" name="what" value="<>" 71 <%=operator == Operator.NEQ ? "checked" : "" %> 72 ><a href="javascript:select('<>')">Show only items with annotations</a><br> 73 <input type="radio" name="what" value="=" 74 <%=operator == Operator.EQ ? "checked" : "" %> 75 ><a href="javascript:select('=')">Show only item without annotations</a><br> 76 <input type="radio" name="what" value="" 77 <%=operator == null ? "checked" : "" %> 78 ><a href="javascript:select('')">Show all items</a><br> 70 <div class="content bottomborder"> 71 <table class="fullform smaller"> 72 <tr class="dynamic"> 73 <th>Filter</th> 74 <td> 75 <input type="radio" name="what" value="<>" 76 <%=operator == Operator.NEQ ? "checked" : "" %> 77 ><a href="javascript:select('<>')">Show only items with annotations</a><br> 78 <input type="radio" name="what" value="=" 79 <%=operator == Operator.EQ ? "checked" : "" %> 80 ><a href="javascript:select('=')">Show only item without annotations</a><br> 81 <input type="radio" name="what" value="" 82 <%=operator == null ? "checked" : "" %> 83 ><a href="javascript:select('')">Show all items</a><br> 84 </td> 85 </tr> 86 </table> 79 87 </div> 80 <br>81 <table align="center">82 <tr>83 <td><base:button onclick="applyFilter()" title="Ok" /></td>84 <td><base:button onclick="window.close()" title="Cancel" /></td>85 </tr>86 </table>87 88 </form> 89 90 <base:buttongroup subclass="dialogbuttons"> 91 <base:button onclick="applyFilter()" title="Ok" /> 92 <base:button onclick="window.close()" title="Cancel" /> 93 </base:buttongroup> 88 94 </base:body> 89 95 </base:page> -
extensions/net.sf.basedb.examples/trunk/resources/hello_world.jsp
r1391 r1537 41 41 <base:head /> 42 42 <base:body> 43 <h3 class="docked">Hello <%=HTML.encodeTags(current.getName())%></h3> 44 <div class="boxedbottom"> 45 Here are your settings: 46 <table class="form" border="0" cellspacing="1" cellpadding="2"> 43 <h1>Hello <%=HTML.encodeTags(current.getName())%></h1> 44 <div class="content bottomborder"> 45 <table class="fullform"> 47 46 <tr> 48 <t d class="prompt">Session ID</td>47 <th>Session ID</th> 49 48 <td><%=ID%></td> 50 49 </tr> 51 50 <tr> 52 <t d class="prompt">Login</td>51 <th>Login</th> 53 52 <td><%=HTML.encodeTags(current.getLogin())%></td> 54 53 </tr> 55 <tr >56 <t d class="prompt">Email</td>54 <tr class="dynamic"> 55 <th>Email</th> 57 56 <td><%=HTML.niceFormat(current.getEmail())%></td> 58 57 </tr> 59 58 </table> 60 59 </div> 61 <br> 62 <table align="center"> 63 <tr> 64 <td><base:button onclick="window.close()" title="Close" /></td> 65 </tr> 66 </table> 67 </form> 60 61 <base:buttongroup subclass="dialogbuttons"> 62 <base:button onclick="window.close()" title="Close" /> 63 </base:buttongroup> 64 68 65 </base:body> 69 66 </base:page> -
extensions/net.sf.basedb.examples/trunk/resources/hello_world.xjsp
r1391 r1537 35 35 <base:head /> 36 36 <base:body> 37 <h3 class="docked">Hello <%=HTML.encodeTags(current.getName())%></h3> 38 <div class="boxedbottom"> 39 Here are your X-JSP settings: 40 <table class="form" border="0" cellspacing="1" cellpadding="2"> 37 <h1>Hello <%=HTML.encodeTags(current.getName())%></h1> 38 <div class="content bottomborder"> 39 <table class="fullform"> 41 40 <tr> 42 <t d class="prompt">Session ID</td>41 <th>Session ID</th> 43 42 <td><%=ID%></td> 44 43 </tr> 45 44 <tr> 46 <t d class="prompt">Login</td>45 <th>Login</th> 47 46 <td><%=HTML.encodeTags(current.getLogin())%></td> 48 47 </tr> 49 48 <tr> 50 <t d class="prompt">Email</td>49 <th>Email</th> 51 50 <td><%=HTML.niceFormat(current.getEmail())%></td> 51 </tr> 52 <tr class="dynamic"> 53 <th></th> 54 <td> 55 <div class="messagecontainer note"> 56 Produced with the XJSP compiler. 57 </div> 58 </td> 52 59 </tr> 53 60 </table> 54 61 </div> 55 <br> 56 <table align="center"> 57 <tr> 58 <td><base:button onclick="window.close()" title="Close" /></td> 59 </tr> 60 </table> 61 </form> 62 63 <base:buttongroup subclass="dialogbuttons"> 64 <base:button onclick="window.close()" title="Close" /> 65 </base:buttongroup> 62 66 </base:body> 63 67 </base:page> -
extensions/net.sf.basedb.examples/trunk/resources/history_file.jsp
r1391 r1537 87 87 url += '&item_id='+id; 88 88 } 89 Main.openPopup(url, 'SelectFile', 10 00, 700);89 Main.openPopup(url, 'SelectFile', 1050, 700); 90 90 } 91 91 function setFileCallback(id, path) … … 102 102 } 103 103 </script> 104 <table class="f orm" cellspacing=0>104 <table class="fullform input100"> 105 105 <tr> 106 <t d class="prompt">History file</td>106 <th>History file</th> 107 107 <td> 108 108 <base:select … … 116 116 /> 117 117 </td> 118 <td></td> 118 119 </tr> 119 <tr valign=top>120 <t d class="prompt">Description</td>121 <td nowrap>122 <textarea class="text" rows=" 4" cols="40" name="history_description" wrap="virtual"120 <tr class="dynamic"> 121 <th>Description</th> 122 <td> 123 <textarea class="text" rows="6" name="history_description" 123 124 ><%=HTML.encodeTags(any == null ? "" : any.getDescription())%></textarea> 124 <a href="javascript:Main.zoom('Description', document.forms[0].name, 'history_description')" 125 title="Edit in larger window"><base:icon image="zoom.gif" /></a> 125 </td> 126 <td style="width: 20px;"> 127 <base:icon image="zoom.png" 128 onclick="Main.zoom('Description', document.forms[0].name, 'history_description')" 129 tooltip="Edit in larger window" 130 /> 126 131 </td> 127 132 </tr> -
extensions/net.sf.basedb.examples/trunk/resources/item_info.jsp
r1391 r1537 75 75 <base:head /> 76 76 <base:body> 77 <h 3 class="docked">Item information</h3>78 <div class=" boxedbottom">77 <h1>Item information</h1> 78 <div class="content bottomborder"> 79 79 80 <table class="f orm" border="0" cellspacing="1" cellpadding="2">80 <table class="fullform larger"> 81 81 <tr> 82 <t d class="prompt">Type</td>82 <th>Type</th> 83 83 <td><%=itemType.name()%></td> 84 84 </tr> 85 85 <tr> 86 <t d class="prompt">ID</td>86 <th>ID</th> 87 87 <td><%=itemId%></td> 88 88 </tr> 89 89 <tr> 90 <t d class="prompt">Name</td>90 <th>Name</th> 91 91 <td><%=name == null ? "<i>unknown</i>" : HTML.niceFormat(name)%></td> 92 92 </tr> 93 93 <tr> 94 <t d class="prompt">Registration date</td>94 <th>Registration date</th> 95 95 <td><%=registered == null ? "<i>unknown</i>" : dateFormatter.format(registered)%></td> 96 96 </tr> 97 97 <tr> 98 <t d class="prompt">Owned by you?</td>98 <th>Owned by you?</th> 99 99 <td><%=isOwnedByYou ? "yes" : "no"%></td> 100 100 </tr> 101 101 <tr> 102 <t d class="prompt">Shared to other users?</td>102 <th>Shared to other users?</th> 103 103 <td><%=isShared ? "yes" : "no"%></td> 104 104 </tr> 105 105 <tr> 106 <t d class="prompt">Marked for removal?</td>106 <th>Marked for removal?</th> 107 107 <td><%=isRemoved ? "yes" : "no"%></td> 108 </tr> 109 <tr class="dynamic"> 110 <th></th> 111 <td></td> 108 112 </tr> 109 113 </table> 110 114 </div> 111 <br> 112 <table align="center"> 113 <tr> 114 <td><base:button onclick="window.close()" title="Close" /></td> 115 </tr> 116 </table> 117 </form> 115 116 <base:buttongroup subclass="dialogbuttons"> 117 <base:button onclick="window.close()" title="Close" /> 118 </base:buttongroup> 118 119 </base:body> 119 120 </base:page> -
extensions/net.sf.basedb.examples/trunk/resources/scripts/examples.jsp
r1391 r1537 37 37 url += '&item_type=' + itemType; 38 38 url += '&item_id='+itemId; 39 Main.openPopup(url, 'ItemInfo', 400, 300);39 Main.openPopup(url, 'ItemInfo', 600, 400); 40 40 } 41 41 … … 45 45 url += '?ID='+getSessionId(); 46 46 url += '&item_type=' + itemType; 47 Main.openPopup(url, 'AnnotationFilter', 4 00, 300);47 Main.openPopup(url, 'AnnotationFilter', 450, 300); 48 48 } 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.