com.sapportals.wcm.rendering.collection.cm

Class AlignmentCollectionRendererNews

java.lang.Object
  extended by com.sapportals.wcm.rendering.collection.LightCollectionRenderer
      extended by com.sapportals.wcm.rendering.collection.cm.AlignmentCollectionRendererNews
All Implemented Interfaces:
IUniqueIDSupplier, IDelegatedReceiver, ILayoutObject, IResourceListProvider, ICollectionRenderer, ICollectionRendererParameterNameConst, IParameters

public class AlignmentCollectionRendererNews
extends LightCollectionRenderer


Field Summary
 
Fields inherited from class com.sapportals.wcm.rendering.collection.LightCollectionRenderer
BASE_BUNDLE, CM_RND_ACTION, CM_RND_CHILDCOUNT, CM_RND_CHILDCOUNT_BOTH, CM_RND_CHILDCOUNT_FILES, CM_RND_CHILDCOUNT_FOLDERS, CM_RND_CHILDCOUNT_PROPERTY_NAME, CM_RND_CHILDCOUNT_SUM, CM_RND_CHILDCOUNT_WITH_BRACKETS, CM_RND_CHILDCOUNT_WITH_BRACKETS_PROPERTY_NAME, CM_RND_DESCRIPTION, CM_RND_DISPLAYNAME, CM_RND_ICON, CM_RND_IMAGE, CM_RND_LOCK, DEFAULT_PROPERTY_COLUMNS, linksForPager, NBSP, RES_CONTENTSOF, RES_SORT_ASCENDING, RES_SORT_DESCENDING
 
Fields inherited from interface com.sapportals.wcm.rendering.collection.ICollectionRenderer
ORDERED_COLLECTION, SORTED, UNSORTED
 
Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
DEF_VALUE, KEY, LINE_BREAK
 
