1 29 30 package nextapp.echo2.testapp.interactive; 31 32 import nextapp.echo2.app.FillImage; 33 import nextapp.echo2.app.ImageReference; 34 import nextapp.echo2.app.ResourceImageReference; 35 import nextapp.echo2.app.StyleSheet; 36 import nextapp.echo2.app.componentxml.ComponentXmlException; 37 import nextapp.echo2.app.componentxml.StyleSheetLoader; 38 39 42 public class Styles { 43 44 public static final String IMAGE_PATH = "/nextapp/echo2/testapp/interactive/resource/image/"; 45 public static final String STYLE_PATH = "/nextapp/echo2/testapp/interactive/resource/style/"; 46 47 public static final ImageReference ICON_24_MAIL_COMPOSE = new ResourceImageReference(IMAGE_PATH + "Icon24MailCompose.gif"); 48 public static final ImageReference ICON_24_NO = new ResourceImageReference(IMAGE_PATH + "Icon24No.gif"); 49 public static final ImageReference ICON_24_YES = new ResourceImageReference(IMAGE_PATH + "Icon24Yes.gif"); 50 public static final ImageReference ECHO2_IMAGE = new ResourceImageReference(IMAGE_PATH + "Echo2.png"); 51 public static final ImageReference INTERACTIVE_TEST_APPLICATION_IMAGE 52 = new ResourceImageReference(IMAGE_PATH + "InteractiveTestApplication.png"); 53 public static final ImageReference NEXTAPP_LOGO = new ResourceImageReference(IMAGE_PATH + "NextAppLogo.png"); 54 55 public static final FillImage BG_SHADOW_DARK_BLUE = new FillImage(new ResourceImageReference( 56 IMAGE_PATH + "ShadowBackgroundDarkBlue.png"), null, null, FillImage.NO_REPEAT); 57 public static final FillImage BG_SHADOW_LIGHT_BLUE = new FillImage(new ResourceImageReference( 58 IMAGE_PATH + "ShadowBackgroundLightBlue.png"), null, null, FillImage.NO_REPEAT); 59 60 public static final ImageReference RG_STATE_ICON = new ResourceImageReference( 61 IMAGE_PATH + "RGStateIcon.gif"); 62 public static final ImageReference RG_SELECTED_STATE_ICON = new ResourceImageReference( 63 IMAGE_PATH + "RGSelectedStateIcon.gif"); 64 public static final ImageReference RG_ROLLOVER_STATE_ICON = new ResourceImageReference( 65 IMAGE_PATH + "RGRolloverStateIcon.gif"); 66 public static final ImageReference RG_ROLLOVER_SELECTED_STATE_ICON = new ResourceImageReference( 67 IMAGE_PATH + "RGRolloverSelectedStateIcon.gif"); 68 public static final ImageReference RG_PRESSED_STATE_ICON = new ResourceImageReference( 69 IMAGE_PATH + "RGPressedStateIcon.gif"); 70 public static final ImageReference RG_PRESSED_SELECTED_STATE_ICON = new ResourceImageReference( 71 IMAGE_PATH + "RGPressedSelectedStateIcon.gif"); 72 73 public static final FillImage BUTTON_BACKGROUND_IMAGE = new FillImage(new ResourceImageReference( 74 IMAGE_PATH + "ButtonBackground.png")); 75 public static final FillImage BUTTON_PRESSED_BACKGROUND_IMAGE = new FillImage(new ResourceImageReference( 76 IMAGE_PATH + "ButtonPressedBackground.png")); 77 public static final FillImage BUTTON_DISABLED_BACKGROUND_IMAGE = new FillImage(new ResourceImageReference( 78 IMAGE_PATH + "ButtonDisabledBackground.png")); 79 public static final FillImage BUTTON_ROLLOVER_BACKGROUND_IMAGE = new FillImage(new ResourceImageReference( 80 IMAGE_PATH + "ButtonRolloverBackground.png")); 81 82 83 public static final ImageReference ICON_LOGO = new ResourceImageReference(IMAGE_PATH + "Logo.png"); 84 public static final ImageReference DISABLED_ICON_LOGO = new ResourceImageReference(IMAGE_PATH + "LogoDisabled.png"); 85 public static final ImageReference ROLLOVER_ICON_LOGO 86 = new ResourceImageReference(IMAGE_PATH + "LogoRollover.png"); 87 public static final ImageReference PRESSED_ICON_LOGO 88 = new ResourceImageReference(IMAGE_PATH + "LogoPressed.png"); 89 90 public static final StyleSheet DEFAULT_STYLE_SHEET; 91 public static final StyleSheet GREEN_STYLE_SHEET; 92 static { 93 try { 94 DEFAULT_STYLE_SHEET = StyleSheetLoader.load(STYLE_PATH + "Default.stylesheet", 95 Thread.currentThread().getContextClassLoader()); 96 GREEN_STYLE_SHEET = StyleSheetLoader.load(STYLE_PATH + "Green.stylesheet", 97 Thread.currentThread().getContextClassLoader()); 98 } catch (ComponentXmlException ex) { 99 throw new RuntimeException (ex); 100 } 101 } 102 } 103 | Popular Tags |