Changeset 17829
- Timestamp:
- 08/05/08 12:56:56 (1 month ago)
- Files:
-
- trunk/core/src/net/project/css/CSSDbValues.java (modified) (2 diffs)
- trunk/core/src/net/project/gui/toolbar/Band.java (modified) (7 diffs)
- trunk/core/src/net/project/gui/toolbar/Button.java (modified) (3 diffs)
- trunk/core/src/net/project/gui/toolbar/Toolbar.java (modified) (13 diffs)
- trunk/core/src/net/project/taglibs/template/GetSpaceMainMenuTag.java (modified) (1 diff)
- trunk/core/src/net/project/taglibs/template/GetSpaceNavBarTag.java (modified) (3 diffs)
- trunk/core/src/net/project/taglibs/toolbar/BandTag.java (modified) (5 diffs)
- trunk/core/src/net/project/taglibs/toolbar/ToolbarTag.java (modified) (13 diffs)
- trunk/core/src/net/project/view/components/PersonalMenu.java (modified) (19 diffs)
- trunk/core/src/net/project/view/components/ProjectMenu.java (modified) (20 diffs)
- trunk/core/src/net/project/view/components/SpaceMainMenu.java (modified) (7 diffs)
- trunk/core/web/WEB-INF/tomcat/web.xml (modified) (1 diff)
- trunk/core/web/css/application.css (modified) (3 diffs)
- trunk/core/web/css/blog.css (modified) (1 diff)
- trunk/core/web/css/business.css (modified) (2 diffs)
- trunk/core/web/css/configuration.css (modified) (2 diffs)
- trunk/core/web/css/enterprise.css (modified) (2 diffs)
- trunk/core/web/css/facility.css (modified) (2 diffs)
- trunk/core/web/css/help.css (modified) (1 diff)
- trunk/core/web/css/methodology.css (modified) (2 diffs)
- trunk/core/web/css/noframes.css (modified) (6 diffs)
- trunk/core/web/css/noframesie.css (modified) (5 diffs)
- trunk/core/web/css/personal.css (modified) (2 diffs)
- trunk/core/web/css/project.css (modified) (2 diffs)
- trunk/core/web/css/registration.css (modified) (1 diff)
- trunk/core/web/css/resources.css (modified) (1 diff)
- trunk/core/web/css/tools.css (modified) (1 diff)
- trunk/core/web/html/assignments/MyAssignments.html (modified) (2 diffs)
- trunk/core/web/html/resource/AllocateByProject.html (modified) (2 diffs)
- trunk/core/web/html/resource/AllocateByResource.html (modified) (2 diffs)
- trunk/core/web/html/resource/AssignmentSummary.html (modified) (2 diffs)
- trunk/core/web/html/resource/ResourceAllocationSummary.html (modified) (2 diffs)
- trunk/core/web/html/resource/ViewDetails.html (modified) (2 diffs)
- trunk/core/web/html/resource/ViewSummary.html (modified) (2 diffs)
- trunk/core/web/html/resource/ViewVsAssignments.html (modified) (2 diffs)
- trunk/core/web/html/resource/management/components/BlogLayout.html (modified) (1 diff)
- trunk/core/web/html/resource/management/components/NavBar.html (modified) (10 diffs)
- trunk/core/web/html/resource/management/components/PersonalMenu.html (modified) (3 diffs)
- trunk/core/web/html/resource/management/components/ProjectMenu.html (modified) (3 diffs)
- trunk/core/web/html/resource/management/components/SpaceMainMenu.html (modified) (2 diffs)
- trunk/core/web/images/menu (added)
- trunk/core/web/images/menu/back.jpg (added)
- trunk/core/web/images/menu/black2x2.gif (added)
- trunk/core/web/images/menu/blue2x2.gif (added)
- trunk/core/web/images/menu/business-bg.png (added)
- trunk/core/web/images/menu/business-right.png (added)
- trunk/core/web/images/menu/form_search.png (added)
- trunk/core/web/images/menu/green2x2.gif (added)
- trunk/core/web/images/menu/leftcolumn-bottom.jpg (added)
- trunk/core/web/images/menu/leftcolumn-top.jpg (added)
- trunk/core/web/images/menu/leftcolumn_bottom.png (added)
- trunk/core/web/images/menu/leftcolumn_top.png (added)
- trunk/core/web/images/menu/leftheading.png (added)
- trunk/core/web/images/menu/leftheading_business.png (added)
- trunk/core/web/images/menu/leftheading_projects.png (added)
- trunk/core/web/images/menu/logo_pnet.png (added)
- trunk/core/web/images/menu/personal-bg.png (added)
- trunk/core/web/images/menu/personal-right.png (added)
- trunk/core/web/images/menu/projects-bg.png (added)
- trunk/core/web/images/menu/projects-right.png (added)
- trunk/core/web/images/menu/search.png (added)
- trunk/core/web/images/menu/tab.png (added)
- trunk/core/web/images/menu/tab_disabled.png (added)
- trunk/core/web/images/menu/yellow2x2.gif (added)
- trunk/core/web/jsp/admin/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/admin/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/base/xsl/navbar.xsl (modified) (3 diffs)
- trunk/core/web/jsp/business/BusinessPortfolio.jsp (modified) (1 diff)
- trunk/core/web/jsp/business/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/business/Setup.jsp (modified) (1 diff)
- trunk/core/web/jsp/business/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/business/subbusiness/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/calendar/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/configuration/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/discussion/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/document/Main.jsp (modified) (3 diffs)
- trunk/core/web/jsp/enterprise/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/form/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/help/include_outside/footer.jsp (modified) (1 diff)
- trunk/core/web/jsp/methodology/MethodologyList.jsp (modified) (1 diff)
- trunk/core/web/jsp/methodology/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/news/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/personal/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/personal/Setup.jsp (modified) (1 diff)
- trunk/core/web/jsp/personal/include/NavBar.jsp (modified) (2 diffs)
- trunk/core/web/jsp/portfolio/BusinessPortfolio.jsp (modified) (1 diff)
- trunk/core/web/jsp/portfolio/ConfigurationPortfolio.jsp (modified) (1 diff)
- trunk/core/web/jsp/portfolio/PersonalPortfolio.jsp (modified) (1 diff)
- trunk/core/web/jsp/process/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/process/modifyProcess.jsp (modified) (1 diff)
- trunk/core/web/jsp/project/Main.jsp (modified) (2 diffs)
- trunk/core/web/jsp/project/Setup.jsp (modified) (1 diff)
- trunk/core/web/jsp/project/include/NavBar.jsp (modified) (3 diffs)
- trunk/core/web/jsp/project/subproject/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/report/Main.jsp (modified) (1 diff)
- trunk/core/web/jsp/resource/Assignments.jsp (modified) (1 diff)
- trunk/core/web/jsp/resource/PersonalAssignments.jsp (modified) (1 diff)
- trunk/core/web/jsp/roster/Directory.jsp (modified) (1 diff)
- trunk/core/web/jsp/taglibs/templateTags.tld (modified) (1 diff)
- trunk/core/web/jsp/taglibs/toolbarTags.tld (modified) (6 diffs)
- trunk/core/web/jsp/toolbar/include/Main.jsp (modified) (4 diffs)
- trunk/core/web/jsp/workflow/Main.jsp (modified) (1 diff)
- trunk/core/web/src/allocateByProject-grid.js (modified) (2 diffs)
- trunk/core/web/src/allocateByResource-grid.js (modified) (2 diffs)
- trunk/core/web/src/assignmentSummary-grid.js (modified) (2 diffs)
- trunk/core/web/src/directory-Panel.js (modified) (1 diff)
- trunk/core/web/src/resourceAllocationSummary-grid.js (modified) (2 diffs)
- trunk/core/web/src/viewDetails-grid.js (modified) (2 diffs)
- trunk/core/web/src/viewSummary-grid.js (modified) (2 diffs)
- trunk/core/web/src/viewVsAssignments-grid.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/net/project/css/CSSDbValues.java
r16593 r17829 15 15 16 16 import net.project.base.property.PropertyProvider; 17 import net.project.security.SessionManager; 17 18 18 19 public class CSSDbValues implements Filter { … … 73 74 content = content.replace("$$" + token + "$$", value); 74 75 } 76 content = content.replaceAll("jspRootUrl", SessionManager.getJSPRootURL()); 75 77 res.setContentLength(content.length()); 76 78 pw.write(content); trunk/core/src/net/project/gui/toolbar/Band.java
r17588 r17829 20 20 import java.util.Iterator; 21 21 22 import org.apache.log4j.Logger; 23 22 24 import net.project.base.property.PropertyProvider; 25 import net.project.schedule.Schedule; 23 26 24 27 /** … … 49 52 /** Name of band. */ 50 53 private String name = null; 54 /** group heading can be specific to band */ 55 private String groupHeading = null; 51 56 /** Show all buttons. */ 52 57 private boolean showAll = false; 53 58 /** Show all button labels. */ 54 59 private boolean showLabels = false; 60 /** Show all button images. */ 61 private boolean showImages = true; 55 62 /** Enable all buttons. */ 56 63 private boolean enableAll = false; … … 78 85 setButtons(); 79 86 } 80 87 88 public void setGroupHeading(String groupHeading) throws ToolbarException { 89 this.groupHeading = groupHeading; 90 } 91 92 public String getGroupHeading() { 93 return this.groupHeading; 94 } 81 95 /** 82 96 * Set the showAll property. This sets each button's show property. … … 101 115 } 102 116 117 public void setShowImages(boolean showImages) { 118 this.showImages = showImages; 119 Iterator it = buttons.values().iterator(); 120 while (it.hasNext()) { 121 ((Button)it.next()).setShowImage(showImages); 122 } 123 } 124 103 125 public void setEnableAll(boolean enableAll) { 104 126 this.enableAll = enableAll; … … 119 141 } 120 142 button.setShowLabel(this.showLabels); 143 button.setShowImage(this.showImages); 121 144 button.setEnable(true); 122 145 button.setShow(true); … … 138 161 addButton(button); 139 162 button.setShowLabel(this.showLabels); 163 button.setShowImage(this.showImages); 140 164 button.setEnable(true); 141 165 button.setShow(true); … … 167 191 addButton(button); 168 192 button.setShowLabel(this.showLabels); 193 button.setShowImage(this.showImages); 169 194 button.setEnable(true); 170 195 button.setShow(true); trunk/core/src/net/project/gui/toolbar/Button.java
r15790 r17829 55 55 private String function = null; 56 56 private boolean isShowLabel = false; 57 private boolean isShowImage = true; 57 58 private boolean isShow = false; 58 59 private boolean isEnable = false; … … 294 295 } 295 296 297 public void setShowImage(boolean isShowImage) { 298 this.isShowImage = isShowImage; 299 } 300 301 boolean isShowImage() { 302 return this.isShowImage; 303 } 304 296 305 public void setShow(boolean isShow) { 297 306 this.isShow = isShow; … … 415 424 xml.append("<is_enable>" + Conversion.booleanToInteger(isEnable()) + "</is_enable>"); 416 425 xml.append("<is_show_label>" + Conversion.booleanToInteger(isShowLabel()) + "</is_show_label>"); 426 xml.append("<is_show_image>" + Conversion.booleanToInteger(isShowImage()) + "</is_show_image>"); 417 427 xml.append("<target>" + getTarget() + "</target>"); 418 428 xml.append("</button>"); trunk/core/src/net/project/gui/toolbar/Toolbar.java
r17754 r17829 52 52 53 53 /** Show all button labels */ 54 private boolean showLabels = false; 55 54 private boolean showLabels = true; 55 56 private boolean showImages = false; 57 58 private boolean showVertical = true; 59 56 60 /** Enable all buttons */ 57 61 private boolean enableAll = false; … … 67 71 68 72 /** Right Title token */ 69 private String rightTitleToken = null; 70 73 private String rightTitleToken = null; 74 75 private String groupTitle = null; 76 71 77 /** Escape the title text on output */ 72 78 private boolean escapeTitle = false; … … 112 118 } 113 119 120 public void setShowImages(boolean showImages) { 121 this.showImages = showImages; 122 } 123 124 public void setShowVertical(boolean showVertical) { 125 this.showVertical = showVertical; 126 } 127 114 128 public void setEnableAll(boolean enableAll) { 115 129 this.enableAll = enableAll; … … 127 141 this.rightTitle = rightTitle; 128 142 } 129 143 144 public void setGroupTitle(String groupTitle) { 145 this.groupTitle = groupTitle; 146 } 147 130 148 public void setRightTitleToken(String rightTitleToken) { 131 149 this.rightTitleToken = rightTitleToken; … … 180 198 band.setShowAll(this.showAll); 181 199 band.setShowLabels(this.showLabels); 200 band.setShowImages(this.showImages); 182 201 band.setEnableAll(this.enableAll); 183 202 bands.put(name, band); … … 336 355 /* Get band elements and display buttons for each */ 337 356 it = bandOrder.iterator(); 357 358 if(groupTitle != null){ 359 buffer.append("<div id='leftheading-" + SessionManager.getUser().getCurrentSpace().getType() + "'>" + groupTitle + "</div>"); 360 buffer.append("<div style='clear: both'></div>"); 361 } 362 363 if(showVertical){ 364 buffer.append("<div class='left_column_bottom'>\n"); 365 buffer.append("<div class='left_column_top'>\n"); 366 } 338 367 while (it.hasNext()) { 339 368 band = ((Band) bands.get(it.next())); 369 370 if(band.getGroupHeading() == null) 371 buffer.append("<div id='actionbox-item' class='actionbox-item' >"); 372 else { 373 buffer.append("<div id='group_heading' class='group_heading' >"); 374 buffer.append( band.getGroupHeading() + "<br />"); 375 } 340 376 341 377 /* Get button elements from band and display them */ … … 343 379 while (buttonIt.hasNext()) { 344 380 button = ((Button) buttonIt.next()); 345 381 if ( button.getType() == ButtonType.REFRESH ) // hide refresh from all locations 382 continue; 346 383 //Don't display sharing toolbar buttons if they aren't necessary 347 384 if (!PropertyProvider.getBoolean("prm.crossspace.isenabled", false)) { … … 353 390 if (button.isShow()) { 354 391 // Insert spacer on left side if button will have left label 355 if (button.isShowLabel() && button.getLabelPos().equals(Button.LABEL_POS_LEFT)) {356 buffer.append(" ");357 }392 //if (button.isShowLabel() && button.getLabelPos().equals(Button.LABEL_POS_LEFT)) { 393 // buffer.append(" "); 394 //} 358 395 359 396 // Insert hyper link if button is enabled 360 397 if (button.isEnable()) { 361 buffer.append("<a href=\"" + button.getFunction() + "\" "); 398 buffer.append("<span><a href=\"" + button.getFunction() + "\" "); 399 if(showVertical) 400 //buffer.append(" class=\"verticalActionBarLink\""); 362 401 if (button.getTarget() != null) { 363 402 buffer.append("target=\"").append(button.getTarget()).append("\" "); 364 403 } 365 buffer.append("onmouseout=\" document.img" + button.getName() + ".src = '" + SessionManager.getJSPRootURL()+button.getResolvedImageEnabled() + "'\" "); 366 buffer.append("onmouseover=\" document.img" + button.getName() + ".src = '" + SessionManager.getJSPRootURL()+button.getResolvedImageOver() +"'\">"); 367 useImage = button.getResolvedImageEnabled(); 404 if(showImages) { 405 buffer.append("onmouseout=\" document.img" + button.getName() + ".src = '" + SessionManager.getJSPRootURL()+button.getResolvedImageEnabled() + "'\" "); 406 buffer.append("onmouseover=\" document.img" + button.getName() + ".src = '" + SessionManager.getJSPRootURL()+button.getResolvedImageOver() +"'\">"); 407 useImage = button.getResolvedImageEnabled(); 408 } 409 buffer.append(">"); 368 410 } else { 369 useImage = button.getResolvedImageDisabled(); 411 if(showImages) 412 useImage = button.getResolvedImageDisabled(); 370 413 } 371 414 … … 375 418 } 376 419 377 // Insert image 378 buffer.append("<img "); 379 380 // Use the alt as the title, since the original (although misguided) 381 // usage of alt was as a tooltip 382 // Netscape 7.x doesn't display alts as tooltips; only titles 383 buffer.append("alt=\"").append(button.getResolvedAlt()).append("\" "); 384 buffer.append("title=\"").append(button.getResolvedAlt()).append("\" "); 385 buffer.append("border=0 hspace=0 src=\"" + SessionManager.getJSPRootURL()+useImage +"\" name=\"img" + button.getName() + "\">"); 386 420 if(showImages) { 421 // Insert image 422 buffer.append("<img "); 423 424 // Use the alt as the title, since the original (although misguided) 425 // usage of alt was as a tooltip 426 // Netscape 7.x doesn't display alts as tooltips; only titles 427 buffer.append("alt=\"").append(button.getResolvedAlt()).append("\" "); 428 buffer.append("title=\"").append(button.getResolvedAlt()).append("\" "); 429 buffer.append("border=0 hspace=0 src=\"" + SessionManager.getJSPRootURL()+useImage +"\" name=\"img" + button.getName() + "\">"); 430 } 431 387 432 // Insert label if right label 388 433 if (button.isShowLabel() && button.getLabelPos().equals(Button.LABEL_POS_RIGHT)) { … … 392 437 // Close hyperlink if button is enabled 393 438 if (button.isEnable()) { 394 buffer.append("</a> ");439 buffer.append("</a></span>"); 395 440 } 396 441 … … 400 445 } 401 446 402 buffer.append("\n"); 447 if(showVertical) 448 buffer.append("<br/>\n"); 449 else 450 buffer.append("\n"); 403 451 } //end if button.isShow() 404 452 } 453 buffer.append("</div>\n"); 454 } 455 if(showVertical){ 456 457 buffer.append("</div>\n"); 458 buffer.append("</div>"); 405 459 } 406 460 buffer.append(" "); … … 419 473 String rightTitle = null; 420 474 475 //buffer.append("\t<tr><td colspan=\"2\" align=\"" + this.align + "\" valign=\"bottom\">"); 476 //buffer.append(getToolbarPresentation()); 477 //buffer.append("</td></tr>\n"); 421 478 buffer.append("<table class=\"fixed\" width=\"" + this.width + "\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"); 422 479 buffer.append("\t<tr><td colspan=\"2\" align=\"" + this.align + "\" valign=\"bottom\">"); 423 buffer.append( getToolbarPresentation());480 buffer.append(" "); 424 481 buffer.append("</td></tr>\n"); 425 482 buffer.append("\t<tr><td align=\"left\" class=\"pageTitle\">"); … … 451 508 buffer.append("</tr></table>\n"); 452 509 453 454 510 final String b = buffer.toString(); 455 511 if (bands != null) { 456 return addFixationForToolbarBlock(b);512 return getToolbarPresentation() + addFixationForToolbarBlock(b); 457 513 } 458 514 trunk/core/src/net/project/taglibs/template/GetSpaceMainMenuTag.java
r17022 r17829 43 43 JspWriter out = pageContext.getOut(); 44 44 try { 45 out.println("<div id=\"topframe\" style=\"background-image:url('" + SessionManager.getJSPRootURL()+PropertyProvider.get("prm.global.header.banner.image") + "');\">\n");45 out.println("<div id=\"topframe\">\n"); 46 46 47 47 //check for custom menu trunk/core/src/net/project/taglibs/template/GetSpaceNavBarTag.java
r17754 r17829 26 26 import net.project.security.User; 27 27 import net.project.space.ISpaceTypes; 28 import net.project.util.Conversion; 28 29 29 30 … … 32 33 private static final String INCLUDE_PATH_SUFFIX = "/include/NavBar.jsp"; 33 34 private String _space; 34 35 private boolean showVertical = false; 36 35 37 /* ------------------------------- Constructors ------------------------------- */ 36 38 … … 44 46 } 45 47 48 public void setShowVertical(String showVertical) { 49 this.showVertical = Conversion.toBoolean(showVertical); 50 } 51 46 52 /* ------------------------------- Overriding TagSupport methods ------------------------------- */ 47 53 48 public int doStartTag() throws JspTagException {54 public int doStartTag() throws JspTagException { 49 55 final JspWriter out = pageContext.getOut(); 50 56 try { 51 out.println("<div id=\"leftframe\">"); 57 if(showVertical) // if vertifal? then include menu rendering within leftframe div 58 out.println("<div id=\"leftframe\">"); 52 59 53 60 final String path = _space == null ? getIncludePathPrefix() : getIncludePathUsingSuppliedSpace(); 54 61 pageContext.include("/" + (path) + INCLUDE_PATH_SUFFIX); 55 56 out.println("</div>");62 if(showVertical) 63 out.println("</div>"); 57 64 } catch (IOException ioe) { 58 65 throw new JspTagException("I/O exception: " + ioe); trunk/core/src/net/project/taglibs/toolbar/BandTag.java
r16593 r17829 45 45 /** name attribute */ 46 46 private String name = null; 47 48 /** group heading if any for this band */ 49 private String groupHeading = null; 47 50 /** showAll attribute */ 48 51 private boolean showAll = false; … … 72 75 band = toolbar.addBand(name); 73 76 if (isShowAllSet) { 74 band.setShowAll(showAll);77 //band.setShowAll(showAll); 75 78 } 76 79 if (isShowLabelsSet) { … … 80 83 band.setEnableAll(enableAll); 81 84 } 82 85 band.setGroupHeading(groupHeading); 83 86 } catch (ToolbarException te) { 84 87 throw new JspTagException("Error in band tag: error adding band to toolbar: " + te); … … 98 101 this.name = name; 99 102 } 103 public void setGroupHeading(String groupHeading) { 104 this.groupHeading = groupHeading; 105 } 100 106 public void setShowAll(String showAll) { 101 this.showAll = Conversion.toBoolean(showAll);107 //this.showAll = Conversion.toBoolean(showAll); 102 108 this.isShowAllSet = true; 103 109 } … … 123 129 band = null; 124 130 name = null; 131 groupHeading = null; 125 132 showAll = false; 126 133 showLabels = false; trunk/core/src/net/project/taglibs/toolbar/ToolbarTag.java
r17754 r17829 59 59 private String rightTitleToken = null; 60 60 61 /** allows to specify the highlited group title on top of actions **/ 62 private String groupTitle = null; 63 61 64 /** stylesheet attribute */ 62 65 private String stylesheet = null; … … 66 69 67 70 /** showLabels attribute */ 68 private boolean showLabels = false; 69 71 private boolean showLabels = true; 72 73 /** showLabels attribute */ 74 private boolean showImages = false; 75 70 76 /** enableAll attribute */ 71 77 private boolean enableAll = false; … … 88 94 private boolean isShowAllSet = false; 89 95 private boolean isShowLabelsSet = false; 96 private boolean isShowImagesSet = false; 90 97 private boolean isEnableAllSet = false; 91 98 private boolean isEscapeTitleSet = false; 92 99 private boolean isBottomFixed = false; 93 100 101 private boolean showVertical = true; 94 102 /** 95 103 * Start of tag. Called after the attributes are set. … … 148 156 149 157 public void setShowAll(String showAll) { 150 this.showAll = Conversion.toBoolean(showAll);158 //this.showAll = Conversion.toBoolean(showAll); // ignore showAll, keep it false 151 159 this.isShowAllSet = true; 152 160 } … … 157 165 } 158 166 167 public void setShowImages(String showImages) { 168 this.showImages = Conversion.toBoolean(showImages); 169 this.isShowImagesSet = true; 170 } 171 159 172 public void setEnableAll(String enableAll) { 160 173 this.enableAll = Conversion.toBoolean(enableAll); … … 177 190 this.rightTitleToken = rightTitleToken; 178 191 } 179 192 193 public void setGroupTitle(String groupTitle) { 194 this.groupTitle = groupTitle; 195 } 196 180 197 public void setEscapeTitle(String escapeTitle) { 181 198 this.escapeTitle = Conversion.toBoolean(escapeTitle); … … 200 217 } 201 218 202 /** 219 public void setShowVertical(String showVertical) { 220 this.showVertical = Conversion.toBoolean(showVertical); 221 } 222 223 /** 203 224 * Set an arbitrary attribute. This is usually called by the 204 225 * <code><setAttribute></code> tag nested within the <code><toolbar></code> tag.<br> … … 222 243 setLeftTitleToken(value); 223 244 } else if (name.equals("rightTitle")) { 224 setRightTitle(value); 225 } else if (name.equals("rightTitleToken")) { 245 setRightTitle(value); 246 } else if (name.equals("rightTitleToken")) { 226 247 setRightTitleToken(value); 248 } else if (name.equals("groupTitle")) { 249 setGroupTitle(value); 227 250 } else if (name.equals("escapeTitle")) { 228 251 setEscapeTitle(value); … … 259 282 /* Set the attributes that must be set prior to adding other elements */ 260 283 if (isShowAllSet) { 261 toolbar.setShowAll(showAll);284 //toolbar.setShowAll(showAll); // ignore showAll, keep it false 262 285 } 263 286 if (isShowLabelsSet) { 264 287 toolbar.setShowLabels(showLabels); 265 288 } 289 if (isShowImagesSet) { 290 toolbar.setShowImages(showImages); 291 } 266 292 if (isEnableAllSet) { 267 293 toolbar.setEnableAll(enableAll); … … 282 308 toolbar.setRightTitleToken(rightTitleToken); 283 309 } 310 if (groupTitle != null) { 311 toolbar.setGroupTitle(groupTitle); 312 } 284 313 if (stylesheet != null) { 285 314 toolbar.setStylesheet(stylesheet); … … 296 325 if (isBottomFixed) { 297 326 toolbar.setBottomFixed(_bottomFixed); 327 } 328 if (showVertical) { 329 toolbar.setShowVertical(showVertical); 298 330 } 299 331 } … … 309 341 rightTitle = null; 310 342 rightTitleToken = null; 343 groupTitle = null; 311 344 stylesheet = null; 312 345 width = null; 313 346 align = null; 314 347 showAll = false; 315 showLabels = false; 348 showLabels = true; 349 showImages = false; 316 350 enableAll = false; 317 351 escapeTitle = false; … … 322 356 _bottomFixed = false; 323 357 isBottomFixed = false; 358 showVertical = true; 324 359 } 325 360 } trunk/core/src/net/project/view/components/PersonalMenu.java
r17767 r17829 15 15 import net.project.security.SessionManager; 16 16 import net.project.security.User; 17 import net.project.view.pages.blog.ViewBlog; 17 18 18 19 import org.apache.log4j.Logger; 19 20 import org.apache.tapestry.annotations.ApplicationState; 21 import org.apache.tapestry.annotations.InjectPage; 20 22 import org.apache.tapestry.annotations.SetupRender; 21 23 … … 31 33 private String JSPRootURL; 32 34 33 private StringdashboardIsenabled;34 35 private StringcalendarIsenabled;35 private boolean dashboardIsenabled; 36 37 private boolean calendarIsenabled; 36 38 37 private StringassignmentsIsenabled;38 39 private StringblogIsenabled;40 41 private StringdocumentIsenabled;42 43 private StringformIsenabled;44 45 private StringmethodologyIsenabled;46 47 private StringsetupIsenabled;39 private boolean assignmentsIsenabled; 40 41 private boolean blogIsenabled; 42 43 private boolean documentIsenabled; 44 45 private boolean formIsenabled; 46 47 private boolean methodologyIsenabled; 48 49 private boolean setupIsenabled; 48 50 49 51 private boolean masterPropertiesExist; … … 51 53 private boolean isLicenseRequiredAtLogin; 52 54 53 private StringdisplayApplicationSpace;54 55 private StringdisplayConfigurationSpace;55 private boolean displayApplicationSpace; 56 57 private boolean displayConfigurationSpace; 56 58 57 59 private String dashboard; … … 94 96 95 97 private String toolbar; 98 99 @InjectPage 100 private ViewBlog blog; 96 101 97 102 @SetupRender … … 104 109 JSPRootURL = SessionManager.getJSPRootURL(); 105 110 user = SessionManager.getUser(); 106 dashboardIsenabled = PropertyProvider.get("prm.personal.dashboard.isenabled");107 calendarIsenabled = PropertyProvider.get("prm.personal.calendar.isenabled");108 assignmentsIsenabled = PropertyProvider.get("prm.personal.assignments.isenabled");109 blogIsenabled = PropertyProvider.get("prm.blog.isenabled");110 documentIsenabled = PropertyProvider.get("prm.personal.document.isenabled");111 formIsenabled = PropertyProvider.get("prm.personal.form.isenabled");112 methodologyIsenabled = PropertyProvider.get("prm.personal.methodology.isenabled");113 setupIsenabled = PropertyProvider.get("prm.personal.setup.isenabled");111 dashboardIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.dashboard.isenabled")); 112 calendarIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.calendar.isenabled")); 113 assignmentsIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.assignments.isenabled")); 114 blogIsenabled = getBooleanValue(PropertyProvider.get("prm.blog.isenabled")); 115 documentIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.document.isenabled")); 116 formIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.form.isenabled")); 117 methodologyIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.methodology.isenabled")); 118 setupIsenabled = getBooleanValue(PropertyProvider.get("prm.personal.setup.isenabled"));&
