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.StringSTATE_PROPERTYThe property name to be used for state change events.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBean(Bean bean)Notification that a table row has been added.voidaddStateChangeListener(java.beans.PropertyChangeListener listener)AddPropertyChangeListenerto be notified when the data has been loaded.java.util.List<? extends ColumnAdapter<Bean,?>>getColumnAdapters()voidremoveBean(Bean bean)Notification that a table row has been removed.voidremoveStateChangeListener(java.beans.PropertyChangeListener listener)voidsetBeans(java.util.Collection<Bean> beans)Notification that the table data has been replaced.booleanupdateBean(Bean bean, java.lang.String columnId, java.lang.Object oldValue)Notification that a table row has been modified.
-
-
-
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)
AddPropertyChangeListenerto be notified when the data has been loaded.
-
removeStateChangeListener
void removeStateChangeListener(java.beans.PropertyChangeListener listener)
-
-