|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.wcb.autohome.model.EventsTableModel
Copyright (C) 1999 Walter Bogaardt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 Project: Alice X10 Home Automation Date: Oct 6, 2003 Time: 11:32:45 AM class that is used to display the resulting orders. $Log: EventsTableModel.java,v $ Revision 1.7 2004/01/16 23:52:49 wbogaardt fixed trigger panel to disable time events options when app first starts up also made the events table modle display dim and brighten instead of + and - to the user. Revision 1.6 2004/01/16 19:50:18 wbogaardt refactored, fixed long standing bug with updating macro panels, add error notification to user for improper device codes Revision 1.5 2004/01/15 21:05:20 wbogaardt major revamp of Modules and interfaces changes overall structure of how information is stored Revision 1.4 2003/12/30 00:56:50 wbogaardt added more internationalization to table column names. Revision 1.3 2003/10/10 18:39:12 wbogaardt changed date time information from a string to a calendar object
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
EventsTableModel(java.util.Vector list)
This is the constructor takes in the data set a for display. |
Method Summary | |
void |
addRow(IX10Events newRow)
Add a row of IX10Event object and fire data table change event. |
java.lang.Class |
getColumnClass(int col)
Returns the most specific superclass for all the cell values in the column. |
int |
getColumnCount()
Returns the number of columns in the model. |
java.lang.String |
getColumnName(int columnIndex)
Retruns the name of the column at columnIndex. |
java.lang.Object |
getItemAt(int row)
Gets the Object for the selected row in the model |
int |
getRowCount()
Number of X10Devices added to the table model and return the total number |
java.lang.Object |
getValueAt(int row,
int col)
Returns the value for the cell at columnIndex and rowIndex. |
boolean |
isCellEditable(int row,
int col)
The entire model does not allow any of the cells to be edited directly. |
void |
removeRow(int row)
Remove the identified row from the model and fire a data table change event. |
void |
setList(java.util.Vector list)
Set the model to this new vector list. |
void |
setValueAt(java.lang.Object aVal,
int row)
Set the value of the row to an IX10Events and fire a table data change event. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, removeTableModelListener, setValueAt |
Constructor Detail |
public EventsTableModel(java.util.Vector list)
list
- Vector of IX10EventsMethod Detail |
public java.lang.Object getItemAt(int row)
row
- Row number in the model
public void setList(java.util.Vector list)
list
- New data set of IX10Eventspublic void addRow(IX10Events newRow)
newRow
- Inserted IX10Events object.public void removeRow(int row)
row
- Row number to removepublic void setValueAt(java.lang.Object aVal, int row)
aVal
- Object of IX10Eventsrow
- the row number in the modelpublic java.lang.Object getValueAt(int row, int col)
getValueAt
in interface javax.swing.table.TableModel
row
- The row whose value is to be queriedcol
- The column whose value is to be queried
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
columnIndex
- The index of the column
public java.lang.Class getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
col
- the index of the column
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
row
- The selected rowcol
- Selected column
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |