Package org.javlo.module.content
Class ContentModuleContext
- java.lang.Object
-
- org.javlo.module.core.AbstractModuleContext
-
- org.javlo.module.content.ContentModuleContext
-
public class ContentModuleContext extends AbstractModuleContext
-
-
Field Summary
Fields Modifier and Type Field Description static intEDIT_MODEstatic intPAGE_MODEstatic intPREVIEW_MODE-
Fields inherited from class org.javlo.module.core.AbstractModuleContext
globalContext, i18nAccess, module
-
-
Constructor Summary
Constructors Constructor Description ContentModuleContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkToRenderergetHomeLink()intgetMode()get the mode of the content.List<LinkToRenderer>getNavigation()get the navigation of the modulevoidinit()voidsetMode(int mode)-
Methods inherited from class org.javlo.module.core.AbstractModuleContext
getCurrentInstance, getCurrentLink, getFlatNavigation, getInstance, getRenderer, getWizardStep, setCurrentLink, setRenderer, setRendererFromNavigation, setWizardStep
-
-
-
-
Field Detail
-
EDIT_MODE
public static final int EDIT_MODE
- See Also:
- Constant Field Values
-
PREVIEW_MODE
public static final int PREVIEW_MODE
- See Also:
- Constant Field Values
-
PAGE_MODE
public static final int PAGE_MODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMode
public int getMode()
get the mode of the content.- edit:edit the content
- preview:preview the content
- Returns:
- a string with the mode as text.
-
setMode
public void setMode(int mode)
-
getNavigation
public List<LinkToRenderer> getNavigation()
Description copied from class:AbstractModuleContextget the navigation of the module- Specified by:
getNavigationin classAbstractModuleContext- Returns:
-
init
public void init()
- Specified by:
initin classAbstractModuleContext
-
getHomeLink
public LinkToRenderer getHomeLink()
- Specified by:
getHomeLinkin classAbstractModuleContext
-
-