void
addColumn(Object columnName)
Adds a column to the model.
void
addColumn(Object columnName, Object[] columnData)
Adds a column to the model.
void
addColumn(Object columnName, Vector columnData)
Adds a column to the model.
void
addRow(Object[] rowData)
Adds a row to the end of the model.
void
addRow(Vector rowData)
Adds a row to the end of the model.
protected static Vector
convertToVector(Object[] anArray)
Returns a vector that contains the same objects as the array.
protected static Vector
convertToVector(Object[][] anArray)
Returns a vector of vectors that contains the same objects as the array.
int
getColumnCount()
Returns the number of columns in this data table.
String
getColumnName(int column)
Returns the column name.
Vector
getDataVector()
Returns the Vector
of Vectors
that contains the table's data values.
int
getRowCount()
Returns the number of rows in this data table.
Object
getValueAt(int row, int column)
Returns an attribute value for the cell at row
and column
.
void
insertRow(int row, Object[] rowData)
Inserts a row at row
in the model.
void
insertRow(int row, Vector rowData)
Inserts a row at row
in the model.
boolean
isCellEditable(int row, int column)
Returns true regardless of parameter values.
void
moveRow(int start, int end, int to)
Moves one or more rows from the inclusive range start
to end
to the to
position in the model.
void
newDataAvailable(TableModelEvent event)
Equivalent to fireTableChanged
.
void
newRowsAdded(TableModelEvent e)
Ensures that the new rows have the correct number of columns.
void
removeRow(int row)
Removes the row at row
from the model.
void
rowsRemoved(TableModelEvent event)
Equivalent to fireTableChanged
.
void
setColumnCount(int columnCount)
Sets the number of columns in the model.
void
setColumnIdentifiers(Object[] newIdentifiers)
Replaces the column identifiers in the model.
void
setColumnIdentifiers(Vector columnIdentifiers)
Replaces the column identifiers in the model.
void
setDataVector(Object[][] dataVector, Object[] columnIdentifiers)
Replaces the value in the dataVector
instance variable with the values in the array dataVector
.
void
setDataVector(Vector dataVector, Vector columnIdentifiers)
Replaces the current dataVector
instance variable with the new Vector
of rows, dataVector
.
void
setNumRows(int rowCount)
Obsolete as of Java 2 platform v1.3.
void
setRowCount(int rowCount)
Sets the number of rows in the model.
void
setValueAt(Object aValue, int row, int column)
Sets the object value for the cell at column
and row
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4