Class PubDisplayStyleLayoutPredictive

java.lang.Object
com.jalios.jcms.jnews.PubDisplayStyleLayoutPredictive
All Implemented Interfaces:
PubDisplayStyleLayout

public class PubDisplayStyleLayoutPredictive extends Object implements PubDisplayStyleLayout
A class to dynamically set up a layout
  • Constructor Details

    • PubDisplayStyleLayoutPredictive

      public PubDisplayStyleLayoutPredictive(String layoutModel, int maxPub)
  • Method Details

    • runLayoutEngine

      public List<CssStyleLayout> runLayoutEngine(PubDisplayStyleBuilder pubDisplayStyleBuilder, boolean doMorePubs)
      Generate predictive layout
      Specified by:
      runLayoutEngine in interface PubDisplayStyleLayout
      Parameters:
      pubDisplayStyleBuilder - publications settings for creation of card
      doMorePubs - determines if this is the last page for displaying publications
      Returns:
      a list of a object that associates a integer number with a css style for cards