Package org.javlo.component.core
Class ContentElementList
- java.lang.Object
-
- org.javlo.component.core.ContentElementList
-
- All Implemented Interfaces:
IContentComponentsList
public class ContentElementList extends Object implements IContentComponentsList
- Author:
- pvanderm
-
-
Constructor Summary
Constructors Constructor Description ContentElementList()
ContentElementList(ComponentBean[] beans, ContentContext ctx, MenuElement inPage, boolean allArea)
ContentElementList(ContentElementList list)
ContentElementList(ContentContext ctx, MenuElement inPage, boolean allArea)
-
Method Summary
-
-
-
Constructor Detail
-
ContentElementList
public ContentElementList()
-
ContentElementList
public ContentElementList(ComponentBean[] beans, ContentContext ctx, MenuElement inPage, boolean allArea) throws Exception
- Throws:
Exception
-
ContentElementList
public ContentElementList(ContentContext ctx, MenuElement inPage, boolean allArea) throws Exception
- Throws:
Exception
-
ContentElementList
public ContentElementList(ContentElementList list)
-
-
Method Detail
-
addElement
protected void addElement(IContentVisualComponent elem)
-
addElementAsFirst
protected void addElementAsFirst(IContentVisualComponent elem)
-
addRepeatElement
public void addRepeatElement(IContentVisualComponent elem)
-
asIterable
public Iterable<IContentVisualComponent> asIterable(ContentContext ctx)
Return an iterable instance of thisContentElementList
callinghasNext(ContentContext)
andnext(ContentContext)
with thectx
parameter.
WARNING:#initialize()
is called whenIterable.iterator()
is called.- Parameters:
ctx
-- Returns:
-
getLabel
public String getLabel(ContentContext ctx)
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfaceIContentComponentsList
-
getPage
public MenuElement getPage()
-
getPageTitle
public String getPageTitle(ContentContext ctx)
-
getPrefixXHTMLCode
public String getPrefixXHTMLCode(ContentContext ctx)
- Specified by:
getPrefixXHTMLCode
in interfaceIContentComponentsList
-
getSubTitle
public String getSubTitle(ContentContext ctx)
-
getSubTitles
public List<String> getSubTitles(ContentContext ctx, int inLevel)
-
getLinkLabel
public String getLinkLabel(ContentContext ctx)
-
getSubTitleLevel
public int getSubTitleLevel(ContentContext ctx)
-
getSufixXHTMLCode
public String getSufixXHTMLCode(ContentContext ctx)
- Specified by:
getSufixXHTMLCode
in interfaceIContentComponentsList
-
getTitle
public String getTitle(ContentContext ctx)
-
getLocalTitle
public String getLocalTitle(ContentContext ctx)
-
getXHTMLTitle
public String getXHTMLTitle(ContentContext ctx) throws Exception
- Throws:
Exception
-
hasNext
public boolean hasNext(ContentContext ctx)
- Specified by:
hasNext
in interfaceIContentComponentsList
-
initialize
public void initialize(ContentContext ctx)
return to the start of the list- Specified by:
initialize
in interfaceIContentComponentsList
-
next
public IContentVisualComponent next(ContentContext ctx)
- Specified by:
next
in interfaceIContentComponentsList
-
realSize
public int realSize()
-
setAllArea
public void setAllArea(boolean inAllArea)
- Specified by:
setAllArea
in interfaceIContentComponentsList
-
setPage
public void setPage(MenuElement page)
-
size
public int size(ContentContext ctx)
- Specified by:
size
in interfaceIContentComponentsList
-
getIterable
public Iterable<IContentVisualComponent> getIterable(ContentContext ctx)
-
getContentElements
public LinkedList<IContentVisualComponent> getContentElements()
-
getComponent
public IContentVisualComponent getComponent(String id)
-
-