}
private ChangeHandler createChangeHandlerForPermTypeBox(final Map<String, List<String>> perms, final Panel vp, final FormStylePopup pop, final ListBox permTypeBox) {
return new ChangeHandler() {
public void onChange(ChangeEvent event) {
pop.clear();
final String sel = permTypeBox.getItemText( permTypeBox.getSelectedIndex() );
if ( sel.equals( "admin" ) ) { //NON-NLS
createButtonsAndHandlersForAdmin( perms, vp, pop );
} else if ( sel.startsWith( "analyst" ) ) { //NON-NLS
CategoryExplorerWidget cat = createCategoryExplorerWidget( perms, vp, pop, sel );