1 21 22 package com.izforge.izpack.util.os; 23 24 import java.io.UnsupportedEncodingException ; 25 import java.util.Vector ; 26 27 import com.izforge.izpack.installer.UninstallData; 28 import com.izforge.izpack.util.Debug; 29 30 31 41 public class Shortcut 42 { 43 44 48 public static final int APPLICATIONS = 1; 49 50 51 public static final int START_MENU = 2; 52 53 54 public static final int DESKTOP = 3; 55 56 57 public static final int START_UP = 4; 58 59 60 public static final int HIDE = 0; 61 62 66 public static final int NORMAL = 1; 67 68 69 public static final int MINIMIZED = 2; 70 71 72 public static final int MAXIMIZED = 3; 73 74 75 public static final int CURRENT_USER = 1; 76 77 78 public static final int ALL_USERS = 2; 79 80 81 private Boolean createForAll; 82 83 84 protected UninstallData uninstaller; 85 86 87 94 public void initialize(int type, String name) throws Exception 95 { 96 } 97 98 99 108 public String getBasePath() throws Exception 109 { 110 return (""); 111 } 112 113 114 127 public Vector getProgramGroups(int userType) 128 { 129 return (null); 130 } 131 132 133 141 public String getFileName() 142 { 143 return (""); 144 } 145 146 147 155 public String getDirectoryCreated() 156 { 157 return (null); 158 } 159 160 161 166 public boolean multipleUsers() 167 { 168 return (false); 169 } 170 171 172 186 public boolean supported() 187 { 188 return (false); 189 } 190 191 192 197 public void setArguments(String arguments) 198 { 199 } 200 201 202 207 public void setDescription(String description) 208 { 209 } 210 211 212 219 public void setIconLocation(String path, int index) 220 { 221 } 222 223 224 229 public String getIconLocation() 230 { 231 return ""; 232 } 233 234 235 240 public void setProgramGroup(String groupName) 241 { 242 } 243 244 245 265 public void setShowCommand(int show) 266 { 267 } 268 269 272 public int getShowCommand() 273 { 274 return Shortcut.NORMAL; 275 } 276 277 278 283 public void setTargetPath(String path) 284 { 285 } 286 287 288 293 public void setWorkingDirectory(String dir) 294 { 295 } 296 297 298 303 public String getWorkingDirectory() 304 { 305 return ""; 306 } 307 308 309 315 public void setLinkName(String name) 316 { 317 } 318 319 320 329 public int getLinkType() 330 { 331 return Shortcut.DESKTOP; 333 } 334 335 336 350 public void setLinkType(int type) throws IllegalArgumentException , UnsupportedEncodingException 351 { 352 } 353 354 355 363 public void setUserType(int type) 364 { 365 } 366 367 368 375 public int getUserType() 376 { 377 return CURRENT_USER; 378 } 379 380 381 386 public void save() throws Exception 387 { 388 } 389 390 391 396 public int getHotkey() 397 { 398 return 0; 399 } 400 401 402 407 public void setHotkey(int hotkey) 408 { 409 } 410 411 416 public void setEncoding(String string) 417 { 418 } 419 420 425 public void setMimetype(String string) 426 { 427 } 428 429 434 public void setTerminal(String string) 435 { 436 } 437 438 443 public void setTerminalOptions(String string) 444 { 445 } 446 447 452 public void setType(String string) 453 { 454 } 455 456 461 public void setKdeUserName(String string) 462 { 463 } 464 465 470 public void setKdeSubstUID(String string) 471 { 472 } 473 474 479 public void setURL(String string) 480 { 481 } 482 483 491 public String getProgramsFolder(int current_user) 492 { 493 return null; 494 } 495 496 501 public void setCreateForAll(Boolean aCreateForAll) 502 { 503 this.createForAll = Boolean.valueOf(aCreateForAll.booleanValue()); 504 } 505 506 511 public Boolean getCreateForAll() 512 { 513 return createForAll; 514 } 515 516 521 public void setCategories(String theCategories) 522 { 523 } 524 525 530 public void setTryExec(String aTryExec) 531 { 532 } 533 534 539 public void setUninstaller(UninstallData theUninstaller) 540 { 541 uninstaller = theUninstaller; 542 } 543 544 548 public void execPostAction() 549 { 550 } 552 553 558 public void cleanUp() 559 { 560 } 562 563 } 564 565 566 | Popular Tags |