|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.activityspace.ASURL
public class ASURL
This class creates an URL that points to MVC components. This adds the session user ID to the query string for usage tracking purposes (PTTracker).
Constructor Summary | |
---|---|
ASURL(AActivitySpace asOwner)
Creates a new ASURL object. |
Method Summary | |
---|---|
void |
AddControlArgument(java.lang.String strName)
This method allows you to add a control argument to the HTML URL with no value. |
void |
AddControlArgument(java.lang.String strName,
boolean bValue)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String strName,
int nValue)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String strName,
java.lang.String strValue)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String strName,
java.lang.String[] strValues)
This method allows you to add a control argument to the HTML URL. |
void |
AddControlArgument(java.lang.String strName,
java.lang.String strValue,
AActivitySpace asOwner)
An addition that replaces long strings with references; only certain parts of the tree know how to unref it The strName will be preceded by "@" to mark it as a reference. |
void |
AddInnerHTMLElement(HTMLElement element)
NOTE: If you only pass in an image with an alt tag, and no link label, you need to call the SetLinkTitle method with the alt string. |
void |
AddInnerHTMLEncodedString(java.lang.String innerStr)
This adds an HTMLEncoded string. |
void |
AddInnerHTMLString(java.lang.String innerStr)
This adds a non-HTMLEncoded string. |
static ASURL |
CreateFromURLContainer(ASURLContainer urlCont)
Creates an ASURL from an ASURLContainer. |
static ASURL |
CreateFromURLContainerNew(ASURLContainer urlCont)
Creates an ASURL from an ASURLContainer. |
HTMLElement |
GetURLAsHTMLElement()
Create an HTML element from this url |
java.lang.String |
GetURLAsString()
return the string that represents this url |
void |
IsSubSpace()
Sets the member variable m_bIsSubSpace to true (i.e. |
void |
SetControl(java.lang.String strControl)
Set the control to use in this url |
void |
SetDisplayPage(java.lang.String strPage)
Set the display page to be used in this url |
void |
SetImgBaseUrl(java.lang.String strImageBaseURL)
This method allows you to set the image base url on the resulting HTMLElement. |
boolean |
SetLinkCreateNewSpace(java.lang.String strSpace,
AActivitySpace parent)
This method creates a brand new AActivitySpace. |
boolean |
SetLinkGetCachedSpace(AActivitySpace space)
This constructor takes a specific space and returns a link to that (including space ID) |
boolean |
SetLinkGetSpaceIfCached(java.lang.String strSpace,
AActivitySpace parent)
This method gets a named AActivitySpace from the cache if it is there, or creates a new one if it is not in the cache. |
void |
SetLinkTitle(java.lang.String label)
Set the title of the html anchor. |
boolean |
SetLinkToExternalURL(java.lang.String m_externalurl)
HACK: Sets a full URL. |
void |
SetNoLinkLabelString(java.lang.String label)
NOTE: This method is not for setting the display text of an anchor! Use SetLabelString to set the display text. |
void |
SetSubSpaceKey(java.lang.String sSubSpaceKey)
This method sets the sub space key. |
void |
SetUseMainServerURL(boolean bUse,
boolean bIsSecure)
Sets whether or not to use the main server URL. |
void |
SetXMLEncoding(boolean bXML)
Sets the URL to use the XML encoded ampersands rather than normal HTML ones (for WML devices) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASURL(AActivitySpace asOwner)
AActivitySpace
- the owner activity spaceMethod Detail |
---|
public void AddControlArgument(java.lang.String strName, java.lang.String strValue)
AddControlArgument
in interface ILink
strName
- The name of the argumentstrValue
- The value of the argumentThis URL encodes the value for you
public void AddControlArgument(java.lang.String strName, java.lang.String[] strValues)
AddControlArgument
in interface ILink
strName
- The name of the argumentstrValues
- The array of values for the argumentThis URL encodes the value for you
public void AddControlArgument(java.lang.String strName, java.lang.String strValue, AActivitySpace asOwner)
strName
- The name of the query string parameterstrValue
- the long value to be passed as a referenceasOwner
- the parent AActivitySpacepublic void AddControlArgument(java.lang.String strName, int nValue)
AddControlArgument
in interface ILink
strName
- The name of the argumentnValue
- The int value of the argumentILink.AddControlArgument(String, String)
public void AddControlArgument(java.lang.String strName, boolean bValue)
AddControlArgument
in interface ILink
strName
- The name of the argumentbooleanValue
- The boolean value of the argumentILink.AddControlArgument(String, String)
public void AddControlArgument(java.lang.String strName)
AddControlArgument
in interface ILink
strName
- The name of the argumentILink.AddControlArgument(String, String)
public void AddInnerHTMLElement(HTMLElement element)
AddInnerHTMLElement
in interface ILinkElement
element
- the html element to be added inside the urlpublic void AddInnerHTMLString(java.lang.String innerStr)
AddInnerHTMLString
in interface ILinkElement
string
- the string to be added to the url textpublic void AddInnerHTMLEncodedString(java.lang.String innerStr)
string
- the pre-html encoded string to be added to the url textpublic static ASURL CreateFromURLContainer(ASURLContainer urlCont)
ASURLContainer
- urlContpublic static ASURL CreateFromURLContainerNew(ASURLContainer urlCont)
ASURLContainer
- urlCont
public HTMLElement GetURLAsHTMLElement()
GetURLAsHTMLElement
in interface ILinkElement
public java.lang.String GetURLAsString()
public void SetControl(java.lang.String strControl)
SetControl
in interface ILink
strControl
- The name of the control to use in the urlILink.SetControl(String)
public void SetDisplayPage(java.lang.String strPage)
SetDisplayPage
in interface ILink
strPage
- the display page to showILink.SetDisplayPage(String)
public void SetImgBaseUrl(java.lang.String strImageBaseURL)
strImageBaseURL
- The image base urlpublic void SetNoLinkLabelString(java.lang.String label)
public void SetLinkTitle(java.lang.String label)
label
- Text to be used in the title attribute of an html anchor.
Null to remove title.public void SetUseMainServerURL(boolean bUse, boolean bIsSecure)
boolean
- true implies use the main server URLpublic void SetXMLEncoding(boolean bXML)
boolean
- true implies use XML encoded ampersandpublic boolean SetLinkCreateNewSpace(java.lang.String strSpace, AActivitySpace parent)
SetLinkCreateNewSpace
in interface ILink
String
- strSpaceAActivitySpace
- parent
ILink.SetLinkCreateNewSpace(String, AActivitySpace)
public boolean SetLinkGetCachedSpace(AActivitySpace space)
SetLinkGetCachedSpace
in interface ILink
AActivitySpace
- spaceAActivitySpace
- parent
ILink.SetLinkGetCachedSpace(AActivitySpace)
public boolean SetLinkGetSpaceIfCached(java.lang.String strSpace, AActivitySpace parent)
SetLinkGetSpaceIfCached
in interface ILink
String
- strSpaceAActivitySpace
- parent
ILink.SetLinkGetSpaceIfCached(String, AActivitySpace)
public void SetSubSpaceKey(java.lang.String sSubSpaceKey)
SetSubSpaceKey
in interface ILink
String
- sSubSpaceKeyILink.SetSubSpaceKey(String)
public void IsSubSpace()
public boolean SetLinkToExternalURL(java.lang.String m_externalurl)
SetLinkToExternalURL
in interface ILink
ILink.SetLinkToExternalURL(java.lang.String)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |