com.plumtree.xpshared.htmlelements
Class StyleClass
java.lang.Object
com.plumtree.xpshared.htmlelements.StyleClass
- Direct Known Subclasses:
- PTStyleClass
public class StyleClass
- extends java.lang.Object
This class represents a style class defined in an HTML
style sheet.
To use a custom style class, simply create a new StyleClass
instance with your custom style and pass it into the HTMLElement.
For example, if you have an HTMLTable object, and you wish to set
a custom style class, you can do this:
myTable.SetStyleClass( new StyleClass("customclass" );
The resulting html will look something like:
<table class="customclass"> ...
Constructor Summary |
StyleClass(java.lang.String strStyleClass)
Creates a new StyleClass object. |
Method Summary |
java.lang.String |
GetStyleName()
Call this method to obtain the name of this style class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bAllowPublicCreation
protected static boolean bAllowPublicCreation
sClass
protected java.lang.String sClass
StyleClass
public StyleClass(java.lang.String strStyleClass)
- Creates a new StyleClass object.
- Parameters:
strStyleClass
- The name of this style class.
- Throws:
HTMLException
- This method throws an exception if public creation
of StyleClass objects is disallowed.
GetStyleName
public java.lang.String GetStyleName()
- Call this method to obtain the name of this style class.
- Returns:
- String name