1 package org.jahia.deprecated.taglibs.button; 2 3 import javax.servlet.jsp.JspException ; 4 5 import org.jahia.data.JahiaData; 6 import org.jahia.exceptions.JahiaException; 7 8 9 15 public class SiteMapButtonTag extends AbstractButtonTag { 16 17 private String title = "Site map"; 18 private String style = ""; 19 20 public void setTitle(String title) { 21 this.title = title; 22 } 23 24 public void setStyle(String style) { 25 this.style = style; 26 } 27 28 public String getTitle() { 29 return this.title; 30 } 31 32 public String getStyle() { 33 return this.style; 34 } 35 36 public boolean testRights (JahiaData jData) { 37 return true; 39 } 40 41 public String getLauncher(JahiaData jData) throws JahiaException { 42 return jData.gui().html().drawSiteMapLauncher(); 44 } 45 46 public int doEndTag() throws JspException { 47 title = "Site map"; 50 style = ""; 51 return EVAL_PAGE; 52 } 53 54 } 55 | Popular Tags |