1 29 30 package echo2example.email; 31 32 import nextapp.echo2.app.ImageReference; 33 import nextapp.echo2.app.ResourceImageReference; 34 import nextapp.echo2.app.StyleSheet; 35 import nextapp.echo2.app.componentxml.ComponentXmlException; 36 import nextapp.echo2.app.componentxml.StyleSheetLoader; 37 38 41 public class Styles { 42 43 public static final String IMAGE_PATH = "/echo2example/email/resource/image/"; 44 public static final String STYLE_PATH = "/echo2example/email/resource/style/"; 45 46 49 public static final StyleSheet DEFAULT_STYLE_SHEET; 50 static { 51 try { 52 DEFAULT_STYLE_SHEET = StyleSheetLoader.load(STYLE_PATH + "Default.stylesheet", 53 Thread.currentThread().getContextClassLoader()); 54 } catch (ComponentXmlException ex) { 55 throw new RuntimeException (ex); 56 } 57 } 58 59 public static final ImageReference NEXTAPP_LOG_IMAGE = new ResourceImageReference(IMAGE_PATH + "NextAppLogo.png"); 61 public static final ImageReference ECHO2_IMAGE = new ResourceImageReference(IMAGE_PATH + "Echo2.png"); 62 public static final ImageReference WEBMAIL_EXAMPLE_IMAGE = new ResourceImageReference(IMAGE_PATH + "WebMailExample.png"); 63 public static final ImageReference ICON_24_LEFT_ARROW 64 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowCyanLeft.gif"); 65 public static final ImageReference ICON_24_RIGHT_ARROW 66 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowCyanRight.gif"); 67 public static final ImageReference ICON_24_LEFT_ARROW_DISABLED 68 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowGrayLeft.gif"); 69 public static final ImageReference ICON_24_RIGHT_ARROW_DISABLED 70 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowGrayRight.gif"); 71 public static final ImageReference ICON_24_LEFT_ARROW_ROLLOVER 72 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowLightCyanLeft.gif"); 73 public static final ImageReference ICON_24_RIGHT_ARROW_ROLLOVER 74 = new ResourceImageReference(IMAGE_PATH + "Icon24ArrowLightCyanRight.gif"); 75 public static final ImageReference ICON_24_EXIT 76 = new ResourceImageReference(IMAGE_PATH + "Icon24Exit.gif"); 77 public static final ImageReference ICON_24_MAIL_REPLY 78 = new ResourceImageReference(IMAGE_PATH + "Icon24MailReply.gif"); 79 public static final ImageReference ICON_24_MAIL_COMPOSE 80 = new ResourceImageReference(IMAGE_PATH + "Icon24MailCompose.gif"); 81 public static final ImageReference ICON_24_NO 82 = new ResourceImageReference(IMAGE_PATH + "Icon24No.gif"); 83 public static final ImageReference ICON_24_YES 84 = new ResourceImageReference(IMAGE_PATH + "Icon24Yes.gif"); 85 } 86 | Popular Tags |