com.plumtree.portalpages.common.mediator
Class CListURLFullLinkMediator
java.lang.Object
com.plumtree.portalpages.common.mediator.CListURLFullMediator
com.plumtree.portalpages.common.mediator.CListURLFullLinkMediator
- All Implemented Interfaces:
- ICPListIterator
public class CListURLFullLinkMediator
- extends CListURLFullMediator
- implements ICPListIterator
Generates HTMLAnchors with target URLs in href, display string
and image(s) if assigned.
This class is similar to CListURLTemplateMediator, except that the HREF
is used to go to the URL instead of onlick evens. Hence, it is 508 compatible
since no browser Javascript capability is required.
Example use:
ICPListIterator mediator = new CListURLFullMediator(m_asOwner, cpList1);
mediator.SetLabelMaxLength(50); //set the maximum label length to 50 characters
while (mediator.Next())
{
HTMLAnchor anchor = (HTMLAnchor) mediator.GetEntry();
...
}
Extension of ASURL mediator that wraps links in HTMLAnchors.
508 compatible
- Author:
- DavidP
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 |
void |
SetImageSize(int nHeight,
int nWidth)
Not implemented |
Methods inherited from class com.plumtree.portalpages.common.mediator.CListURLFullMediator |
CreateCommPageASURL, CreateDirPageASURL, CreateDocHTMLAnchor, CreateEditorASURL, CreateFullInternalURLHTMLAnchor, CreateFullURLHTMLAnchor, CreateGenericASURL, CreateMyPageASURL, CreatePrefsASURL, CreateSiteMapRootASURL, CreateStringLabelASURL, CreateUserHTMLAnchor, GetEntryType, GetEntryTypeAtIndex, GetList, Next, SetImage, SetImage, SetLabelMaxLength, SetShowImages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CListURLFullLinkMediator
public CListURLFullLinkMediator(AActivitySpace aspace,
ICPListEntryIterator list)
- Constructor for CListURLFullLinkMediator.
- Parameters:
aspace
- list
-
GetEntry
public java.lang.Object GetEntry()
- Description copied from interface:
ICPListIterator
- Get the current entry in the list. Doesn't advance the iterator
- Specified by:
GetEntry
in interface ICPListIterator
- Overrides:
GetEntry
in class CListURLFullMediator
- Returns:
- An HTMLAnchor with the target url in the href.
Returns null if the HTMLAnchor has an href with null value.
- See Also:
ICPListIterator.GetEntry()
GetEntryAtIndex
public java.lang.Object GetEntryAtIndex(int nIndex)
- Description copied from interface:
ICPListIterator
- Get the entry at a specific index
- Specified by:
GetEntryAtIndex
in interface ICPListIterator
- Overrides:
GetEntryAtIndex
in class CListURLFullMediator
- Parameters:
nIndex
- Index of the entry
- Returns:
- An HTMLAnchor with the target url in the href.
Returns null if the HTMLAnchor has an href with null value.
- See Also:
ICPListIterator.GetEntry()
SetImageSize
public void SetImageSize(int nHeight,
int nWidth)
- Not implemented
- Parameters:
nHeight
- Image heigh override valuenWidth
- Image width override value