Package org.xrace.view.common.identification.personne

Examples of org.xrace.view.common.identification.personne.PersonneSelectDataViewPanel


      private static final long serialVersionUID = 1L;

      @Override
      protected Component createDataView(String id, List<Personne> objects)
      {
        return new PersonneSelectDataViewPanel(id, objects, false,
            false)
        {
          private static final long serialVersionUID = 1602379139522901958L;

          @Override
View Full Code Here


  };

  private void createComponents()
  {
    PersonneSelectDataViewPanel personView = new PersonneSelectDataViewPanel(
        "personnes", membresClub, false, true)
    {
      private static final long serialVersionUID = 7254011787446654723L;

      @Override
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected Component createDataView(String id, List<Personne> objects)
      {
        return new PersonneSelectDataViewPanel(id, objects)
        {
          private static final long serialVersionUID = 1602379139522901958L;

          @Override
          protected void onSelect(final Personne personne)
View Full Code Here

    }

    this.add(new Label("description", "Veuillez choisir la " + texteVar
        + " personne."));
    this.add(new FeedbackPanel("feedback"));
    this.add(new PersonneSelectDataViewPanel("personnes", getMergeContext()
        .getPersonneSelectList())
    {

      /**
       *
 
View Full Code Here

    createComponents();
  }

  private void createComponents()
  {
    this.add(new PersonneSelectDataViewPanel("personnes")
    {
      private static final long serialVersionUID = 1923457681561751476L;

      @Override
      protected void onSelect(final Personne selectedPersonne)
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected Component createDataView(String id, List<Personne> objects)
      {
        return new PersonneSelectDataViewPanel(id, objects)
        {
          private static final long serialVersionUID = 1602379139522901958L;

          @Override
          protected void onSelect(final Personne personne)
View Full Code Here

    createComponents();
  }

  private void createComponents()
  {
    this.add(new PersonneSelectDataViewPanel("personnes")
    {
      private static final long serialVersionUID = 7254011787446654723L;

      @Override
      protected void onSelect(final Personne selectedPersonne)
View Full Code Here

      protected void populateItem(final ListItem item)
      {
        final List<Personne> list = (List<Personne>) item
            .getModelObject();

        item.add(new PersonneSelectDataViewPanel("similaires", list)
        {
          private static final long serialVersionUID = -2178223055028629029L;

          @Override
          protected void onSelect(final Personne personne)
View Full Code Here

      List<Compte> coachs = this.compteService.findCoachByClub(club);
      List<Personne> personnes = new ArrayList();
      for (Compte coach : coachs)
        personnes.add(coach.getPersonne());

      PersonneSelectDataViewPanel personView = new PersonneSelectDataViewPanel(
          "coachs", personnes, false, true)
      {
        private static final long serialVersionUID = 7254011787446654723L;

        @SpringBean
        private CompteService compteService;

        @Override
        protected void onSelect(final Personne selectedPersonne)
        {
          this.setResponsePage(new PersonneUpdatePage(
              selectedPersonne, this.getPage()));
        }

        @Override
        protected void onDelete(final Personne selectedPersonne)
        {
          Compte compte = this.compteService
              .findByPersonne(selectedPersonne);
          compte.setCoachOf(null);
          this.compteService.save(compte);
          this.setResponsePage(new ClubUpdatePage(club, false, origin));
        }
      };

      this.add(new Label("labelTitre", "Modifier un club"));

      if (personnes.size() > 0)
      {
        this.add(new Label("labelTitreEntraineur",
            "Liste des entraîneurs de ce club"));
      }
      else
      {
        this.add(new Label("labelTitreEntraineur",
            "Il n'y a aucun entraîneur pour ce club"));
        personView.setVisible(false);
      }
      this.add(personView);
    }

    this.add(new Button("ok")
View Full Code Here

    createComponents();
  }

  private void createComponents()
  {
    this.add(new PersonneSelectDataViewPanel("personnes")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSelect(final Personne personne)
View Full Code Here

TOP

Related Classes of org.xrace.view.common.identification.personne.PersonneSelectDataViewPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.