@Override
	public void setValueAt(Object aValue, int row, int columnIndex) {
		if (row < 0 || row >= filteredData.size()) {
			return;
		}
		PatternInfoRowObject rowObject = filteredData.get(row);
		if (columnIndex == NOTE_COLUMN) {
			rowObject.setNote((String) aValue);
		}
		if (columnIndex == ALIGNMENT_COLUMN) {
			Integer newValue = (Integer) aValue;
			//alignment must be a power of 2
			if (newValue <= 0) {
				rowObject.setAlignment(null);
				return;
			}
			if ((newValue & (newValue - 1)) == 0) {
				rowObject.setAlignment((Integer) aValue);
			}
			else {
				rowObject.setAlignment(null);
			}
		}
	}
Table model for table to display selected patterns
Ghidra/Features/BytePatterns/src/main/java/ghidra/bitpatterns/gui/PatternInfoTableModel.java