Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 13 → Rev 14

/src/org/tela_botanica/del/client/history/ApplicationHistoryChangeHandler.java
File deleted
/src/org/tela_botanica/del/client/history/NavigationStatesConstants.java
File deleted
/src/org/tela_botanica/del/client/history/GestionnaireHistorique.java
New file
0,0 → 1,31
package org.tela_botanica.del.client.history;
 
import org.tela_botanica.del.client.vues.rechercheobservations.ObservationRecherchePresenteur;
 
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.ui.RootPanel;
 
/**
* @author Benjamin
*
*/
public class GestionnaireHistorique implements
ValueChangeHandler<String> {
 
public void onValueChange(ValueChangeEvent<String> event) {
 
if (event.getValue().equals(ConstantesNavigation.MAIN_PAGE)
|| event.getValue().equals("")) {
RootPanel.get().clear();
new ObservationRecherchePresenteur().go(RootPanel.get());
}
 
else if (event.getValue().equals(
ConstantesNavigation.SEARCH_IMAGES_PAGE)) {
RootPanel.get().clear();
new ObservationRecherchePresenteur().go(RootPanel.get());
}
 
}
}
/src/org/tela_botanica/del/client/history/ConstantesNavigation.java
New file
0,0 → 1,10
package org.tela_botanica.del.client.history;
 
public class ConstantesNavigation {
 
public static final String MAIN_PAGE = "main_page";
public static final String SEARCH_IMAGES_PAGE = "search_images_page";
public static final String VALIDATION_PAGE = "validation_page";
}