1 19 package org.openbravo.erpCommon.utility; 20 21 22 public class ToolBar_Image implements HTMLElement { 23 String name = ""; 24 String description = ""; 25 String base_direction; 26 27 public ToolBar_Image(String _base_direction, String _name, String _description) { 28 this.name = _name; 29 this.base_direction = _base_direction; 30 this.description = _description; 31 } 32 33 public String getWidth() { 34 return "16"; 35 } 36 37 public String elementType() { 38 return "IMAGE"; 39 } 40 41 public String toString() { 42 StringBuffer toolbar = new StringBuffer (); 43 toolbar.append("<img class=\"Main_ToolBar_Button_Icon Main_ToolBar_Button_Icon_").append(name).append("\" SRC=\"").append(base_direction).append("/images/blank.gif\" "); 44 toolbar.append("title=\"").append(description); 45 toolbar.append("\" border=\"0\" id=\"button").append(name).append("\""); 46 toolbar.append(">"); 47 return toolbar.toString(); 48 } 49 } | Popular Tags |