Package org.cyclos.impl.mobile
Class ContentHelper
- java.lang.Object
-
- org.cyclos.impl.mobile.ContentHelper
-
public class ContentHelper extends Object
Class used to handle the mobile header / footer / theme contents
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentHelpersetFooter(Consumer<TranslatableUIElementResultVO> consumer)Invoke theConsumer.accept(Object)method only if there is no logged user (i.e guest).ContentHelpersetHeader(Consumer<TranslatableUIElementResultVO> consumer)Invoke theConsumer.accept(Object)method only if there is no logged user (i.e guest).ContentHelpersetTheme(Consumer<ThemeResultVO> consumer, boolean byComponents)Invoke theConsumer.accept(Object)with the converted mobile theme.
-
-
-
Method Detail
-
setFooter
public ContentHelper setFooter(Consumer<TranslatableUIElementResultVO> consumer)
Invoke theConsumer.accept(Object)method only if there is no logged user (i.e guest).- Returns:
- a reference to this object.
-
setHeader
public ContentHelper setHeader(Consumer<TranslatableUIElementResultVO> consumer)
Invoke theConsumer.accept(Object)method only if there is no logged user (i.e guest).- Returns:
- a reference to this object.
-
setTheme
public ContentHelper setTheme(Consumer<ThemeResultVO> consumer, boolean byComponents)
Invoke theConsumer.accept(Object)with the converted mobile theme. If thebyComponentsflag is true then the result will contains the theme components: base definitions, advanced definitions and the custom style. Otherwise the result will contains the theme content (i. e the CSS)- Returns:
- a reference to this object.
-
-