public class ComponentHelper extends Object
Constructor and Description |
---|
ComponentHelper() |
public static String createDynamicPage(ContentContext ctx, String path, String content) throws Exception
Exception
public static IContentVisualComponent getComponentFromRequest(ContentContext ctx) throws Exception
Exception
public static IContentVisualComponent getComponentFromRequest(ContentContext ctx, String paramName) throws Exception
ctx
- paramName
- the name of the parameter it contains the id.Exception
public 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 linkException
public static void moveComponent(ContentContext ctx, IContentVisualComponent comp, IContentVisualComponent newPrevious, MenuElement targetPage, String area) throws Exception
Exception
public static void smartMoveComponent(ContentContext ctx, IContentVisualComponent comp, IContentVisualComponent newPrevious, MenuElement targetPage, String area) throws Exception
Exception
public 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
Exception
public static IContentVisualComponent getPreviousComponent(IContentVisualComponent inComp, ContentContext ctx) throws Exception
Exception
public static IContentVisualComponent getNextComponent(IContentVisualComponent inComp, ContentContext ctx) throws Exception
Exception
public static int getComponentPosition(ContentContext ctx, IContentVisualComponent comp) throws Exception
Exception
public static IContentVisualComponent getComponentWidthPosition(ContentContext ctx, MenuElement page, String area, String type, int position) throws Exception
Exception
public static void updateNextAndPreviouv(ContentContext ctx, Iterable<IContentVisualComponent> comps) throws Exception
Exception
public static Cell[][] componentsToArray(ContentContext ctx, Collection<IContentVisualComponent> components, String type) throws Exception
Exception
public static final String getFinalType(ContentContext ctx, IContentVisualComponent comp) throws Exception
Exception
public static final IContentVisualComponent getRealComponent(ContentContext ctx, IContentVisualComponent comp) throws Exception
comp
- Exception
public static String renderArea(ContentContext ctx, String areaKey) throws Exception
Exception
Copyright © 2012-2018. All Rights Reserved.