void (boolean editable) { if (controller != null) { if (editable && (controller instanceof EditableTC)) { return; } if (!editable && (controller instanceof NonEditableTC)) { return; } controller.detach(); } if (editable) { controller = new EditableTC(); } else { controller = new NonEditableTC(); } updateParser(); }