public SimpleColumns addContent(Object data, String... styleClasses) throws VectorPrintException, DocumentException {
      if (data != null) {
         List<BaseStyler> l = new ArrayList<>(stylers);
         if (styleClasses!=null) {
            l.addAll(stylerFactory.getStylers(styleClasses));
         }
         if ((data instanceof Element)) {
            elementProducer.getStyleHelper().style(data, null, stylers);
            if (log.isLoggable(Level.FINE)) {
               log.fine(String.format("trying to add %s to columns",data.getClass().getName()));
            }
            if (getValue(MODEPARAM, MODE.class) == MODE.TEXT) {
               if (data instanceof Chunk) {
                  ct.addText((Chunk) data);
               } else if (data instanceof Phrase) {
                  ct.addText((Phrase) data);
               } else {
                  throw new VectorPrintException(String.format("%s not supported in text mode", data.getClass().getName()));
               }
            } else {
               ct.addElement((Element) data);
            }
         } else {
            try {
               if (log.isLoggable(Level.FINE)) {
                  log.fine(String.format("trying to add %s to columns as a Phrase",data));
               }
               if (getValue(MODEPARAM, MODE.class) == MODE.TEXT) {
                  ct.addText(
                      elementProducer.createElement(data, Phrase.class, l));
               } else {
                  ct.addElement(
                      elementProducer.createElement(data, Phrase.class, l));
               }
            } catch (InstantiationException | IllegalAccessException ex) {
               throw new VectorPrintException(ex);
            }
         }
         addedContent++;
         if (getValue(WRITECOUNT, Integer.class) > 0) {
            if (addedContent % getValue(WRITECOUNT, Integer.class) == 0) {
               if (log.isLoggable(Level.FINE)) {
                  log.fine(String.format("writing content of columns to document after %s pieces added", getValue(WRITECOUNT, Integer.class)));
               }
               write(false);
            }
         }
      }
      return this;
   }
public SimpleColumns addContent ( Object data , String ... styleClasses ) throws VectorPrintException , DocumentException { if ( data != null ) { List < BaseStyler > l = new ArrayList < > ( stylers ) ; if ( styleClasses != null ) { l . addAll ( stylerFactory . getStylers ( styleClasses ) ) ; } if ( ( data instanceof Element ) ) { elementProducer . getStyleHelper ( ) . style ( data , null , stylers ) ; if ( log . isLoggable ( Level . FINE ) ) { log . fine ( String . format ( "trying to add %s to columns" , data . getClass ( ) . getName ( ) ) ) ; } if ( getValue ( MODEPARAM , MODE . class ) == MODE . TEXT ) { if ( data instanceof Chunk ) { ct . addText ( ( Chunk ) data ) ; } else if ( data instanceof Phrase ) { ct . addText ( ( Phrase ) data ) ; } else { throw new VectorPrintException ( String . format ( "%s not supported in text mode" , data . getClass ( ) . getName ( ) ) ) ; } } else { ct . addElement ( ( Element ) data ) ; } } else { try { if ( log . isLoggable ( Level . FINE ) ) { log . fine ( String . format ( "trying to add %s to columns as a Phrase" , data ) ) ; } if ( getValue ( MODEPARAM , MODE . class ) == MODE . TEXT ) { ct . addText ( elementProducer . createElement ( data , Phrase . class , l ) ) ; } else { ct . addElement ( elementProducer . createElement ( data , Phrase . class , l ) ) ; } } catch ( InstantiationException | IllegalAccessException ex ) { throw new VectorPrintException ( ex ) ; } } addedContent ++ ; if ( getValue ( WRITECOUNT , Integer . class ) > 0 ) { if ( addedContent % getValue ( WRITECOUNT , Integer . class ) == 0 ) { if ( log . isLoggable ( Level . FINE ) ) { log . fine ( String . format ( "writing content of columns to document after %s pieces added" , getValue ( WRITECOUNT , Integer . class ) ) ) ; } write ( false ) ; } } } return this ; }
adds content to the columns and calls {@link #write(boolean) write(false)} when {@link #WRITECOUNT} is greater
then zero and reached

@param data Chunk, Phrase, Image, List, Paragraph, PdfPTable or String
@param styleClasses stylers to apply to added content, they will be appended to the stylers defined after
the SimpleColumns styler (i.e. the Font in this definition: kols=SimpleColumns(columns=3,mode=composite,writecount=10,opacity=0.7);Font(style=italic))
@return
@throws VectorPrintException