Fields inherited from interface com.sapportals.wcm.repository.service.layout.customizing.ICollectionRendererParameterNameConst
BACKGROUNDIMAGEPATH, BACKGROUNDIMAGESTYLE, BACKGROUNDIMAGESTYLE_MULTIPLE, BACKGROUNDIMAGESTYLE_SINGLE, BREADCRUMBSTYLE, BREADCRUMBSTYLE_BACK, BREADCRUMBSTYLE_DRPODOWN, BREADCRUMBSTYLE_HORIZONTAL, BREADCRUMBSTYLE_OFF, BREADCRUMBSTYLE_VERTICAL, BREADCRUMBVISIBILITYSTYLE, BREADCRUMBVISIBILITYSTYLE_DISABLEROOT, BREADCRUMBVISIBILITYSTYLE_INVISIBLE, BREADCRUMBVISIBILITYSTYLE_INVISIBLEROOT, BREADCRUMBVISIBILITYSTYLE_NOICON, BREADCRUMBVISIBILITYSTYLE_STANDARD, COLLECTION_ACTIONSTYLE, COLLECTION_ACTIONSTYLE_BUTTON, COLLECTION_ACTIONSTYLE_HOVER, COLLECTION_ACTIONSTYLE_LINK, COLLECTION_ACTIONSTYLE_MENU, COLLECTION_ACTIONSTYLE_OFF, COLLECTION_ACTIONSTYLE_SMALLBUTTON, COLLECTION_ACTIONSTYLE_TOOLBAR_BUTTON, COLUMNS, COLUMNSPACING, COLUMNSPACINGSTYLE, COLUMNSPACINGSTYLE_FIXED, COLUMNSPACINGSTYLE_MINIMUM, COMPONENTS, EMPTY_COLLECTION_FILE, EMPTY_COLLECTION_KEY, EMPTY_COLLECTION_STYLE, EMPTY_COLLECTION_STYLE_MESSAGE, EMPTY_COLLECTION_STYLE_OFF, EMPTY_COLLECTION_STYLE_TEXT, FILESELECTIONMODE_MULTIPLE, FILESELECTIONMODE_SINGLE, FILTEREXTENSION, FILTERMIMETYPE, FILTERRESOURCETYPE, FOLDERSELECTIONMODE_MULTIPLE, FOLDERSELECTIONMODE_SINGLE, GRIDORDERSTYLE, GRIDORDERSTYLE_COLUMN_MAJOR, GRIDORDERSTYLE_ROW_MAJOR, GROUP_STYLE, GROUP_STYLE_OFF, GROUP_STYLE_PRIMARYCOLOR, GROUP_STYLE_SAPCOLOR, GROUP_STYLE_SECONDARYBOX, GROUP_STYLE_SECONDARYBOXCOLOR, GROUP_STYLE_SECONDARYCOLOR, HEADER_TEXT_STYLE, HTML_FILENAME, IMAGEMAP, ITEMSELECTIONMODE, ITEMSELECTIONMODE_MULTIPLE, ITEMSELECTIONMODE_OFF, ITEMSELECTIONMODE_SINGLE, LINKSSTYLE, LINKSSTYLE_ALL, LINKSSTYLE_EXTERNAL, LINKSSTYLE_INTERNAL, LINKSSTYLE_OFF, LINKSSTYLE_VISIBLE, MASSACTIONSTYLE, MASSACTIONSTYLE_BUTTON, MASSACTIONSTYLE_HOVER, MASSACTIONSTYLE_ICON, MASSACTIONSTYLE_LINK, MASSACTIONSTYLE_MENU, MASSACTIONSTYLE_OFF, MASSACTIONSTYLE_SMALLBUTTON, MASSACTIONSTYLE_TOOLBAR_BUTTON, MASSACTIONSTYLE_VERTICAL_LINK, MAX_NUM_OF_TABS, NO_OF_CHILD_FOR_NODE, NO_TAB_CONTENT, OPEN_NODES_STYLE, OPEN_NODES_STYLE_All, OPEN_NODES_STYLE_LAST_SELECTED, OPENTARGETTYPE, OPENTARGETTYPE_FIXED, OPENTARGETTYPE_NEW, OPENTARGETTYPE_OFF, OPENTARGETTYPE_SELF, PAGER_LINK_COUNT, PAGER_SHOW_NUMBER, PROPERTY_COLUMN_HEADER_STYLE, PROPERTY_COLUMN_HEADER_STYLE_LIST, PROPERTY_COLUMN_HEADER_STYLE_MENUE, PROPERTY_COLUMN_HEADER_STYLE_OFF, PROPERTY_COLUMN_HEADER_STYLE_TABLE, PROPERTY_COLUMN_HEADER_STYLE_TRANSPARENT, PROPERTYCOLUMNS, RESIZEHEIGHTSTYLE, RESIZEHEIGHTSTYLE_COMPACT, RESIZEHEIGHTSTYLE_OFF, RESIZEHEIGHTSTYLE_STRETCH, RESIZEWIDHTSTYLE, RESIZEWIDHTSTYLE_COMPACT, RESIZEWIDHTSTYLE_OFF, RESIZEWIDHTSTYLE_STRETCH, RESOURCE_LIST_FILTER, RESOURCE_LIST_FILTER_DEFAULT, ROWBACKGROUNDSTYLE, ROWS, ROWSPACING, ROWSPACINGSTYLE, ROWSPACINGSTYLE_ALTERNATING, ROWSPACINGSTYLE_BACKGROUND, ROWSPACINGSTYLE_COLUMNALTERNATING, ROWSPACINGSTYLE_COLUMNSEPARATED, ROWSPACINGSTYLE_FIXED, ROWSPACINGSTYLE_LINESEPARATED, ROWSPACINGSTYLE_MINIMUM, ROWSPACINGSTYLE_ROWALTERNATING, ROWSPACINGSTYLE_TRANSPARENT, SHOW_HIDDEN, SHOW_TREE_ROOT_NODE, SHOWFILESSTYLE, SHOWFILESSTYLE_ALL, SHOWFILESSTYLE_NOLINK, SHOWFILESSTYLE_OFF, SHOWFILESTYLE_ONLYLINK, SHOWFOLDERSSTYLE, SHOWFOLDERSSTYLE_ALL, SHOWFOLDERSSTYLE_NOLINK, SHOWFOLDERSSTYLE_OFF, SHOWFOLDERSSTYLE_ONLYLINK, SHOWFOLDERTITLE, SHOWUSERID, SHOWUSERNAME, SORT_ENABLED, SORT_ORDER, SORT_ORDER_ASCENDING, SORT_ORDER_DESCENDING, SORT_PROPERTY, TAB_BODY_FLAVOR, TAB_STYLE_SAFE, UI_COLL_RENDERER, UI_GROUP_COLLECTION, UI_GROUP_MASS, USE_SCROLL_CONTAINER, VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_BASELINE, VERTICAL_ALIGNMENT_BOTTOM, VERTICAL_ALIGNMENT_MIDDLE, VERTICAL_ALIGNMENT_TOP
 
