Class ArrayTableColumn<R,​C>


  • public abstract class ArrayTableColumn<R,​C>
    extends java.lang.Object
    Provides the specification for a table column. This is to be used in conjunction with ArrayTableModel.
    Since:
    14 Oct 2009
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayTableColumn​(java.lang.String name, java.lang.Class<C> clazz)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<C> getContentClass()
      Returns the class which all values of this column will belong to.
      java.lang.String getName()
      Returns the name of this column.
      abstract C getValue​(R item)
      Returns the value in this column for the row represented by the given row data object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArrayTableColumn

        public ArrayTableColumn​(java.lang.String name,
                                java.lang.Class<C> clazz)
        Constructor.
        Parameters:
        name - column name
        clazz - class which all objects returned by the getValue(R) method will be instances of (or null)
    • Method Detail

      • getValue

        public abstract C getValue​(R item)
        Returns the value in this column for the row represented by the given row data object.
        Parameters:
        item - row data object
        Returns:
        cell value in this column
      • getName

        public java.lang.String getName()
        Returns the name of this column.
        Returns:
        column name
      • getContentClass

        public java.lang.Class<C> getContentClass()
        Returns the class which all values of this column will belong to.
        Returns:
        content class