SPT Core API

com.sptci.echo2
Class Styles

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

public class Styles
extends 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 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-01-21

Field Summary
static StyleSheet DEFAULT_STYLE_SHEET
          Default application style sheet.
static String IMAGE_PATH
          The location of the application images.
static String STYLE_PATH
          The location of the XML style sheet.
 
Constructor Summary
Styles()
           
 
Method Summary
protected static InputStream getStyleInputStream(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 String IMAGE_PATH
The location of the application images. "/META-INF/resource/image/"

See Also:
Constant Field Values

STYLE_PATH

public static final 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 StyleSheet DEFAULT_STYLE_SHEET
Default application style sheet.

Constructor Detail

Styles

public Styles()
Method Detail

getStyleInputStream

protected static InputStream getStyleInputStream(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.

SPT Core API