Class AbstractBeanTableDataModel
- java.lang.Object
-
- com.github.bordertech.wcomponents.AbstractTableDataModel
-
- com.github.bordertech.wcomponents.AbstractBeanTableDataModel
-
- All Implemented Interfaces:
BeanAware,BeanProviderBound,BeanTableDataModel,TableDataModel,Serializable
- Direct Known Subclasses:
SimpleBeanBoundTableDataModel
@Deprecated public abstract class AbstractBeanTableDataModel extends AbstractTableDataModel implements BeanTableDataModel
Deprecated.UseWTableandAbstractBeanBoundTableModelinstead.A default implementation of theBeanTableDataModelinterface. This implementation does not support editing, row selection, filtering etc. Subclasses need only implement theTableDataModel.getRowCount()andTableDataModel.getValueAt(int, int)methods.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBeanTableDataModel()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetBean()Deprecated.Retrieves the bean for the given context.ObjectgetBeanId()Deprecated.Retrieves the bean id.StringgetBeanProperty()Deprecated.ObjectgetBeanValue()Deprecated.Retrieves the value this component is interested in from the bean.voidsetBeanId(Object beanId)Deprecated.Sets the bean id.voidsetBeanProperty(String propertyName)Deprecated.Sets the bean property that this component is interested in.voidsetBeanProvider(BeanProvider beanProvider)Deprecated.Sets the bean provider.-
Methods inherited from class com.github.bordertech.wcomponents.AbstractTableDataModel
getFilterValues, getRowHeader, isCellEditable, isDisabled, isSelectable, isSortable, setValueAt, sort, sort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.bordertech.wcomponents.TableDataModel
getFilterValues, getRowCount, getRowHeader, getValueAt, isCellEditable, isDisabled, isSelectable, isSortable, setValueAt, sort
-
-
-
-
Method Detail
-
setBeanProvider
public void setBeanProvider(BeanProvider beanProvider)
Deprecated.Sets the bean provider.- Specified by:
setBeanProviderin interfaceBeanProviderBound- Parameters:
beanProvider- the bean provider to set
-
setBeanId
public void setBeanId(Object beanId)
Deprecated.Sets the bean id.- Specified by:
setBeanIdin interfaceBeanProviderBound- Parameters:
beanId- the bean id to set
-
getBeanId
public Object getBeanId()
Deprecated.Retrieves the bean id.- Specified by:
getBeanIdin interfaceBeanProviderBound- Returns:
- the bean id.
-
setBeanProperty
public void setBeanProperty(String propertyName)
Deprecated.Sets the bean property that this component is interested in.- Specified by:
setBeanPropertyin interfaceBeanAware- Parameters:
propertyName- the bean property name
-
getBeanProperty
public String getBeanProperty()
Deprecated.- Specified by:
getBeanPropertyin interfaceBeanAware- Returns:
- the bean property name this component is interested in
-
getBean
public Object getBean()
Deprecated.Retrieves the bean for the given context.
-
getBeanValue
public Object getBeanValue()
Deprecated.Retrieves the value this component is interested in from the bean. This is derived from theBeanAware.getBeanProperty()andBeanAware.getBean().- Specified by:
getBeanValuein interfaceBeanAware- Returns:
- the bean value, or null if no bean value is available.
-
-