Java Glossary : fire

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : F words : fire.

fire
When a component wants to inform a set of listeners that a property has changed it will use fireVetoableChange to see if interested listeners will agree to the change. Then it uses firePropertyChange to inform interested listeners that the property has changed value.

In Swing TableModel you fire various events to let the GUI know your data have changed. You do this by calling methods in AbstractTableModel.

TableModel Change Notification
Method Purpose
fireTableDataChanged All cell values in the table's rows may have changed. This will not suffice if the number of columns changes or you are just getting started going from 0 to N columns. See fireTableStructureChanged.
fireTableRowsDeleted rows in the range [firstRow, lastRow], inclusive, have been deleted.
fireTableRowsInserted rows in the range [firstRow, lastRow], inclusive, have been inserted.
fireTableRowsUpdated rows in the range [firstRow, lastRow], inclusive, may have been updated.
fireTableStructureChanged Number of column may have changed, column headers may have changed, type of data in a column may have changed. Also use after you first populate a table since you went from 0 to N columns. Not needed if number of rows changes.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 783.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/fire.html J:\mindprod\jgloss\fire.html