Class AnyObjectTableModel<T>

    • Constructor Detail

      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.lang.Class<T> dataClass,
                                   java.lang.String... methodNames)
      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.lang.reflect.Method... methods)
      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.util.List<java.lang.reflect.Method> methods)
      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.lang.Class<T> dataClass,
                                   java.util.List<java.lang.String> methodNames)
      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.util.List<T> data,
                                   java.lang.Class<T> dataClass,
                                   java.util.List<java.lang.String> methodNames)
      • AnyObjectTableModel

        public AnyObjectTableModel​(java.lang.String modelName,
                                   java.util.List<T> data,
                                   java.util.List<java.lang.reflect.Method> methods)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: RowObjectTableModel
        Returns the name of this model
        Returns:
        the name of this model
      • isSortable

        public boolean isSortable​(int columnIndex)
        Description copied from interface: SortedTableModel
        Returns true if the specified columnIndex is sortable.
        Specified by:
        isSortable in interface SortedTableModel
        Overrides:
        isSortable in class GDynamicColumnTableModel<T,​java.lang.Object>
        Parameters:
        columnIndex - the column index
        Returns:
        true if the specified columnIndex is sortable
      • getModelData

        public java.util.List<T> getModelData()
        Description copied from interface: RowObjectTableModel
        Implementors should return the current data of the model. For models that support filtering, this will be the filtered version of the data. Furthermore, the data should be the underlying data and not a copy, as this method will potentially sort the given data.

        For those subclasses using an array, you may use the Arrays class to create a list backed by the array (Arrays.asList(Object...)).

        Returns:
        the model data.
      • setModelData

        public void setModelData​(java.util.List<T> data)