com.plumtree.xpshared.htmlelements
Class StyleClass

java.lang.Object
  extended by 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"> ...


Field Summary
protected static boolean bAllowPublicCreation
           
protected  java.lang.String sClass
           
 
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
 

Field Detail

bAllowPublicCreation

protected static boolean bAllowPublicCreation

sClass

protected java.lang.String sClass
Constructor Detail

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.
Method Detail

GetStyleName

public java.lang.String GetStyleName()
Call this method to obtain the name of this style class.

Returns:
String name



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.