|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xulux.gui.XuluxListener org.xulux.guilayer.swing.models.NyxTableModel
public class NyxTableModel
The nyx tablemodel contains all magic for tables.
Field Summary | |
---|---|
protected javax.swing.table.TableModel |
model
the tablemodel |
protected Table |
table
the table |
Fields inherited from class org.xulux.gui.XuluxListener |
---|
processing, widget |
Constructor Summary | |
---|---|
NyxTableModel()
|
|
NyxTableModel(Table table)
|
|
NyxTableModel(javax.swing.table.TableModel model,
Table table)
|
Method Summary | |
---|---|
void |
addTableModelListener(javax.swing.event.TableModelListener l)
|
void |
destroy()
Destroy the tablemodel.. |
java.lang.Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
Not used,we use a columnmodel. |
java.lang.String |
getColumnName(int columnIndex)
Not used, we use a columnmodel for that... |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the row object if the columnIndex is -1. |
boolean |
hasModel()
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
refresh()
refreshes the table, since there is new content |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
|
void |
setModel(javax.swing.table.TableModel model)
|
void |
setTable(Table table)
Set the table to be used in this tablemodel |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the value of a bean.. |
Methods inherited from class org.xulux.gui.XuluxListener |
---|
accepted, completed, completed, completedPart, getWidget, isProcessing, processEvent, setWidget, started |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Table table
protected javax.swing.table.TableModel model
Constructor Detail |
---|
public NyxTableModel()
public NyxTableModel(Table table)
table
- the tablepublic NyxTableModel(javax.swing.table.TableModel model, Table table)
model
- the modeltable
- the tableMethod Detail |
---|
public void setModel(javax.swing.table.TableModel model)
model
- the modelpublic boolean hasModel()
public void setTable(Table table)
table
- the tablepublic int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
TableModel.getRowCount()
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
TableModel.getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
TableModel.getColumnName(int)
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
TableModel.getColumnClass(int)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
TableModel.isCellEditable(int, int)
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
TableModel.getValueAt(int, int)
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
TableModel.setValueAt(java.lang.Object, int, int)
public void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener
in interface javax.swing.table.TableModel
TableModel.addTableModelListener(javax.swing.event.TableModelListener)
public void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener
in interface javax.swing.table.TableModel
TableModel.removeTableModelListener(javax.swing.event.TableModelListener)
public void destroy()
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |