Class TraitInfoImpl
- java.lang.Object
-
- org.pushingpixels.substance.internal.utils.TraitInfoImpl
-
- All Implemented Interfaces:
SubstanceTraitInfo
- Direct Known Subclasses:
SkinInfo
public class TraitInfoImpl extends Object implements SubstanceTraitInfo
Basic class for trait info.
-
-
Constructor Summary
Constructors Constructor Description TraitInfoImpl(String displayName, String className)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Returns the class name of the associated trait.StringgetDisplayName()Returns the display name of the associated trait.booleanisDefault()Returns indication whether the associated trait is default.voidsetDefault(boolean isDefault)Sets indication whether the associated trait is default.
-
-
-
Method Detail
-
getClassName
public String getClassName()
Description copied from interface:SubstanceTraitInfoReturns the class name of the associated trait.- Specified by:
getClassNamein interfaceSubstanceTraitInfo- Returns:
- The class name of the associated trait. This method is part of officially supported API.
-
getDisplayName
public String getDisplayName()
Description copied from interface:SubstanceTraitInfoReturns the display name of the associated trait. This method is part of officially supported API.- Specified by:
getDisplayNamein interfaceSubstanceTraitInfo- Returns:
- The display name of the associated trait.
-
isDefault
public boolean isDefault()
Description copied from interface:SubstanceTraitInfoReturns indication whether the associated trait is default.- Specified by:
isDefaultin interfaceSubstanceTraitInfo- Returns:
trueif the associated trait is default,falseotherwise.
-
setDefault
public void setDefault(boolean isDefault)
Description copied from interface:SubstanceTraitInfoSets indication whether the associated trait is default.- Specified by:
setDefaultin interfaceSubstanceTraitInfo- Parameters:
isDefault- New indication whether the associated trait is default.
-
-