1 23 24 package org.infoglue.cms.applications.common; 25 26 import java.util.ArrayList ; 27 import java.util.List ; 28 29 33 34 public class ImageButton 35 { 36 private boolean isSelfContained = false; 37 private String actionURL = ""; 38 private String imageURL = ""; 39 private Integer height = new Integer (22); 40 private Integer width = new Integer (76); 41 private String title = ""; 42 private String tooltip = ""; 43 private List subButtons = new ArrayList (); 44 45 public ImageButton(String actionURL, String imageURL, String title) 46 { 47 this.actionURL = actionURL; 48 this.imageURL = imageURL; 49 this.title = title; 50 } 51 52 public ImageButton(String actionURL, String imageURL, String title, Integer height, Integer width) 53 { 54 this.actionURL = actionURL; 55 this.imageURL = imageURL; 56 this.title = title; 57 this.height = height; 58 this.width = width; 59 } 60 61 public ImageButton(boolean isSelfContained, String actionURL, String imageURL, String title) 62 { 63 this.isSelfContained = isSelfContained; 64 this.actionURL = actionURL; 65 this.imageURL = imageURL; 66 this.title = title; 67 } 68 69 public ImageButton(boolean isSelfContained, String actionURL, String imageURL, String title, String tooltip) 70 { 71 this.tooltip = tooltip; 72 this.isSelfContained = isSelfContained; 73 this.actionURL = actionURL; 74 this.imageURL = imageURL; 75 this.title = title; 76 } 77 78 public ImageButton(boolean isSelfContained, String actionURL, String imageURL, String title, String tooltip, Integer height, Integer width) 79 { 80 this.tooltip = tooltip; 81 this.isSelfContained = isSelfContained; 82 this.actionURL = actionURL; 83 this.imageURL = imageURL; 84 this.title = title; 85 this.height = height; 86 this.width = width; 87 } 88 89 public boolean getIsSelfContained() 90 { 91 return this.isSelfContained; 92 } 93 94 public String getActionUrl() 95 { 96 return this.actionURL; 97 } 98 99 public String getImageUrl() 100 { 101 return this.imageURL; 102 } 103 104 public String getTitle() 105 { 106 return this.title; 107 } 108 109 113 public String getTooltip() { 114 return tooltip; 115 } 116 117 118 public Integer getHeight() 119 { 120 return height; 121 } 122 123 public Integer getWidth() 124 { 125 return width; 126 } 127 128 public List getSubButtons() 129 { 130 return subButtons; 131 } 132 } | Popular Tags |