org.activemath.webapp.base
Class Skin

java.lang.Object
  extended by org.activemath.webapp.base.Skin

public class Skin
extends Object

A Skin. This object is immutable.


Field Summary
protected static Category log
           
 
Constructor Summary
Skin(String name)
           
 
Method Summary
static List<String> availableSkins()
           
 int compareTo(Object o)
           
 ResourceBundle getBundle(String language)
           
static Skin getDefaultSkin()
          Return an instance of the default skin.
static Skin getInstance(String skinName)
          Return the instance of a skin for a skin name.
 String getName()
           
 String getSkinnedPathname(String path)
          How to build a skinned pathname
 boolean isEmpty()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static Category log
Constructor Detail

Skin

public Skin(String name)
Method Detail

getInstance

public static Skin getInstance(String skinName)
Return the instance of a skin for a skin name.

The empty skin has the name "".

Returns:
skin instance (never null).

getDefaultSkin

public static Skin getDefaultSkin()
Return an instance of the default skin.

The default skin is:

Returns:
default skin for the application

availableSkins

public static List<String> availableSkins()

getName

public String getName()
Returns:
the name of this skin. The empty skin has the name "".

isEmpty

public boolean isEmpty()
Returns:
say if this is the empty skin.

getSkinnedPathname

public String getSkinnedPathname(String path)
How to build a skinned pathname

Returns:
skinned pathname for this skin

getBundle

public ResourceBundle getBundle(String language)
Parameters:
language -
Returns:
the ResourceBundle for language for this skin, or null.

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
See Also:
Comparable.compareTo(java.lang.Object)