Constructor Summary
AlignmentCollectionRendererNews()
           
 
Method Summary
 boolean checkTitle(IPropertyColumn[] prop, IPropertyColumn property)
          checks if for a component on a specific position the useTitleAsTitle modifier is set
 boolean checkTitleAsLable(IPropertyColumn[] prop)
          checks if the given property has the useTitleAsLable modifier
 IPropertyColumn[] getColumnsList()
           
 int getColumnsPerResource(IPropertyColumn[] prop)
          returns the maximum number of column a resource has (also count column span) add 1 for the vertical line in CCWC News
 int getColumnsPerRow(IPropertyColumn[] prop, int row)
          returns the number if columns that are on a given row adds a 1 for the vertical line for CCWC News
protected  int getElementsPerPage()
           
 com.sapportals.htmlb.Component getGridCell(IPropertyWithModifiersList propertyWithModifiers, IResourceRenderer renderer, IPropertyColumn aProperty)
          method that returns a grid with the properties in a IPropertyColumn object (properties connected by +) it is only used when the length of an IPropertyColumn is bigger than 1
 HashMap getMapProperty(IPropertyColumn[] prop)
           
 ILayoutObject getNewInstance()
           
 IResourceList getRowMajorResourceList(IResourceList renderlist, int numberRows)
          method that transforms the list of resources in the order needed for row major fill style
 int getRowsPerResource(IPropertyColumn[] prop)
          returns the number of rows a resource occupies including row span
 HashMap getTileAsLableColumns(IPropertyColumn[] prop)
          method that returns a hash map of the different columns (values - rows) on which a property with useTitleAsLable appeared
 com.sapportals.htmlb.Component renderHorizontalLine()
           
 boolean renderSeparatorLine(IMetaName metaName, com.sapportals.htmlb.FormLayout form, com.sapportals.htmlb.FormLayoutCell cell, int startingRow, int col, int rowSpan, int resource, int max)
          method for adding the vertical line after the XML Form resuorce to separate the properties
 com.sapportals.htmlb.Component renderUI()
           
 void setColumnsList(IPropertyColumn[] list)
           
 
Methods inherited from class com.sapportals.wcm.rendering.collection.LightCollectionRenderer
createComponentValueMap, createUniqueID, filterResourceList, get, getAlias, getBundleHandler, getColumnSpacing, getComponentValueMap, getConfiguration, getFlavor, getID, getIntValue, getIntValue, getIRS, getLayoutObject, getMultiValueParameter, getParameter, getParameter, getParameter, getParameter, getParameter, getParameters, getParameters, getParentCollection, getPropertyNames, getProxy, getRenderer, getResourceContext, getResourceList, getRIC, getRowSpacing, getSelectedResources, getStartRow, getSupportedParameters, getTypedResourceList, initNewInstance, is508enabled, isExactlyValue, isNoOtherValue, isVisible, onEvent, parameterNames, parameters, readInputData, refresh, removeParameter, renderAll, renderBreadcrumb, renderDecorations, renderFolderTitle, renderItemSelectionMode, renderPager, renderSearchHeader, resetSelection, set508enabled, setAlias, setFlavor, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setParentCollection, setPropertyNames, setProxy, setResourceContext, setSortDefinition, setStartRow, setSupportedParameters, setTypedResourceList, sortResourceList, writeDebugInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignmentCollectionRendererNews

