Changeset 2291
- Timestamp:
- Mar 14, 2014, 11:31:37 AM (9 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/META-INF/extensions.xml
r2290 r2291 1 1 <?xml version="1.0" encoding="UTF-8" ?> 2 2 <extensions xmlns="http://base.thep.lu.se/extensions.xsd"> 3 <about >3 <about safe-resources="0"> 4 4 <name>Reggie package</name> 5 5 <description> … … 103 103 > 104 104 <index>10</index> 105 <about >105 <about safe-scripts="1"> 106 106 <name>Reggie</name> 107 107 <description> … … 116 116 <title>Reggie</title> 117 117 <tooltip>Access reggie operations</tooltip> 118 <onClick>Menu.openUrl('$HOME$/index.jsp?ID='+getSessionId())</onClick> 119 <icon>/images/padding.gif</icon> 118 <data-url>~/index.jsp?ID=$SESSION-ID$</data-url> 120 119 </parameters> 121 120 </action-factory> … … 129 128 <ref index="1">net.sf.basedb.clients.web.toolbar.item.extract</ref> 130 129 </extends> 131 <about >130 <about safe-scripts="1"> 132 131 <name>Case summary</name> 133 132 <description> … … 142 141 net.sf.basedb.reggie.extensions.CaseSummaryButtonFactory 143 142 </factory-class> 143 <parameters> 144 <title>Case summary</title> 145 <clazz>button auto-init</clazz> 146 <data-auto-init>reggie-case-summary-link</data-auto-init> 147 <data-home>$HOME$</data-home> 148 <icon>~/images/case_summary.png</icon> 149 <script>~/scripts/case-summary.js</script> 150 </parameters> 144 151 </action-factory> 145 152 </extension> … … 154 161 </extends> 155 162 <index>2</index> 156 <about >163 <about safe-scripts="1"> 157 164 <name>Reggie column</name> 158 165 <description> … … 174 181 > 175 182 <index>1</index> 176 <about >183 <about safe-scripts="1"> 177 184 <name>Case overview</name> 178 185 <description> … … 199 206 extends="net.sf.basedb.clients.web.toolbar.item.bioplate" 200 207 > 201 <about >208 <about safe-scripts="1"> 202 209 <name>Histology score</name> 203 210 <description> … … 210 217 net.sf.basedb.reggie.extensions.HistologyScoreButtonFactory 211 218 </factory-class> 219 <parameters> 220 <title>Score HE glass</title> 221 <clazz>button auto-init</clazz> 222 <data-auto-init>reggie-he-score-link</data-auto-init> 223 <data-home>$HOME$</data-home> 224 <icon>~/images/microscope.png</icon> 225 <script>~/scripts/he-score.js</script> 226 </parameters> 212 227 </action-factory> 213 228 </extension> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/extensions/CaseSummaryButtonFactory.java
r1915 r2291 1 1 package net.sf.basedb.reggie.extensions; 2 2 3 import net.sf.basedb.clients.web.extensions.AbstractJspActionFactory;4 3 import net.sf.basedb.clients.web.extensions.JspContext; 5 4 import net.sf.basedb.clients.web.extensions.toolbar.ButtonAction; 6 5 import net.sf.basedb.clients.web.extensions.toolbar.ButtonBean; 6 import net.sf.basedb.clients.web.extensions.toolbar.FixedButtonFactory; 7 7 import net.sf.basedb.core.Nameable; 8 8 import net.sf.basedb.reggie.Reggie; … … 19 19 */ 20 20 public class CaseSummaryButtonFactory 21 extends AbstractJspActionFactory<ButtonAction>21 extends FixedButtonFactory 22 22 { 23 23 … … 52 52 53 53 ButtonBean action = new ButtonBean(); 54 action.setEnabled(true); 55 action.setIcon(reggieHome + "/images/case_summary.png"); 56 action.setOnClick("location.href='" + reggieHome + "/reports/case_summary.jsp?ID="+ID+"&caseName=" + caseName + "'"); 57 action.setTitle("Case summary"); 54 action.setClazz(getClazz()); 55 action.setEnabled(isEnabled()); 56 action.setIcon(getIcon()); 57 action.setId(getId()); 58 action.setStyle(getStyle()); 59 action.setTitle(getTitle()); 60 action.setTooltip(getTooltip()); 61 action.setVisible(isVisible()); 62 action.setDynamicActionAttributesSource(this); 63 setParameter("data-case-name", caseName); 58 64 action.setTooltip("Reggie: Show summary of case #" + caseName); 59 action.setVisible(true);60 65 actions = new ButtonAction[] { action }; 61 66 return actions; -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/extensions/HistologyScoreButtonFactory.java
r2134 r2291 3 3 import java.util.regex.Pattern; 4 4 5 import net.sf.basedb.clients.web.extensions.AbstractJspActionFactory;6 5 import net.sf.basedb.clients.web.extensions.JspContext; 7 6 import net.sf.basedb.clients.web.extensions.toolbar.ButtonAction; 8 7 import net.sf.basedb.clients.web.extensions.toolbar.ButtonBean; 8 import net.sf.basedb.clients.web.extensions.toolbar.FixedButtonFactory; 9 9 import net.sf.basedb.core.BioPlate; 10 10 import net.sf.basedb.core.Nameable; … … 21 21 */ 22 22 public class HistologyScoreButtonFactory 23 extends AbstractJspActionFactory<ButtonAction>23 extends FixedButtonFactory 24 24 { 25 25 … … 61 61 62 62 ButtonBean action = new ButtonBean(); 63 action.setEnabled(true); 64 action.setIcon(reggieHome + "/images/microscope.png"); 65 action.setOnClick("location.href='" + reggieHome + "/sampleproc/histology_score.jsp?ID="+ID+"&name=" + heName + "'"); 66 action.setTitle("Score HE glass"); 67 action.setTooltip("Reggie: Goto HE glass scoring wizard"); 68 action.setVisible(true); 63 action.setClazz(getClazz()); 64 action.setEnabled(isEnabled()); 65 action.setIcon(getIcon()); 66 action.setId(getId()); 67 action.setStyle(getStyle()); 68 action.setTitle(getTitle()); 69 action.setTooltip(getTooltip()); 70 action.setVisible(isVisible()); 71 action.setDynamicActionAttributesSource(this); 72 setParameter("data-he-plate-name", heName); 73 action.setTooltip("Reggie: Goto HE glass scoring wizard for plate " + heName); 69 74 actions = new ButtonAction[] { action }; 70 75 return actions;
Note: See TracChangeset
for help on using the changeset viewer.