|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.mediator.CListURLFullMediator
public class CListURLFullMediator
NOTE: Use CListURLFullLinkMediator to get HTMLAnchors, this class might get changed in the future. 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(); ... }
Field Summary | |
---|---|
static int |
ACTIONIMAGE_SPACE_WIDTH
|
static int |
IMAGE_SPACE_WIDTH
|
Constructor Summary | |
---|---|
CListURLFullMediator(AActivitySpace aspace,
ICPListEntryIterator list)
Constructor for CompoundListASURLMediator. |
Method Summary | |
---|---|
protected HTMLAnchor |
CreateCommPageASURL(ListEntry entry)
Creates an ASURL to a Community page |
protected HTMLAnchor |
CreateDirPageASURL(ListEntry entry)
Creates an ASURL to a directory page |
protected HTMLAnchor |
CreateDocHTMLAnchor(ListEntry entry)
Creates an HTMLAnchor to a directory document page |
protected ASURL |
CreateEditorASURL(ListEntry entry)
Creates an ASURL to an editor page |
protected HTMLAnchor |
CreateFullInternalURLHTMLAnchor(ListEntry entry)
Creates an HTMLAnchor that links to a portal URL |
protected HTMLAnchor |
CreateFullURLHTMLAnchor(ListEntry entry)
Creates an HTMLAnchor that links to an external URL |
protected ASURL |
CreateGenericASURL(ListEntry entry)
Creates an ASURL for generic Portal 50 pages |
protected HTMLAnchor |
CreateMyPageASURL(ListEntry entry)
Creatse ASURL to a mypage |
protected ASURL |
CreatePrefsASURL(ListEntry entry)
Creates ASURL to a user preference page |
protected ASURL |
CreateSiteMapRootASURL(ListEntry entry)
Creates an ASURL to a Community Knowledge Directory Root page |
protected ASURL |
CreateStringLabelASURL(ListEntry entry)
Creates an ASURL with just a label, no URL |
protected HTMLAnchor |
CreateUserHTMLAnchor(ListEntry entry)
Creates an HTMLAnchor to a user profile page |
java.lang.Object |
GetEntry()
Get the current entry in the list. |
java.lang.Object |
GetEntryAtIndex(int nIndex)
Get the entry at a specific index |
int |
GetEntryType()
Returns the entry type of the current listentry |
int |
GetEntryTypeAtIndex(int nIndex)
Returns the entry type of the specified 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. |
protected void |
SetImage(ASURL url,
ListEntry entry)
Set image(s) on the ASURL from the assigned images in the Listentry object. |
protected void |
SetImage(HTMLAnchor anchor,
ListEntry entry)
Sets the image(s) on the HTMLAnchor from the Listentry object. |
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 |
Field Detail |
---|
public static final int IMAGE_SPACE_WIDTH
public static final int ACTIONIMAGE_SPACE_WIDTH
Constructor Detail |
---|
public CListURLFullMediator(AActivitySpace aspace, ICPListEntryIterator list)
aspace
- The current activityspacelist
- The ASCompoundlist for this mediatorMethod 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 int GetEntryType()
public int GetEntryTypeAtIndex(int nIndex)
nIndex
- Index of the listentry
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 atICPListIterator.SetLabelMaxLength(int)
public void SetShowImages(boolean bShow)
ICPListIterator
SetShowImages
in interface ICPListIterator
bShow
- true to show images (default), false to no show images in entriesICPListIterator.SetShowImages(boolean)
protected HTMLAnchor CreateCommPageASURL(ListEntry entry)
entry
- Current listentry object
protected ASURL CreateSiteMapRootASURL(ListEntry entry)
entry
- Current listentry object
protected HTMLAnchor CreateDirPageASURL(ListEntry entry)
entry
- Current listentry object
protected HTMLAnchor CreateDocHTMLAnchor(ListEntry entry)
entry
- Current listentry object
protected ASURL CreateEditorASURL(ListEntry entry)
entry
- Current listentry object
protected HTMLAnchor CreateFullInternalURLHTMLAnchor(ListEntry entry)
entry
-
protected HTMLAnchor CreateFullURLHTMLAnchor(ListEntry entry)
entry
- Current listentry object
protected ASURL CreateGenericASURL(ListEntry entry)
entry
- Current listentry object
protected HTMLAnchor CreateMyPageASURL(ListEntry entry)
entry
- Current listentry object
protected ASURL CreatePrefsASURL(ListEntry entry)
entry
- Current listentry object
protected ASURL CreateStringLabelASURL(ListEntry entry)
entry
- Current listentry object
protected HTMLAnchor CreateUserHTMLAnchor(ListEntry entry)
entry
- Current listentry object
protected void SetImage(ASURL url, ListEntry entry)
url
- entry
- protected void SetImage(HTMLAnchor anchor, ListEntry entry)
anchor
- The HTMLAnchorentry
- The Listentry object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |