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.UseWTable
andAbstractBeanBoundTableModel
instead.A default implementation of theBeanTableDataModel
interface. 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 Object
getBean()
Deprecated.Retrieves the bean for the given context.Object
getBeanId()
Deprecated.Retrieves the bean id.String
getBeanProperty()
Deprecated.Object
getBeanValue()
Deprecated.Retrieves the value this component is interested in from the bean.void
setBeanId(Object beanId)
Deprecated.Sets the bean id.void
setBeanProperty(String propertyName)
Deprecated.Sets the bean property that this component is interested in.void
setBeanProvider(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:
setBeanProvider
in interfaceBeanProviderBound
- Parameters:
beanProvider
- the bean provider to set
-
setBeanId
public void setBeanId(Object beanId)
Deprecated.Sets the bean id.- Specified by:
setBeanId
in interfaceBeanProviderBound
- Parameters:
beanId
- the bean id to set
-
getBeanId
public Object getBeanId()
Deprecated.Retrieves the bean id.- Specified by:
getBeanId
in interfaceBeanProviderBound
- Returns:
- the bean id.
-
setBeanProperty
public void setBeanProperty(String propertyName)
Deprecated.Sets the bean property that this component is interested in.- Specified by:
setBeanProperty
in interfaceBeanAware
- Parameters:
propertyName
- the bean property name
-
getBeanProperty
public String getBeanProperty()
Deprecated.- Specified by:
getBeanProperty
in 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:
getBeanValue
in interfaceBeanAware
- Returns:
- the bean value, or null if no bean value is available.
-
-