PlacesChangedState pcs = (PlacesChangedState) state;
PagedResultsModel model = pcs.getModel();
if (model.getSelectedResult() == null)
setVisible(true);
} else if (state instanceof SelectedPlaceChangedState) {
SelectedPlaceChangedState pcs = (SelectedPlaceChangedState) state;
if (pcs.getSelectedResult() == null) {
setVisible(true);
}
} else if (state instanceof TripPlansState) {
setVisible(false);
}