org.pdfsam.guiclient.utils
Class ThemeUtility

java.lang.Object
  extended by org.pdfsam.guiclient.utils.ThemeUtility

public class ThemeUtility
extends java.lang.Object

ThemeSelector utility. It provides functions to let the user select the GUI theme

Author:
Andrea Vacondio

Constructor Summary
ThemeUtility()
           
 
Method Summary
static java.lang.String getLAF(int lafNumber)
           
static java.util.LinkedList<StringItem> getLAFList()
           
static java.util.LinkedList<StringItem> getThemeList()
           
static boolean isPlastic(int lafNumber)
           
static void setTheme(int themeNumber)
          Sets the theme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeUtility

public ThemeUtility()
Method Detail

getLAF

public static java.lang.String getLAF(int lafNumber)
Parameters:
lafNumber -
Returns:
le LookAndFeel

getLAFList

public static java.util.LinkedList<StringItem> getLAFList()
Returns:
a LinkedList of ListItem objects with the availales LAF

getThemeList

public static java.util.LinkedList<StringItem> getThemeList()
Returns:
LinkedList of ListItem objects with the available Themes form Plastic

isPlastic

public static boolean isPlastic(int lafNumber)
Parameters:
lafNumber -
Returns:
true if the LookAndFeel is Plastic type

setTheme

public static void setTheme(int themeNumber)
Sets the theme

Parameters:
themeNumber - Theme number