1 31 32 package org.opencms.workplace.tools; 33 34 import org.opencms.file.CmsObject; 35 36 45 public class CmsToolRootHandler extends A_CmsToolHandler { 46 47 48 private String m_key; 49 50 private String m_uri; 51 52 57 public String getKey() { 58 59 return m_key; 60 } 61 62 67 public String getUri() { 68 69 return m_uri; 70 } 71 72 75 public boolean isEnabled(CmsObject cms) { 76 77 return true; 78 } 79 80 83 public boolean isVisible(CmsObject cms) { 84 85 return true; 86 } 87 88 93 public void setKey(String key) { 94 95 m_key = key; 96 } 97 98 101 public boolean setup(CmsObject cms, CmsToolRootHandler root, String resourcePath) { 102 103 setDisabledHelpText(getHelpText()); 104 setIconPath("admin/images/deficon.png"); 105 setSmallIconPath(getIconPath()); 106 setPath("/"); 107 setGroup(""); 108 setPosition(1); 109 setLink(cms, resourcePath); 110 return true; 111 } 112 113 118 public void setUri(String uri) { 119 120 m_uri = uri; 121 } 122 } 123 | Popular Tags |