/**
  * Constructor of the class
  *
  * @param model  Entity that represents a preference Scene. It can be a model, window or any piece. It is our data structure
  * @param template Template to filter the information
  * @param render printout text to a given format
  */
 public PreferenceIntelliTextExecutor(PreferenceDataStructure model, ITemplate template, IPreferenceRender render, TextSettings settings)
 {
     Model    = model;
     Template = template;
     Render   = render;
     Settings = settings;
 }
Exemple #2
0
        /**
         * IntelliText constructor. It receives:
         *
         * @param Initial setting configuration
         */
        public PreferenceIntelliText(TextSettings settings)
        {
            // we have all the information in the settings
            Settings = settings;

            // create the template catalog constructor
            TemplateConstructor = new PreferenceTemplateConstructor(Settings);

            // store the object data provider
            Data = IntelliText.DataProviders.PreferenceDataProviderFactory.getDataProvider(settings.DataProvider, settings.PathDataProvider);

            // create the render
            Render = IntelliText.Render.PreferenceRenderFactory.getRender(settings.Render);
        }