/*
 * Created on 11.02.2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package gui.util;

import javax.swing.table.DefaultTableModel;

/**
 * @author Fabian Maximilian Thiele
 */
public class CharTableModel extends DefaultTableModel {
	public CharTableModel() {
		super();
	}
	
	/* (non-Javadoc)
	 * @see javax.swing.table.DefaultTableModel#isCellEditable(int, int)
	 */
	public boolean isCellEditable(int row, int column) {
		if(column < 3)
			return false;
		else
			return true;
	}
	
	public void removeAllRows() {
		int cnt = getRowCount();
		for(int i=0; i<cnt; i++) {
			removeRow(0);
		}
	}
}
