|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.AbstractDataGridModel
com.zfqjava.swing.LargeDataGridModel
public class LargeDataGridModel
| Field Summary |
|---|
| Fields inherited from class com.zfqjava.swing.AbstractDataGridModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
LargeDataGridModel()
|
|
LargeDataGridModel(int rowCount,
int columnCount)
|
|
| Method Summary | |
|---|---|
AttributeSet |
getCellAttributes(int row,
int column)
Returns the cell attributes. |
Class |
getCellClass(int row,
int column)
Returns the cell class. |
Boolean |
getCellEditable(int row,
int column)
Returns the editable property for the specified cell at rowIndex and
columnIndex. |
Class |
getColumnClass(int column)
Returns Object.class regardless of columnIndex. |
int |
getColumnCount()
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... |
int |
getRowCount()
|
Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int row,
int column)
|
void |
setCellAttributes(AttributeSet attributes,
int row,
int column)
Sets the cell attributes. |
void |
setCellClass(Class c,
int row,
int column)
Sets the cell class. |
void |
setCellEditable(boolean editable,
int row,
int column)
Sets the editable value for the specified cell at rowIndex and
columnIndex. |
void |
setColumnClass(Class c,
int column)
Sets the column class for the specified columnIndex. |
void |
setColumnCount(int columnCount)
Sets the number of columns in the model. |
void |
setColumnName(String name,
int column)
Sets the column name for the specified columnIndex. |
void |
setRowCount(int rowCount)
Sets the number of rows in the model. |
void |
setValueAt(Object aValue,
int row,
int column)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LargeDataGridModel()
public LargeDataGridModel(int rowCount,
int columnCount)
| Method Detail |
|---|
public void setRowCount(int rowCount)
DataGridModel
setRowCount in interface DataGridModelrowCount - the number of rows in the modelTableModel.getRowCount(),
DataGridModel.setColumnCount(int),
TableModel.getColumnCount()public void setColumnCount(int columnCount)
DataGridModel
setColumnCount in interface DataGridModelcolumnCount - the number of columns in the modelTableModel.getRowCount(),
DataGridModel.setRowCount(int),
TableModel.getColumnCount()public String getColumnName(int column)
AbstractDataGridModelcolumn cannot be found,
returns an empty string.
getColumnName in interface TableModelgetColumnName in class AbstractDataGridModelcolumn - the column being queried
column
public void setColumnName(String name,
int column)
DataGridModelcolumnIndex.
setColumnName in interface DataGridModelname - the column namecolumn - the specified columnIndexTableModel.getColumnName(int)public Class getColumnClass(int column)
AbstractDataGridModelObject.class regardless of columnIndex.
getColumnClass in interface TableModelgetColumnClass in class AbstractDataGridModelcolumn - the column being queried
public void setColumnClass(Class c,
int column)
DataGridModelcolumnIndex.
setColumnClass in interface DataGridModelc - the column classcolumn - the specified columnIndexTableModel.getColumnClass(int)
public void setCellEditable(boolean editable,
int row,
int column)
DataGridModelrowIndex and
columnIndex.
setCellEditable in interface DataGridModeleditable - the cell editable valuerow - the row whose value to be queriedcolumn - the column whose value to be queriedTableModel.setValueAt(java.lang.Object, int, int),
TableModel.isCellEditable(int,int)
public AttributeSet getCellAttributes(int row,
int column)
DataGridModel
getCellAttributes in interface DataGridModelrow - the index of the rowcolumn - the index of the column
DataGridModel.setCellAttributes(javax.swing.text.AttributeSet, int, int)
public void setCellAttributes(AttributeSet attributes,
int row,
int column)
DataGridModel
setCellAttributes in interface DataGridModelattributes - the cell attributesrow - the index of the rowcolumn - the index of the columnDataGridModel.getCellAttributes(int, int)
public Class getCellClass(int row,
int column)
DataGridModel
getCellClass in interface DataGridModelrow - the index of the rowcolumn - the index of the column
DataGridModel.setCellClass(java.lang.Class, int, int)
public void setCellClass(Class c,
int row,
int column)
DataGridModel
setCellClass in interface DataGridModelc - the class for the specified cellrow - the index of the rowcolumn - the index of the columnDataGridModel.getCellClass(int, int)public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModel
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModel
public Boolean getCellEditable(int row,
int column)
AbstractDataGridModelrowIndex and
columnIndex.
getCellEditable in class AbstractDataGridModelrow - the row whose value to be queriedcolumn - the column whose value to be queried
TableModel.setValueAt(java.lang.Object, int, int),
DataGridModel.setCellEditable(boolean,int,int)
public Object getValueAt(int row,
int column)
getValueAt in interface TableModel
public void setValueAt(Object aValue,
int row,
int column)
setValueAt in interface TableModel
|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||