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
-
-
-
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.
-
setHomePage
public ContentHelper setHomePage(Consumer<TranslatableUIElementResultVO> consumer)
Invoke theConsumer.accept(Object)method only if there is a logged user.- Returns:
- a reference to this object.
-
setMobileHelp
public ContentHelper setMobileHelp(Consumer<TranslatableUIElementResultVO> consumer)
Invoke theConsumer.accept(Object)method only if there is a logged user.- Returns:
- a reference to this object.
-
setPosHelp
public ContentHelper setPosHelp(Consumer<TranslatableUIElementResultVO> consumer)
-
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.
-
setWelcomePage
public ContentHelper setWelcomePage(Consumer<TranslatableUIElementResultVO> consumer)
Invoke theConsumer.accept(Object)method only if there is no logged user (i.e guest).- Returns:
- a reference to this object.
-
-