com.sptci.echo2
Class Styles

java.lang.Object
  extended by com.sptci.echo2.Styles

public class Styles
extends java.lang.Object

Utility class to load the application style XML file. This class assumes that the style file will be available as /META-INF/resource/style/Default.stylesheet.

Copyright 2006 Sans Pareil Technologies, Inc.

Version:
$Id: Styles.java,v 1.1 2006/02/06 00:32:23 rakesh Exp $
Author:
Rakesh Vidyadharan 2006-01-21

Field Summary
static nextapp.echo2.app.StyleSheet DEFAULT_STYLE_SHEET
          Default application style sheet.
static java.lang.String IMAGE_PATH
          The location of the application images.
static java.lang.String STYLE_PATH
          The location of the XML style sheet.
 
Constructor Summary
Styles()
           
 
Method Summary
protected static java.io.InputStream getStyleInputStream(java.lang.String file)
          Open the STYLE_PATH as a resource stream and return the InputStream to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_PATH

public static final java.lang.String IMAGE_PATH
The location of the application images. "/META-INF/resource/image/"

See Also:
Constant Field Values

STYLE_PATH

public static final java.lang.String STYLE_PATH
The location of the XML style sheet. "/META-INF/resource/style/"

See Also:
Constant Field Values

DEFAULT_STYLE_SHEET

public static final nextapp.echo2.app.StyleSheet DEFAULT_STYLE_SHEET
Default application style sheet.

Constructor Detail

Styles

public Styles()
Method Detail

getStyleInputStream

protected static java.io.InputStream getStyleInputStream(java.lang.String file)
Open the STYLE_PATH as a resource stream and return the InputStream to it.

Parameters:
file - The name of the style sheet to open
Returns:
InputStream The InputStream for the style sheet.


Copyright © 2006 Sans Pareil Technologies, Inc. All Rights Reserved.