|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.mediator.CListURLTemplateMediator com.plumtree.portalpages.common.mediator.CListURLTemplateLinkMediator
public class CListURLTemplateLinkMediator
This class extends CListURLTemplateMediator generating HTMLAnchors using URL Templates. Clicking on the URL will construct the full URL and redirect to it. The downside with these links is users can't open the link in a new window with "Open in New Window" option since a javascript onclick event is used to trigger the redirect and not the HREF. See javadoc for CListURLTemplateMediator for more information on URL Templates.
Example use:
ICPListIterator mediator = new CListURLTemplateLinkMediator(m_asOwner, cpList1);
mediator.SetLabelMaxLength(50); //set the maximum label length to 50 characters
while (mediator.Next())
{
HTMLAnchor anchor = (HTMLAnchor) mediator.GetEntry();
...
}
Field Summary |
---|
Fields inherited from class com.plumtree.portalpages.common.mediator.CListURLTemplateMediator |
---|
ACTIONIMAGE_SPACE_WIDTH, IMAGE_SPACE_WIDTH, m_strImageAlign, TEMPLATEARR_INDEX_IMGURL, TEMPLATEARR_INDEX_LABEL, TEMPLATEARR_INDEX_URL |
Constructor Summary | |
---|---|
CListURLTemplateLinkMediator(AActivitySpace aspace,
ICPListEntryIterator list)
Constructor for CListURLTemplateLinkMediator. |
Method Summary | |
---|---|
java.lang.Object |
GetEntry()
Get the current entry in the list. |
java.lang.Object |
GetEntryAtIndex(int nIndex)
Get the entry at a specific index |
Methods inherited from class com.plumtree.portalpages.common.mediator.CListURLTemplateMediator |
---|
CreateCommPageURLTemplate, CreateDirPageURLTemplate, CreateDocURL, CreateEditorURLTemplate, CreateFullInternalURL, CreateFullURL, CreateGenericURL, CreateMyPageURLTemplate, CreatePrefsURL, CreateSiteMapRootURLTemplate, CreateStringLabel, CreateUserURL, GetEntryOrigLabel, GetImageSource, GetImageString, GetList, GetNonEncodedEntryOrigLabel, IsImageEntry, Next, SetLabelMaxLength, SetListEntryImage, SetShowImages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.portalpages.common.mediator.ICPListIterator |
---|
GetList, Next, SetLabelMaxLength, SetShowImages |
Constructor Detail |
---|
public CListURLTemplateLinkMediator(AActivitySpace aspace, ICPListEntryIterator list)
aspace
- The current Activityspacelist
- The ASCompoundlist used by this mediatorMethod Detail |
---|
public java.lang.Object GetEntry()
ICPListIterator
GetEntry
in interface ICPListIterator
GetEntry
in class CListURLTemplateMediator
ICPListIterator.GetEntry()
public java.lang.Object GetEntryAtIndex(int nIndex)
ICPListIterator
GetEntryAtIndex
in interface ICPListIterator
GetEntryAtIndex
in class CListURLTemplateMediator
nIndex
- Index of the entry
ICPListIterator.GetEntry()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |