1 31 32 package org.opencms.workplace.editors.directedit; 33 34 43 public class CmsDirectEditParams { 44 45 46 protected String m_element; 47 48 49 protected String m_linkForClose; 50 51 52 protected String m_linkForNew; 53 54 55 protected CmsDirectEditMode m_mode; 56 57 58 protected CmsDirectEditButtonSelection m_options; 59 60 61 protected String m_resourceName; 62 63 68 public CmsDirectEditParams(String linkForClose) { 69 70 m_resourceName = null; 71 m_options = null; 72 m_element = null; 73 m_linkForNew = null; 74 m_linkForClose = linkForClose; 75 m_mode = CmsDirectEditMode.TRUE; 76 } 77 78 86 public CmsDirectEditParams( 87 String resourceName, 88 CmsDirectEditButtonSelection options, 89 CmsDirectEditMode mode, 90 String linkForNew) { 91 92 m_resourceName = resourceName; 93 m_options = options; 94 m_element = null; 95 m_linkForNew = linkForNew; 96 m_linkForClose = null; 97 m_mode = mode != null ? mode : CmsDirectEditMode.TRUE; 98 } 99 100 106 public CmsDirectEditParams(String resourceName, String element) { 107 108 m_resourceName = resourceName; 109 m_options = CmsDirectEditButtonSelection.EDIT; 110 m_element = element; 111 m_linkForNew = null; 112 m_linkForClose = null; 113 m_mode = CmsDirectEditMode.TRUE; 114 } 115 116 121 public CmsDirectEditButtonSelection getButtonSelection() { 122 123 return m_options; 124 } 125 126 131 public String getElement() { 132 133 return m_element; 134 } 135 136 141 public String getLinkForClose() { 142 143 return m_linkForClose; 144 } 145 146 151 public String getLinkForDelete() { 152 153 return "/system/workplace/commons/delete.jsp"; 154 } 155 156 161 public String getLinkForEdit() { 162 163 return "/system/workplace/editors/editor.jsp"; 164 } 165 166 171 public String getLinkForNew() { 172 173 return m_linkForNew; 174 } 175 176 181 public CmsDirectEditMode getMode() { 182 183 return m_mode; 184 } 185 186 191 public String getResourceName() { 192 193 return m_resourceName; 194 } 195 }
| Popular Tags
|