in client/src/main/java/org/apache/hupa/client/HupaController.java [118:143]
private void adjustLayout(PlaceChangeEvent event) {
Place place = event.getNewPlace();
if (place instanceof ComposePlace) {
ComposePlace here = (ComposePlace) place;
if (here.getParameters() != null) {
hupaLayout.switchTo(HupaLayout.LAYOUT_COMPOSE);
} else {
//FIXME using configure one
if(GWT.isProdMode()){
placeController.goTo(new FolderPlace("INBOX"));
}else{
placeController.goTo(new FolderPlace("Mock-Inbox"));
}
}
} else if (place instanceof ContactPlace) {
hupaLayout.switchTo(HupaLayout.LAYOUT_CONTACT);
} else if (place instanceof SettingPlace) {
hupaLayout.switchTo(HupaLayout.LAYOUT_SETTING);
SettingPlace sp = (SettingPlace)place;
hupaLayout.arrangeSettingLayout(sp);
} else if(place instanceof HupaPlace){
hupaLayout.switchTo(HupaLayout.LAYOUT_MESSAGE);
} else {
return;
}
}