private void updateArrivalsAndDeparturePanel(ArrivalAndDepartureBean bean) {
long now = System.currentTimeMillis();
TripBean trip = bean.getTrip();
RouteBean route = trip.getRoute();
String routeName = RoutePresenter.getNameForRoute(route);
_arrivalsAndDeparturesTable.setText(1, 0, routeName);
if (RoutePresenter.isRouteNameLong(routeName))
_arrivalsAndDeparturesTable.getCellFormatter().addStyleName(1, 0,
_stopCss.arrivalsRouteLongNameEntry());
DivPanel divPanel = new DivPanel();
DivPanel destinationPanel = new DivPanel(
_stopCss.arrivalsDestinationEntry());
divPanel.add(destinationPanel);
String href = "trip.action?id=" + trip.getId() + "&stop="
+ bean.getStop().getId();
destinationPanel.add(new Anchor(trip.getTripHeadsign(), href));
DivPanel timeAndStatusPanel = new DivPanel(_stopCss.arrivalsTimePanel());
divPanel.add(timeAndStatusPanel);
String time = _timeFormat.format(new Date(bean.computeBestDepartureTime()));
timeAndStatusPanel.add(new SpanWidget(time, _stopCss.arrivalsTimeEntry()));