public AlignmentCollectionRendererNews()
Method Detail

renderUI

public com.sapportals.htmlb.Component renderUI()
                                        throws com.sapportals.wcm.WcmException
Overrides:
renderUI in class LightCollectionRenderer
Throws:
com.sapportals.wcm.WcmException

getNewInstance

public ILayoutObject getNewInstance()
Returns:
a new instance of the implementing class

checkTitleAsLable

public boolean checkTitleAsLable(IPropertyColumn[] prop)
checks if the given property has the useTitleAsLable modifier

Parameters:
prop -
Returns:

checkTitle

public boolean checkTitle(IPropertyColumn[] prop,
                          IPropertyColumn property)
checks if for a component on a specific position the useTitleAsTitle modifier is set

Parameters:
prop -
column -
Returns:

getElementsPerPage

protected int getElementsPerPage()
Overrides:
getElementsPerPage in class LightCollectionRenderer

getColumnsPerResource

public int getColumnsPerResource(IPropertyColumn[] prop)
returns the maximum number of column a resource has (also count column span) add 1 for the vertical line in CCWC News

Parameters:
prop -
Returns:

getColumnsPerRow

public int getColumnsPerRow(IPropertyColumn[] prop,
                            int row)
returns the number if columns that are on a given row adds a 1 for the vertical line for CCWC News

Parameters:
prop -
row -
Returns:

getRowsPerResource

public int getRowsPerResource(IPropertyColumn[] prop)
returns the number of rows a resource occupies including row span

Parameters:
prop -
Returns:

getGridCell

public com.sapportals.htmlb.Component getGridCell(IPropertyWithModifiersList propertyWithModifiers,
                                                  IResourceRenderer renderer,
                                                  IPropertyColumn aProperty)
method that returns a grid with the properties in a IPropertyColumn object (properties connected by +) it is only used when the length of an IPropertyColumn is bigger than 1

Parameters:
propertyWithModifiers -
renderer -
aProperty -
Returns:

getTileAsLableColumns

public HashMap getTileAsLableColumns(IPropertyColumn[] prop)
method that returns a hash map of the different columns (values - rows) on which a property with useTitleAsLable appeared

Parameters:
prop -
Returns:

getMapProperty

public HashMap getMapProperty(IPropertyColumn[] prop)

getRowMajorResourceList

public IResourceList getRowMajorResourceList(IResourceList renderlist,
                                             int numberRows)
method that transforms the list of resources in the order needed for row major fill style

Parameters:
renderlist -
numberRows -
Returns:

renderSeparatorLine

public boolean renderSeparatorLine(IMetaName metaName,
                                   com.sapportals.htmlb.FormLayout form,
                                   com.sapportals.htmlb.FormLayoutCell cell,
                                   int startingRow,
                                   int col,
                                   int rowSpan,
                                   int resource,
                                   int max)
method for adding the vertical line after the XML Form resuorce to separate the properties


renderHorizontalLine

public com.sapportals.htmlb.Component renderHorizontalLine()

setColumnsList

public final void setColumnsList(IPropertyColumn[] list)
                          throws com.sapportals.wcm.WcmException
Throws:
com.sapportals.wcm.WcmException

getColumnsList

public IPropertyColumn[] getColumnsList()
                                 throws com.sapportals.wcm.WcmException
Throws:
com.sapportals.wcm.WcmException


Copyright 2011 SAP AG Complete Copyright Notice