public void buttonClick(ClickEvent event) {
		final Button source = event.getButton();
		String initialText = "";
		PersonContainer pc = as.getDataSource();
		SearchFilter sf = as.getSf();
		if(source==generate){
			if (sf != null) {
				pc.removeAllContainerFilters();
				pc.addContainerFilter(sf.getPropertyId(), sf.getTerm(),
						true, false);
				for (int i = 0; i < pc.size(); i++) {
					initialText += pc.getIdByIndex(i).getEmail() + ";";
				}
				editor.setValue(initialText);
			} else {
				for (int i = 0; i < pc.size(); i++) {
					initialText += pc.getIdByIndex(i).getEmail() + ";";
				}
				editor.setValue(initialText);
			}
		}else if(source==toExcel){
			exportToExcel(pc,sf);
		}else if(source==close){
			editor.setValue("");
		}else if(source==cb){
			editor.setValue(source.booleanValue()? "enabled" : "disabled");
		}

	}