Package docking.widgets.table
Class RowObject
- java.lang.Object
-
- docking.widgets.table.RowObject
-
public class RowObject extends java.lang.ObjectAn 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 JavaTableModelmethodTableModel.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-AbstractSortedTableModels 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 RowObjectcreateRowObject(javax.swing.table.TableModel model, int row)Factory method to create and initialize a row object.booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-