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 int
EDIT_MODE
static int
PAGE_MODE
static int
PREVIEW_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 LinkToRenderer
getHomeLink()
int
getMode()
get the mode of the content.List<LinkToRenderer>
getNavigation()
get the navigation of the modulevoid
init()
void
setMode(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:AbstractModuleContext
get the navigation of the module- Specified by:
getNavigation
in classAbstractModuleContext
- Returns:
-
init
public void init()
- Specified by:
init
in classAbstractModuleContext
-
getHomeLink
public LinkToRenderer getHomeLink()
- Specified by:
getHomeLink
in classAbstractModuleContext
-
-