com.plumtree.xpshared.htmlconstructs
Class PTStyleSheetLink

java.lang.Object
  extended by com.plumtree.xpshared.htmlconstructs.PTStyleSheetLink

public class PTStyleSheetLink
extends java.lang.Object

This construct creates a style sheet HTMLLink. Eventually, this should programmatically determine the correct style sheet based upon the user's preferences and language/locale.


Constructor Summary
PTStyleSheetLink(HTMLLink link)
          Pass in an HTMLLink object with the complete stylesheet link, overriding base URL on this object
PTStyleSheetLink(java.lang.String sFullURL)
          Pass in the full URL; ignore the base URL set on this object.
PTStyleSheetLink(java.lang.String sStyleSheetName, java.lang.String sUserLanguage)
          Pass in the style sheet name (without the -en and without the .css), and the user's language.
 
Method Summary
 HTMLElement GetLinkAsHTMLElement(java.lang.String _strStyleSheetsBaseURL)
           
 java.lang.String GetStyleSheetAsString(java.lang.String _strStyleSheetsBaseURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTStyleSheetLink

public PTStyleSheetLink(java.lang.String sStyleSheetName,
                        java.lang.String sUserLanguage)
Pass in the style sheet name (without the -en and without the .css), and the user's language. For instance, if you want to use mainstyle14-en.css, you would pass in "mainstyle14" as the first argument, and "en" as the second.

Parameters:
sStyleSheetName - URL to style sheet
sUserLanguage -
Throws:
XPException

PTStyleSheetLink

public PTStyleSheetLink(HTMLLink link)
Pass in an HTMLLink object with the complete stylesheet link, overriding base URL on this object

Parameters:
link - with full URL to style sheet
Throws:
XPException

PTStyleSheetLink

public PTStyleSheetLink(java.lang.String sFullURL)
Pass in the full URL; ignore the base URL set on this object.

Parameters:
sFullURL - URL to style sheet
Throws:
XPException
Method Detail

GetLinkAsHTMLElement

public HTMLElement GetLinkAsHTMLElement(java.lang.String _strStyleSheetsBaseURL)
Returns:
Throws:
java.lang.Exception

GetStyleSheetAsString

public java.lang.String GetStyleSheetAsString(java.lang.String _strStyleSheetsBaseURL)
Returns:



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