|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
leon.view.win.swing.table.LyJTableModel
public class LyJTableModel
This class is the link between the leon data source and the table component. It is managing the population of the table.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
EMPTY_CELL_STATUS_VALUE
The empty status cell. |
static java.lang.String |
EMPTY_CELL_VALUE
The empty cell. |
static int |
EMPTY_ROW_COUNT
The number of empty rows. |
Constructor Summary | |
---|---|
LyJTableModel(LySwingTable swingTable)
Creates a table model for the specified table. |
Method Summary | |
---|---|
java.lang.Class<?> |
getColumnClass(int i)
Gets the class of the datas in the specified column. |
int |
getColumnCount()
Counts one more empty column for a better visual aspect. |
java.lang.Object |
getColumnFooterValue(int i)
Gets the value object of the specified footer column. |
java.lang.Object |
getColumnHeaderValue(int i)
Gets the header label of the specified column. |
java.lang.String |
getColumnName(int i)
Gets the text label of the specified column. |
int |
getDataColumnCount()
Gets the number of columns with value. |
int |
getDataRowCount()
Gets the number of rows with values. |
int |
getEmptyRowCount()
Gets the default number of empty rows. |
java.lang.Object |
getLock()
Get a lock on the table to prevent concurrent access on rows return a valid lock for synchronized() |
LySwingRow |
getRowAt(int idx)
Gets the graphical row at the specified index. |
int |
getRowCount()
Counts some empty rows for a better visual aspect. |
java.lang.String |
getRowId(int index)
Gets the identifier of the specified row. |
java.awt.Image |
getRowImage(int index)
Gets the image of the specified row. |
java.lang.String |
getRowToolTip(int index)
Gets the tooltip of the specified row. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Gets the value of the cell at the specified row and column indices. |
boolean |
isCellEditable(int row,
int column)
Gets the editable state of the cell at the specified position. |
void |
setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex)
Nothing is done. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String EMPTY_CELL_VALUE
public static final java.lang.String EMPTY_CELL_STATUS_VALUE
public static int EMPTY_ROW_COUNT
Constructor Detail |
---|
public LyJTableModel(LySwingTable swingTable)
swingTable
- the associated swing tableMethod Detail |
---|
public int getColumnCount()
TableModel.getColumnCount()
public int getRowCount()
TableModel.getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
setValueAt(Object, int, int)
,
TableModel.getValueAt(int, int)
public java.lang.String getColumnName(int i)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
TableModel.getColumnName(int)
public java.lang.Class<?> getColumnClass(int i)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
TableModel.getColumnClass(int)
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
getValueAt(int, int)
,
TableModel.setValueAt(java.lang.Object, int, int)
public java.lang.Object getColumnHeaderValue(int i)
i
- the index of the column
public LySwingRow getRowAt(int idx)
idx
- the index of the row to retrieve
public int getEmptyRowCount()
public java.lang.Object getColumnFooterValue(int i)
i
- the index of the column
public int getDataRowCount()
public int getDataColumnCount()
public java.awt.Image getRowImage(int index)
index
- the index of the row
public java.lang.String getRowToolTip(int index)
index
- the index of the row
public java.lang.String getRowId(int index)
index
- the index of the row
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- the row of the cellcolumn
- the column of the cell
true
if the specified cell is an editable field component,
false
otherwiseTableModel.isCellEditable(int, int)
public java.lang.Object getLock()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |