java.lang.Object
com.amalgamasimulation.desktop.ui.tables.Tables

public class Tables extends Object
The class responsible for creating tables.
Author:
Ionov Ivan
  • Constructor Details

    • Tables

      public Tables()
  • Method Details

    • readonly

      public static <T> Tables.ParentBuilder<T,Table<T>> readonly(List<T> elements)
      Creates and returns a table without the ability to edit data
      Type Parameters:
      T - type of row value
      Parameters:
      elements - List of elements to be shown in the table
      Returns:
      builder object
    • editable

      public static <T> Tables.ParentBuilder<T,EditableTable<T>> editable(List<T> elements)
      Creates and returns a table with editable data.
      Type Parameters:
      T - type of row value
      Parameters:
      elements - List of elements to be shown in the table
      Returns:
      builder object
    • emf

      public static <T extends org.eclipse.emf.ecore.EObject> Tables.ParentBuilder<T,EMFTable<T>> emf(List<T> elements)
      Creates and returns a table with editable data and a special set of functions for editing EMF data (EObject).
      Type Parameters:
      T - type of row value
      Parameters:
      elements - List of elements to be shown in the table
      Returns:
      builder object