T - the item typepublic class SumFormTableEntry<T> extends FormTableEntry<T>
| Constructor and Description |
|---|
SumFormTableEntry()
Creates an empty SumFormTableEntry.
|
SumFormTableEntry(AbstractFormTableModel model)
Creates a SumFormTableEntry for a given table model.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Determines the number of data-model columns.
|
String |
getColumnName(int mColumn)
Describes the column name.
This may be a symbolic name if getDisplayedColumnName() is overridden. |
T |
getObject()
Gets the object wrapped by this entry.
|
Object |
getValueAt(int mColumn)
Gets the column-object for this entry in a given column.
The default implementation tries to use the binding, if any. |
FormTableEntry<T> |
newInstance(T object)
Creates a new instance of an entry for a given data-object.
|
void |
sumUp(AbstractFormTableModel model)
Sums up all numeric column in the model.
|
compareTo, fireCellsUpdated, fireRowUpdated, getAdjust, getBinding, getBindingPath, getBindType, getCellEditor, getCellRect, getCellRenderer, getColumnClass, getConvert, getDisplayedColumnName, getFormat, getHorizontalAlignment, getMaxColumns, getModel, getReferencedColumn, getReferencedRow, getRow, getScale, getShowHorizontalLine, getShowVerticalLine, getTable, getVerticalAlignment, isAutoSelect, isBindingChangeable, isBlankZero, isCellEditable, isCellEditorFixed, isCellRectFixed, isCellRendererFixed, isCellVisible, isColumnNotSummable, isVisiblyEqual, setModel, setRow, setValueAt, updateArray, updateCursor, updateListpublic SumFormTableEntry(AbstractFormTableModel model)
model - the form table modelpublic SumFormTableEntry()
public void sumUp(AbstractFormTableModel model)
model - the form table modelpublic FormTableEntry<T> newInstance(T object)
FormTableEntrynewInstance in class FormTableEntry<T>object - the data-objectpublic Object getValueAt(int mColumn)
FormTableEntrygetValueAt in interface FormTableRowObjectgetValueAt in class FormTableEntry<T>mColumn - the datamodel-columnpublic String getColumnName(int mColumn)
FormTableEntrygetColumnName in class FormTableEntry<T>mColumn - the datamodel-columnpublic T getObject()
FormTableEntrygetObject in class FormTableEntry<T>public int getColumnCount()
FormTableEntrygetColumnCount in class FormTableEntry<T>Tentackle - a domain driven enterprise framework