Interface TableDataProvider<Bean>

  • Type Parameters:
    Bean - the class representing a row in the table
    All Known Implementing Classes:
    AsyncTableDataProvider

    public interface TableDataProvider<Bean>
    Interface for providing additional columns in a table.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String STATE_PROPERTY
      The property name to be used for state change events.
    • Field Detail

      • STATE_PROPERTY

        static final java.lang.String STATE_PROPERTY
        The property name to be used for state change events.
        See Also:
        Constant Field Values
    • Method Detail

      • getColumnAdapters

        java.util.List<? extends ColumnAdapter<Bean,​?>> getColumnAdapters()
      • setBeans

        void setBeans​(java.util.Collection<Bean> beans)
        Notification that the table data has been replaced. This method will only be called from the Event Dispatch Thread.
      • addBean

        void addBean​(Bean bean)
        Notification that a table row has been added. This method will only be called from the Event Dispatch Thread.
      • updateBean

        boolean updateBean​(Bean bean,
                           java.lang.String columnId,
                           java.lang.Object oldValue)
        Notification that a table row has been modified. This method will only be called from the Event Dispatch Thread.
        Returns:
        true if column values for this provider are effected
      • removeBean

        void removeBean​(Bean bean)
        Notification that a table row has been removed. This method will only be called from the Event Dispatch Thread.
      • addStateChangeListener

        void addStateChangeListener​(java.beans.PropertyChangeListener listener)
        Add PropertyChangeListener to be notified when the data has been loaded.
      • removeStateChangeListener

        void removeStateChangeListener​(java.beans.PropertyChangeListener listener)