1 19 20 package org.netbeans.editor; 21 22 29 30 public class BaseImageTokenID extends BaseTokenID implements ImageTokenID { 31 32 private final String image; 33 34 35 public BaseImageTokenID(String nameAndImage) { 36 this(nameAndImage, nameAndImage); 37 } 38 39 public BaseImageTokenID(String name, String image) { 40 super(name); 41 this.image = image; 42 } 43 44 public BaseImageTokenID(String nameAndImage, int numericID) { 45 this(nameAndImage, numericID, nameAndImage); 46 } 47 48 public BaseImageTokenID(String name, int numericID, String image) { 49 super(name, numericID); 50 this.image = image; 51 } 52 53 public BaseImageTokenID(String nameAndImage, TokenCategory category) { 54 this(nameAndImage, category, nameAndImage); 55 } 56 57 public BaseImageTokenID(String name, TokenCategory category, String image) { 58 super(name, category); 59 this.image = image; 60 } 61 62 public BaseImageTokenID(String nameAndImage, int numericID, TokenCategory category) { 63 this(nameAndImage, numericID, category, nameAndImage); 64 } 65 66 public BaseImageTokenID(String name, int numericID, TokenCategory category, String image) { 67 super(name, numericID, category); 68 this.image = image; 69 } 70 71 public String getImage() { 72 return image; 73 } 74 75 public String toString() { 76 return super.toString() + ", image='" + getImage() + "'"; } 78 79 } 80 | Popular Tags |