public class ComponentHelper extends Object
| Constructor and Description |
|---|
ComponentHelper() |
public static String createDynamicPage(ContentContext ctx, String path, String content) throws Exception
Exceptionpublic static IContentVisualComponent getComponentFromRequest(ContentContext ctx) throws Exception
Exceptionpublic static IContentVisualComponent getComponentFromRequest(ContentContext ctx, String paramName) throws Exception
ctx - paramName - the name of the parameter it contains the id.Exceptionpublic static String getInternalLinkEdition(ContentContext ctx, String linkName, String linkIdStr)
public static String getInternalLinkFromId(ContentContext ctx, String linkId, String label) throws Exception
ctx - the current dc contextlinkId - the unic identifier of the pagelabel - the set label of the linkExceptionpublic static void moveComponent(ContentContext ctx, IContentVisualComponent comp, IContentVisualComponent newPrevious, MenuElement targetPage, String area) throws Exception
Exceptionpublic static void smartMoveComponent(ContentContext ctx, IContentVisualComponent comp, IContentVisualComponent newPrevious, MenuElement targetPage, String area) throws Exception
Exceptionpublic static void changeAllArea(Iterable<ComponentBean> beans, String newArea)
beans - list of content.newArea - new area, can be null.public static String getPreviousComponentId(IContentVisualComponent inComp, ContentContext ctx) throws Exception
Exceptionpublic static IContentVisualComponent getPreviousComponent(IContentVisualComponent inComp, ContentContext ctx) throws Exception
Exceptionpublic static IContentVisualComponent getNextComponent(IContentVisualComponent inComp, ContentContext ctx) throws Exception
Exceptionpublic static int getComponentPosition(ContentContext ctx, IContentVisualComponent comp) throws Exception
Exceptionpublic static IContentVisualComponent getComponentWidthPosition(ContentContext ctx, MenuElement page, String area, String type, int position) throws Exception
Exceptionpublic static void updateNextAndPreviouv(ContentContext ctx, Iterable<IContentVisualComponent> comps) throws Exception
Exceptionpublic static Cell[][] componentsToArray(ContentContext ctx, Collection<IContentVisualComponent> components, String type) throws Exception
Exceptionpublic static final String getFinalType(ContentContext ctx, IContentVisualComponent comp) throws Exception
Exceptionpublic static final IContentVisualComponent getRealComponent(ContentContext ctx, IContentVisualComponent comp) throws Exception
comp - Exceptionpublic static String renderArea(ContentContext ctx, String areaKey) throws Exception
ExceptionCopyright © 2012-2018. All Rights Reserved.