Package docking.widgets.table
Class RowObject
- java.lang.Object
-
- docking.widgets.table.RowObject
-
public class RowObject extends java.lang.Object
An object that represents a row in a table. Most tables used in the system create tables that use their own row objects (seeAbstractSortedTableModel
). This class exists to compensate for those models that do not do this, but instead rely on the classic JavaTableModel
methodTableModel.getValueAt(int, int)
.For the best behavior, a table model implementation should extend
AbstractSortedTableModel
, as the system is written to work for those models. Use of this class as a workaround is a suitable default, but will not always result in the desired behavior. A major reason for this is that if any of the table's cell values change, the row objects that created for non-AbstractSortedTableModel
s will not be equal to those created before the data change. This causes some features to break, such as selection restoration after user edits.
-
-
Constructor Summary
Constructors Constructor Description RowObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RowObject
createRowObject(javax.swing.table.TableModel model, int row)
Factory method to create and initialize a row object.boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
createRowObject
public static RowObject createRowObject(javax.swing.table.TableModel model, int row)
Factory method to create and initialize a row object.- Parameters:
model
- the model required to gather data for the row object.row
- the row for which to create a row object * @return
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-