net.sourceforge.steelme
Class BasicLookAndFeelToCSS

java.lang.Object
  extended by net.sourceforge.steelme.LookAndFeelToCSS
      extended by net.sourceforge.steelme.BasicLookAndFeelToCSS

public class BasicLookAndFeelToCSS
extends LookAndFeelToCSS

A pluggable strategy for converting a LookAndFeel to a Cascading Stylesheet.


Constructor Summary
BasicLookAndFeelToCSS()
           
 
Method Summary
 StyleSheet convert(LookAndFeel laf)
          Return a StyleSheet that represents the given LookAndFeel.
 
Methods inherited from class net.sourceforge.steelme.LookAndFeelToCSS
hexString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicLookAndFeelToCSS

public BasicLookAndFeelToCSS()
Method Detail

convert

public StyleSheet convert(LookAndFeel laf)
                   throws UnsupportedLookAndFeelException
Return a StyleSheet that represents the given LookAndFeel. This class only supports MetalLookAndFeel types, it will throw an UnsupportedLookAndFeelException if passed another type.

Specified by:
convert in class LookAndFeelToCSS
Parameters:
laf - a LookAndFeel value
Returns:
a StyleSheet value
Throws:
UnsupportedLookAndFeelException - if an error occurs