|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.uiparts.NavigationCommonHelpers
public class NavigationCommonHelpers
Common static navigation helper functions.
Field Summary | |
---|---|
static int |
DEFAULT_MENU_TEXT_MAX_LENGTH
Default truncation width |
static java.lang.String |
JSCRIPT_FUNC_BUILD_URL_FROM_TEMPL
Javascript function name constant |
static java.lang.String |
JSCRIPT_VAR_DDTABS_ARRAY
Javascript variable name constant |
static java.lang.String |
JSCRIPT_VAR_MANDTAB_ARRAY
Javascript variable name constant |
static java.lang.String |
URLTEMPLATE_REDIRECT_JSFUNCNAME
Url template redirect function. |
Constructor Summary | |
---|---|
NavigationCommonHelpers()
|
Method Summary | |
---|---|
static HTMLElementCollection |
CreateDropDownEndMarkers()
Adds the end of banner markers for ISC dropdown menus. |
static void |
CreateHorizontalSpacerCell(HTMLTableRow myTableRow)
Adds a spacer cell with a cell width of 4to the specified HTMLTableRow |
static HTMLScript |
CreateMandatoryTabsArray(ICPListEntryIterator cpList,
AActivitySpace parent)
Creates a HTMLScript block with an array of the mandatory tabs to display The javascript array is a two dimensional array - element[i][0]: Name of the mandatory community element[i][1]: Original name of the mandatory community (before truncation), use for tooltip element[i][2]: URL to the mandatory community |
static void |
CreateVerticalSpacerCell(HTMLTableRow myTableRow)
Adds a spacer cell to the specified HTMLTableRow |
static java.lang.String |
EscapeSingleQuotes(java.lang.String strIn)
Prepares a string for use in Javascript code, escapes single quotes ('). |
static HTMLScript |
GenerateJSHTMLHelperFunctions(AActivitySpace parent)
Creates writeStartTable, writeEndOfTable, writeSpacerTable and writeSpacerCell, dynamic HTML generating Javascript helper functions used in .js files to to position dropdown menu tabs and mandatory communities tabs. |
static java.lang.String |
GetCommunityImageSource(AActivitySpace aspace)
Helper function that returns a string with the image source of the formatted image for Communities |
static java.lang.String |
GetCommunityImageURLString(AActivitySpace aspace,
java.lang.String commName)
Helper function that returns a string with the HTML of the formatted image for Communities |
static java.lang.String |
GetMyPageImageSource(AActivitySpace aspace)
Helper function that returns a string with the HTML of the formatted image for Mypages |
static java.lang.String |
GetMyPageImageURLString(AActivitySpace aspace,
java.lang.String mpName)
Helper function that returns a string with the HTML of the formatted image for Mypages |
static int |
GetNavSettingsValueAsInt(java.lang.String strKey,
AActivitySpace owner)
Helper function for getting values of settings in NavigationSettings.xml as integers. |
static java.lang.String |
GetNavSettingsValueAsString(java.lang.String strKey,
AActivitySpace owner)
Helper function for getting values of settings in NavigationSettings.xml as Strings. |
static HTMLImg |
GetSpacerImage(java.lang.String sWidth,
java.lang.String sHeight)
Helper function that creates a spacer Image with specified width and height |
static java.lang.String |
writeURLTemplateParseFunction(AActivitySpace space)
Parses the ID or IDs needed to create the URL for mypages or community pages (or other types) Needs to be in sync with the IDs put used as data value for each cell. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MENU_TEXT_MAX_LENGTH
public static final java.lang.String URLTEMPLATE_REDIRECT_JSFUNCNAME
public static final java.lang.String JSCRIPT_VAR_MANDTAB_ARRAY
public static final java.lang.String JSCRIPT_VAR_DDTABS_ARRAY
public static final java.lang.String JSCRIPT_FUNC_BUILD_URL_FROM_TEMPL
Constructor Detail |
---|
public NavigationCommonHelpers()
Method Detail |
---|
public static int GetNavSettingsValueAsInt(java.lang.String strKey, AActivitySpace owner)
strKey
- Name of the navigation setting.owner
- Current Activityspace
public static java.lang.String GetNavSettingsValueAsString(java.lang.String strKey, AActivitySpace owner)
strKey
- Name of the navigation settingowner
- Current Activityspace
public static HTMLElementCollection CreateDropDownEndMarkers()
public static void CreateHorizontalSpacerCell(HTMLTableRow myTableRow)
myTableRow
- HTMLTableRow to add the spacer cell topublic static HTMLScript CreateMandatoryTabsArray(ICPListEntryIterator cpList, AActivitySpace parent)
cpList
- List of mandatory tabsparent
- Current activityspace
public static HTMLScript GenerateJSHTMLHelperFunctions(AActivitySpace parent)
parent
- Current Activityspace
public static final void CreateVerticalSpacerCell(HTMLTableRow myTableRow)
myTableRow
- The HTMLTableRow to add the spacer cell topublic static final java.lang.String EscapeSingleQuotes(java.lang.String strIn)
strIn
- The stirng to escape
public static HTMLImg GetSpacerImage(java.lang.String sWidth, java.lang.String sHeight)
sWidth
- Spacer image widthsHeight
- Spacer image height
public static java.lang.String GetCommunityImageURLString(AActivitySpace aspace, java.lang.String commName)
aspace
- Current ActivityspacempName
- Alt text for the image
public static java.lang.String GetCommunityImageSource(AActivitySpace aspace)
aspace
- Current Activityspace
public static java.lang.String GetMyPageImageURLString(AActivitySpace aspace, java.lang.String mpName)
aspace
- Current ActivityspacempName
- Alt text for the image
public static java.lang.String GetMyPageImageSource(AActivitySpace aspace)
aspace
- Current ActivityspacempName
- Alt text for the image
public static java.lang.String writeURLTemplateParseFunction(AActivitySpace space)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |