} else if (e.getActionCommand().equals("filter_callinfailed")) { JFritz.setProperty("filter.callinfailed", Boolean .toString(!callinfailedFilterButton.isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals("filter_comment")) { JFritz.setProperty("filter.comment", Boolean .toString(!commentFilterButton.isSelected())); JFritz.setProperty("filter.comment.text", ""); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals( "filter_callinfailed_allWithoutComment")) { setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals( "filter_callinfailed_allWithoutCommentLastWeek")) { setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS_LAST_WEEK); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals("filter_callout")) { JFritz.setProperty("filter.callout", Boolean .toString(!calloutFilterButton.isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_number") { JFritz.setProperty("filter.number", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_fixed") { JFritz.setProperty("filter.fixed", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_handy") { JFritz.setProperty("filter.handy", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_date") { JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); setDateFilterFromSelection(DATEFILTER_SELECTION); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_thisday") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); setDateFilterFromSelection(DATEFILTER_TODAY); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_yesterday") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); setDateFilterFromSelection(DATEFILTER_YESTERDAY); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_thismonth") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); setDateFilterFromSelection(DATEFILTER_THIS_MONTH); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_lastmonth") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); setDateFilterFromSelection(DATEFILTER_LAST_MONTH); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_sip") { JFritz.setProperty("filter.sip", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); setSipProviderFilterFromSelection(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_callbycall") { JFritz.setProperty("filter.callbycall", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); setCallByCallProviderFilterFromSelection(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "clearFilter") { clearAllFilter(); } else if (e.getActionCommand() == "delete_entry") { jfritz.getCallerlist().removeEntries(); } else if (e.getActionCommand().equals("reverselookup")) { doReverseLookup(); } else if (e.getActionCommand().equals("export_csv")) { jfritz.getJframe().exportCallerListToCSV(); } else if (e.getActionCommand().equals("export_xml")) { jfritz.getJframe().exportCallerListToXML(); } else if (e.getActionCommand().equals("import_callerlist_csv")) { jfritz.getJframe().importCallerlistCSV(); } else if (e.getActionCommand().equals("clipboard_number")) { Call call = jfritz.getCallerlist().getSelectedCall(); if (call!=null) { PhoneNumber number = call.getPhoneNumber(); if ((number!=null)&&(call!=null)) JFritzClipboard.copy(number.convertToNationalNumber()); }  } else if (e.getActionCommand().equals("clipboard_adress")) { Call call = jfritz.getCallerlist().getSelectedCall(); if(call!=null) { Person person = call.getPerson(); if(person!=null) JFritzClipboard.copy(person.getAddress()); }
} else if (e.getActionCommand().equals("filter_callinfailed")) { JFritz.setProperty("filter.callinfailed", Boolean .toString(!callinfailedFilterButton.isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals("filter_comment")) { JFritz.setProperty("filter.comment", Boolean .toString(!commentFilterButton.isSelected())); JFritz.setProperty("filter.comment.text", ""); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals( "filter_callinfailed_allWithoutComment")) { setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals( "filter_callinfailed_allWithoutCommentLastWeek")) { setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS_LAST_WEEK); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand().equals("filter_callout")) { JFritz.setProperty("filter.callout", Boolean .toString(!calloutFilterButton.isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_number") { JFritz.setProperty("filter.number", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_fixed") { JFritz.setProperty("filter.fixed", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_handy") { JFritz.setProperty("filter.handy", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().updateFilter(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_date") { JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); jfritz.getCallerlist().getDateFilter().setFilter(DateFilter.DATEFILTER_SELECTION); setDateFilterText(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_thisday") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); jfritz.getCallerlist().getDateFilter().setFilter(DateFilter.DATEFILTER_TODAY); setDateFilterText(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_yesterday") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); jfritz.getCallerlist().getDateFilter().setFilter(DateFilter.DATEFILTER_YESTERDAY); setDateFilterText(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_thismonth") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); jfritz.getCallerlist().getDateFilter().setFilter(DateFilter.DATEFILTER_THIS_MONTH); setDateFilterText(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "setdatefilter_lastmonth") { dateFilterButton.setSelected(false); JFritz.setProperty("filter.date", Boolean .toString(!dateFilterButton.isSelected())); jfritz.getCallerlist().getDateFilter().setFilter(DateFilter.DATEFILTER_LAST_MONTH); setDateFilterText(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_sip") { JFritz.setProperty("filter.sip", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); jfritz.getCallerlist().getSipFilter().setFilter(0); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "filter_callbycall") { JFritz.setProperty("filter.callbycall", Boolean .toString(!((JToggleButton) e.getSource()).isSelected())); setCallByCallProviderFilterFromSelection(); jfritz.getCallerlist().fireTableStructureChanged(); } else if (e.getActionCommand() == "clearFilter") { clearAllFilter(); } else if (e.getActionCommand() == "delete_entry") { jfritz.getCallerlist().removeEntries(); } else if (e.getActionCommand().equals("reverselookup")) { doReverseLookup(); } else if (e.getActionCommand().equals("export_csv")) { jfritz.getJframe().exportCallerListToCSV(); } else if (e.getActionCommand().equals("export_xml")) { jfritz.getJframe().exportCallerListToXML(); } else if (e.getActionCommand().equals("import_callerlist_csv")) { jfritz.getJframe().importCallerlistCSV(); } else if (e.getActionCommand().equals("clipboard_number")) { Call call = jfritz.getCallerlist().getSelectedCall(); if (call != null) { PhoneNumber number = call.getPhoneNumber(); if ((number != null) && (call != null)) JFritzClipboard.copy(number.convertToNationalNumber()); }  } else if (e.getActionCommand().equals("clipboard_adress")) { Call call = jfritz.getCallerlist().getSelectedCall(); if (call != null) { Person person = call.getPerson(); if (person != null) JFritzClipboard.copy(person.getAddress()); }
	public void actionPerformed(ActionEvent e) {		if (e.getActionCommand().equals("filter_callin")) { //$NON-NLS-1$			JFritz.setProperty("filter.callin", Boolean //$NON-NLS-1$					.toString(!callinFilterButton.isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand().equals("filter_callinfailed")) { //$NON-NLS-1$			JFritz.setProperty("filter.callinfailed", Boolean //$NON-NLS-1$					.toString(!callinfailedFilterButton.isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand().equals("filter_comment")) { //$NON-NLS-1$			JFritz.setProperty("filter.comment", Boolean //$NON-NLS-1$					.toString(!commentFilterButton.isSelected()));			JFritz.setProperty("filter.comment.text", ""); //$NON-NLS-1$,  //$NON-NLS-2$			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand().equals(				"filter_callinfailed_allWithoutComment")) { //$NON-NLS-1$			setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand().equals(				"filter_callinfailed_allWithoutCommentLastWeek")) { //$NON-NLS-1$			setMissedFilter(MISSED_FILTER_WITHOUT_COMMENTS_LAST_WEEK);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand().equals("filter_callout")) { //$NON-NLS-1$			JFritz.setProperty("filter.callout", Boolean //$NON-NLS-1$					.toString(!calloutFilterButton.isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_number") { //$NON-NLS-1$			JFritz.setProperty("filter.number", Boolean //$NON-NLS-1$					.toString(!((JToggleButton) e.getSource()).isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_fixed") { //$NON-NLS-1$			JFritz.setProperty("filter.fixed", Boolean //$NON-NLS-1$					.toString(!((JToggleButton) e.getSource()).isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_handy") { //$NON-NLS-1$			JFritz.setProperty("filter.handy", Boolean //$NON-NLS-1$					.toString(!((JToggleButton) e.getSource()).isSelected()));			jfritz.getCallerlist().updateFilter();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_date") { //$NON-NLS-1$			JFritz.setProperty("filter.date", Boolean //$NON-NLS-1$					.toString(!dateFilterButton.isSelected()));			setDateFilterFromSelection(DATEFILTER_SELECTION);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "setdatefilter_thisday") { //$NON-NLS-1$			dateFilterButton.setSelected(false);			JFritz.setProperty("filter.date", Boolean //$NON-NLS-1$					.toString(!dateFilterButton.isSelected()));			setDateFilterFromSelection(DATEFILTER_TODAY);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "setdatefilter_yesterday") { //$NON-NLS-1$			dateFilterButton.setSelected(false);			JFritz.setProperty("filter.date", Boolean //$NON-NLS-1$					.toString(!dateFilterButton.isSelected()));			setDateFilterFromSelection(DATEFILTER_YESTERDAY);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "setdatefilter_thismonth") { //$NON-NLS-1$			dateFilterButton.setSelected(false);			JFritz.setProperty("filter.date", Boolean //$NON-NLS-1$					.toString(!dateFilterButton.isSelected()));			setDateFilterFromSelection(DATEFILTER_THIS_MONTH);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "setdatefilter_lastmonth") { //$NON-NLS-1$			dateFilterButton.setSelected(false);			JFritz.setProperty("filter.date", Boolean //$NON-NLS-1$					.toString(!dateFilterButton.isSelected()));			setDateFilterFromSelection(DATEFILTER_LAST_MONTH);			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_sip") { //$NON-NLS-1$			JFritz.setProperty("filter.sip", Boolean //$NON-NLS-1$					.toString(!((JToggleButton) e.getSource()).isSelected()));			setSipProviderFilterFromSelection();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "filter_callbycall") { //$NON-NLS-1$			JFritz.setProperty("filter.callbycall", Boolean //$NON-NLS-1$					.toString(!((JToggleButton) e.getSource()).isSelected()));			setCallByCallProviderFilterFromSelection();			jfritz.getCallerlist().fireTableStructureChanged();		} else if (e.getActionCommand() == "clearFilter") { //$NON-NLS-1$			clearAllFilter();		} else if (e.getActionCommand() == "delete_entry") { //$NON-NLS-1$			jfritz.getCallerlist().removeEntries();		} else if (e.getActionCommand().equals("reverselookup")) { //$NON-NLS-1$			doReverseLookup();		} else if (e.getActionCommand().equals("export_csv")) { //$NON-NLS-1$			jfritz.getJframe().exportCallerListToCSV();		} else if (e.getActionCommand().equals("export_xml")) { //$NON-NLS-1$			jfritz.getJframe().exportCallerListToXML();		} else if (e.getActionCommand().equals("import_callerlist_csv")) { //$NON-NLS-1$			jfritz.getJframe().importCallerlistCSV();		} else if (e.getActionCommand().equals("clipboard_number")) { //$NON-NLS-1$        	Call call = jfritz.getCallerlist().getSelectedCall();        	if (call!=null)        	{        		PhoneNumber number = call.getPhoneNumber();        		if ((number!=null)&&(call!=null))        			JFritzClipboard.copy(number.convertToNationalNumber());        	}			//jfritz.getJframe().copyNumberToClipboard();		} else if (e.getActionCommand().equals("clipboard_adress")) { //$NON-NLS-1$        	Call call = jfritz.getCallerlist().getSelectedCall();        	if(call!=null)        	{        		Person person = call.getPerson();        		if(person!=null)        			JFritzClipboard.copy(person.getAddress());        	}			//jfritz.getJframe().copyAddressToClipboard();		}	}