Interface ISimpleTableModelBuilderAdaptor


  • public interface ISimpleTableModelBuilderAdaptor
    Builder of simple table models. All column titles should be unique.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addFullHeader​(java.lang.String... titles)
      A convenience method for adding complete header with columns with specified titles and default column width 150.
      void addFullRow​(java.lang.String... values)
      A convenience method for adding a row with specified values.
      void addHeader​(java.lang.String title)
      Adds header column with specified title and default column width 150.
      void addHeader​(java.lang.String title, int defaultColumnWidth)
      Adds header column with specified title and specified default column width.
      void addHeader​(java.lang.String title, java.lang.String code)
      Adds header column with specified title, specified code and default column width 150.
      IRowBuilderAdaptor addRow()
      Adds an empty row and returns a row builder for setting values of this row.
      ch.systemsx.cisd.openbis.generic.shared.basic.dto.api.ITableModel getTableModel()
      Returns the defined table model.
    • Method Detail

      • getTableModel

        ch.systemsx.cisd.openbis.generic.shared.basic.dto.api.ITableModel getTableModel()
        Returns the defined table model. It should be used to set an output of managed property.
      • addRow

        IRowBuilderAdaptor addRow()
        Adds an empty row and returns a row builder for setting values of this row.
      • addHeader

        void addHeader​(java.lang.String title)
        Adds header column with specified title and default column width 150.
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException - if header with the same title has already been added.
      • addHeader

        void addHeader​(java.lang.String title,
                       int defaultColumnWidth)
        Adds header column with specified title and specified default column width.
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException - if header with the same title has already been added.
      • addHeader

        void addHeader​(java.lang.String title,
                       java.lang.String code)
        Adds header column with specified title, specified code and default column width 150.
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException - if header with the same title has already been added.
      • addFullHeader

        void addFullHeader​(java.lang.String... titles)
        A convenience method for adding complete header with columns with specified titles and default column width 150.
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException - if header titles are not unique.
      • addFullRow

        void addFullRow​(java.lang.String... values)
        A convenience method for adding a row with specified values.