org.apache.myfaces.trinidad.skin
Class SkinVersion
java.lang.Object
org.apache.myfaces.trinidad.skin.SkinVersion
public final class SkinVersion
- extends Object
The skin version works tightly with the skin family.
This allows someone to create versions of their skin, like purple (no version),
purple version v2, purple version v3.
Then the user can say which skin version they want, like:
purplev3 when they
pick a skin in trinidad-config.xml.
When creating a skin, you give it a version if you care about versioning.
Constructor Summary |
SkinVersion(String name)
Constructor that takes a version name. |
SkinVersion(String name,
boolean defaultVersion)
Constructor that takes a name and a defaultVersion. |
EMPTY_SKIN_VERSION
public static final SkinVersion EMPTY_SKIN_VERSION
SkinVersion
public SkinVersion(String name)
- Constructor that takes a version name.
- Parameters:
name
- the name of the version, like "v1". If name is null, it is converted to "".
same skin family
SkinVersion
public SkinVersion(String name,
boolean defaultVersion)
- Constructor that takes a name and a defaultVersion.
- Parameters:
name
- the name of the version, like "v1". If name is null, it is converted to "".defaultVersion
- true if this skin is the default version for all skins with the
same skin family
isDefault
public boolean isDefault()
getName
public String getName()
equals
public final boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.