Subversion Repositories eFlore/Applications.del

Rev

Rev 73 | Blame | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.cache;

import java.util.List;

import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.Observation;

public class CacheClient {

        private Observation currentObservation;
        
        private Image imageCourante;

        private String taxonPourRechercheEflore;

        private List<Image> images;

        private int numPageRechercheImage = 0;

        private int pasPageRechercheImage = 10;

        private static CacheClient instance;

        private CacheClient() {
                instance = this;
        }

        public Observation getCurrentObservation() {
                return currentObservation;
        }

        public void setCurrentObservation(Observation currentObservation) {
                this.currentObservation = currentObservation;
        }

        public static CacheClient getInstance() {
                if (instance == null) {
                        instance = new CacheClient();
                }
                return instance;
        }

        public String getTaxonPourRechercheEflore() {
                return taxonPourRechercheEflore;
        }

        public void setTaxonPourRechercheEflore(String taxonPourRechercheEflore) {
                this.taxonPourRechercheEflore = taxonPourRechercheEflore;
        }

        public int getNumPageRechercheImage() {
                return numPageRechercheImage;
        }

        public void setNumPageRechercheImage(int numPageRechercheImage) {
                this.numPageRechercheImage = numPageRechercheImage;
        }

        public int getPasPageRechercheImage() {
                return pasPageRechercheImage;
        }

        public void setPasPageRechercheImage(int pasPageRechercheImage) {
                this.pasPageRechercheImage = pasPageRechercheImage;
        }

        public List<Image> getImages() {
                return images;
        }

        public void setImages(List<Image> images) {
                this.images = images;
        }

        public Image getImageCourante() {
                return imageCourante;
        }

        public void setImageCourante(Image imageCourante) {
                this.imageCourante = imageCourante;
        }

}