1 11 package org.eclipse.help.internal.webapp.data; 12 13 public class View { 14 public static char NO_SHORTCUT = (char)0; 15 private String name; 16 private String url; 17 private String imageURL; 18 private char shortcut; 19 private boolean isDeferred; 20 21 public View(String name, String url, String imageURL, char shortcut, boolean isDeferred) { 22 this.name = name; 23 this.url = url; 24 this.imageURL = imageURL; 25 this.shortcut = shortcut; 26 this.isDeferred = isDeferred; 27 } 28 29 public String getName() { 30 return name; 31 } 32 33 public String getURL() { 34 return url; 35 } 36 37 42 public String getImage() { 43 int i = imageURL.lastIndexOf('/'); 44 return imageURL.substring(0, i) + "/e_" + imageURL.substring(i + 1); } 46 47 52 public String getOnImage() { 53 return getImage(); 54 } 55 60 public char getKey() { 61 return shortcut; 62 } 63 64 68 public boolean isDeferred() { 69 return isDeferred; 70 } 71 } 72 | Popular Tags |