public class MustTableModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
remoteElementName |
Constructor and Description |
---|
MustTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.Object[] visualItems)
Adds a row with an identifier.
|
void |
buildRemoteViewNewContent(ToAppletWriter out) |
java.util.Vector<java.lang.Object[]> |
getData() |
int |
getRowCount()
Returns the number of rows in this data table.
|
java.lang.Object |
getValueAt(int row,
int column)
Returns an attribute value for the cell at
row
and column . |
boolean |
isCellEditable(int row,
int column) |
void |
removeAll() |
void |
setCellEditable(int row,
int column,
boolean editable)
Sets the flag if the cell is editable.
|
void |
setRemoteElementName(java.lang.String remoteElementName)
Sets the id of the (owner) component.
|
void |
setValueAt(java.lang.Object value,
int row,
int column)
Sets the object value for the cell at
column and
row . |
public void setRemoteElementName(java.lang.String remoteElementName)
remoteElementName
- the remote element name of the (owner) componentpublic void setCellEditable(int row, int column, boolean editable)
#removeRow(int)
row
- the index of the row to setcolumn
- the index of the column to seteditable
- whether or not the column is editable in generalpublic java.util.Vector<java.lang.Object[]> getData()
public void removeAll()
public void addRow(java.lang.Object[] visualItems)
visualItems
- the cell values if the rowpublic void buildRemoteViewNewContent(ToAppletWriter out)
public int getRowCount()
public void setValueAt(java.lang.Object value, int row, int column)
column
and
row
. aValue
is the new value. This method
will generate a tableChanged
notification.value
- the new value; this can be nullrow
- the row whose value is to be changedcolumn
- the column whose value is to be changedpublic java.lang.Object getValueAt(int row, int column)
row
and column
.row
- the row whose value is to be queriedcolumn
- the column whose value is to be queriedpublic boolean isCellEditable(int row, int column)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de