Class TraitInfoImpl
java.lang.Object
org.pushingpixels.substance.internal.utils.TraitInfoImpl
- All Implemented Interfaces:
SubstanceTraitInfo
- Direct Known Subclasses:
SkinInfo
Basic class for trait info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name of the associated trait.Returns the display name of the associated trait.booleanReturns indication whether the associated trait is default.voidsetDefault(boolean isDefault) Sets indication whether the associated trait is default.
-
Constructor Details
-
TraitInfoImpl
Simple constructor.- Parameters:
displayName- Display name of the associated trait.className- Class name of the associated trait.
-
-
Method Details
-
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
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.
-