1 19 20 package jxl.write; 21 22 import java.io.File ; 23 import java.net.URL ; 24 25 import jxl.Hyperlink; 26 import jxl.write.biff.HyperlinkRecord; 27 28 31 public class WritableHyperlink extends HyperlinkRecord implements Hyperlink 32 { 33 40 public WritableHyperlink(Hyperlink h, WritableSheet ws) 41 { 42 super(h, ws); 43 } 44 45 52 public WritableHyperlink(int col, int row, URL url) 53 { 54 this(col, row, col, row, url); 55 } 56 57 66 public WritableHyperlink(int col, int row, int lastcol, int lastrow, URL url) 67 { 68 this(col, row, lastcol, lastrow, url, null); 69 } 70 71 81 public WritableHyperlink(int col, int row, int lastcol, int lastrow, 82 URL url, 83 String desc) 84 { 85 super(col, row, lastcol, lastrow, url, desc); 86 } 87 88 95 public WritableHyperlink(int col, int row, File file) 96 { 97 this(col, row, col, row, file, null); 98 } 99 100 108 public WritableHyperlink(int col, int row, File file, String desc) 109 { 110 this(col, row, col, row, file, desc); 111 } 112 113 122 public WritableHyperlink(int col, int row, int lastcol, int lastrow, 123 File file) 124 { 125 super(col, row, lastcol, lastrow, file, null); 126 } 127 128 138 public WritableHyperlink(int col, int row, int lastcol, int lastrow, 139 File file, String desc) 140 { 141 super(col, row, lastcol, lastrow, file, desc); 142 } 143 144 154 public WritableHyperlink(int col, int row, 155 String desc, 156 WritableSheet sheet, 157 int destcol, int destrow) 158 { 159 this(col, row, col, row, 160 desc, 161 sheet, destcol, destrow, destcol, destrow); 162 } 163 164 178 public WritableHyperlink(int col, int row, 179 int lastcol, int lastrow, 180 String desc, 181 WritableSheet sheet, 182 int destcol, int destrow, 183 int lastdestcol, int lastdestrow) 184 { 185 super(col, row, lastcol, lastrow, 186 desc, 187 sheet, destcol, destrow, 188 lastdestcol, lastdestrow); 189 } 190 191 196 public void setURL(URL url) 197 { 198 super.setURL(url); 199 } 200 201 206 public void setFile(File file) 207 { 208 super.setFile(file); 209 } 210 211 216 public void setDescription(String desc) 217 { 218 super.setContents(desc); 219 } 220 221 231 public void setLocation(String desc, 232 WritableSheet sheet, 233 int destcol, int destrow, 234 int lastdestcol, int lastdestrow) 235 { 236 super.setLocation(desc, sheet, destcol, destrow, lastdestcol, lastdestrow); 237 } 238 239 } 240 241 242 | Popular Tags |