Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar.skins.external
Class CalendarSkinStyleExternal

java.lang.Object
  extended bycom.imagine.component.calendar.skins.styles.CalendarSkinStyle
      extended bycom.imagine.component.calendar.skins.external.CalendarSkinStyleExternal
Direct Known Subclasses:
CalendarSkinStyleExternalFile, CalendarSkinStyleExternalURL

public class CalendarSkinStyleExternal
extends CalendarSkinStyle

Defines a calendar skin style that can be loaded from an external inputStream.


Constructor Summary
CalendarSkinStyleExternal(java.io.InputStream inputStream)
           
 
Method Summary
 void applyStyle(CalendarSkin calendarSkin)
          Applies this style on the specified skin.
 java.lang.String getName()
          Get the name of the style.
static void saveSkin(CalendarSkin calendarSkin, java.io.OutputStream outputStream)
          Saves the specified calendar skin into the specified file.
 
Methods inherited from class com.imagine.component.calendar.skins.styles.CalendarSkinStyle
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarSkinStyleExternal

public CalendarSkinStyleExternal(java.io.InputStream inputStream)
                          throws java.io.FileNotFoundException,
                                 org.xml.sax.SAXException,
                                 java.io.IOException,
                                 javax.xml.parsers.ParserConfigurationException,
                                 javax.xml.parsers.FactoryConfigurationError
Method Detail

saveSkin

public static void saveSkin(CalendarSkin calendarSkin,
                            java.io.OutputStream outputStream)
                     throws org.xml.sax.SAXException,
                            java.io.IOException,
                            javax.xml.parsers.ParserConfigurationException,
                            javax.xml.parsers.FactoryConfigurationError
Saves the specified calendar skin into the specified file.

Parameters:
calendarSkin - The calendarSkin to be saved.
outputStream - The outputStream into which the specified skin will be saved.
Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError

applyStyle

public void applyStyle(CalendarSkin calendarSkin)
                throws CalendarPropertyException
Applies this style on the specified skin.

Specified by:
applyStyle in class CalendarSkinStyle
Parameters:
calendarSkin - The calendarSkin on which the style is applied.
Throws:
CalendarPropertyException

getName

public java.lang.String getName()
Get the name of the style.

Specified by:
getName in class CalendarSkinStyle
Returns:
The name of the style.

Java Calendar Component v3.1
www.java-calendar.com