|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.mediator.CListURLMediator
public class CListURLMediator
This class uses delegation to pass on link generation requests to the appropriate link mediator. If in 508 or low bandwidth access style, the class delegates to CListURLFullMediator. If not, it delegates to CListURLTemplateLinkMediator. This class is not a real CListURLMediator in itself. It dynamically decides which CListURLMediator to delegate to given the Display Option from the HTML source. From a practical point of view, use the Model methods to get an ICPListEntryIterator appropriate for the navigation you're constructing, and then use a mediator to quickly form HTMLAnchors for those links.
Constructor Summary | |
---|---|
CListURLMediator(AActivitySpace aspace,
ICPListEntryIterator list)
Constructor for CompoundListASURLMediator. |
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 |
ICPListEntryIterator |
GetList()
Get an iterator, the index is set to before the first element, call Next() to advance to first entry. |
boolean |
Next()
Advances the iterator to next element. |
void |
SetLabelMaxLength(int nMax)
Set the truncation width for all subsequent entries, can be altered between entries during an iteration |
void |
SetShowImages(boolean bShow)
Set to display images for subsequent entries in the list, can be altered between entries during an iteration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CListURLMediator(AActivitySpace aspace, ICPListEntryIterator list)
aspace
- Activity space the links will be generated forlist
- List of "link entries" used to create anchorsMethod Detail |
---|
public java.lang.Object GetEntry()
ICPListIterator
GetEntry
in interface ICPListIterator
ICPListIterator.GetEntry()
public java.lang.Object GetEntryAtIndex(int nIndex)
ICPListIterator
GetEntryAtIndex
in interface ICPListIterator
nIndex
- Index of the entry
ICPListIterator.GetEntryAtIndex(int)
public ICPListEntryIterator GetList()
ICPListIterator
GetList
in interface ICPListIterator
ICPListIterator.GetList()
public boolean Next()
ICPListIterator
Next
in interface ICPListIterator
ICPListIterator.Next()
public void SetLabelMaxLength(int nMax)
ICPListIterator
SetLabelMaxLength
in interface ICPListIterator
nMax
- Character position to truncate atpublic void SetShowImages(boolean bShow)
ICPListIterator
SetShowImages
in interface ICPListIterator
bShow
- true to show images (default), false to no show images in entriesICPListIterator.SetShowImages(boolean)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |