Search in sources :

Example 1 with CtrCandShowHistoWindow

use of fr.univlorraine.ecandidat.views.windows.CtrCandShowHistoWindow in project esup-ecandidat by EsupPortail.

the class CandidatureCtrCandController method showHistoAvis.

/**
 * Voir l'historique des avis d'une candidature
 * @param candidature
 * @param changeCandidatureWindowListener
 */
public void showHistoAvis(final Candidature candidature, final List<DroitFonctionnalite> listeDroit, final ChangeCandidatureWindowListener changeCandidatureWindowListener) {
    final CtrCandShowHistoWindow showHistoWindow = new CtrCandShowHistoWindow(candidature, listeDroit);
    showHistoWindow.addDeleteAvisWindowListener(new DeleteAvisWindowListener() {

        @Override
        public void delete(final Candidature candidature) {
            if (changeCandidatureWindowListener != null) {
                final List<Candidature> listeCandidature = new ArrayList<>();
                listeCandidature.add(candidature);
                changeCandidatureWindowListener.action(listeCandidature);
            }
        }
    });
    UI.getCurrent().addWindow(showHistoWindow);
}
Also used : DeleteAvisWindowListener(fr.univlorraine.ecandidat.views.windows.CtrCandShowHistoWindow.DeleteAvisWindowListener) CentreCandidature(fr.univlorraine.ecandidat.entities.ecandidat.CentreCandidature) TypeDecisionCandidature(fr.univlorraine.ecandidat.entities.ecandidat.TypeDecisionCandidature) Candidature(fr.univlorraine.ecandidat.entities.ecandidat.Candidature) List(java.util.List) ArrayList(java.util.ArrayList) CtrCandShowHistoWindow(fr.univlorraine.ecandidat.views.windows.CtrCandShowHistoWindow)

Aggregations

Candidature (fr.univlorraine.ecandidat.entities.ecandidat.Candidature)1 CentreCandidature (fr.univlorraine.ecandidat.entities.ecandidat.CentreCandidature)1 TypeDecisionCandidature (fr.univlorraine.ecandidat.entities.ecandidat.TypeDecisionCandidature)1 CtrCandShowHistoWindow (fr.univlorraine.ecandidat.views.windows.CtrCandShowHistoWindow)1 DeleteAvisWindowListener (fr.univlorraine.ecandidat.views.windows.CtrCandShowHistoWindow.DeleteAvisWindowListener)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1