/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java
ViewVC logotype

Annotation of /android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 364 - (hide annotations) (download)
Wed Sep 30 06:02:03 2009 UTC (14 years, 8 months ago) by torben
File size: 1652 byte(s)
Code sync
1 torben 362 package dk.thoerup.traininfo;
2    
3     import android.app.ListActivity;
4 torben 364 import android.content.Intent;
5 torben 362 import android.os.Bundle;
6     import android.widget.TextView;
7    
8     public class TimetableList extends ListActivity {
9 torben 364
10     DepartureBean departure;
11    
12 torben 362 @Override
13     protected void onCreate(Bundle savedInstanceState) {
14     super.onCreate(savedInstanceState);
15     setContentView(R.layout.timetablelist);
16 torben 364
17     Intent launchedBy = getIntent();
18     departure = (DepartureBean) launchedBy.getSerializableExtra("departure");
19    
20     ((TextView)findViewById(R.id.Train)).setText(departure.getTrainNumber());
21     ((TextView)findViewById(R.id.Status)).setText(departure.getStatus());
22     ((TextView)findViewById(R.id.Note)).setText(departure.getNote());
23     ((TextView)findViewById(R.id.Updated)).setText(departure.getLastUpdateString());
24 torben 362 }
25 torben 364
26     /* case DLG_DETAILS:
27 torben 362 DepartureBean currentDeparture = departures.get(selectedItemId);
28     ((TextView)dialog.findViewById(R.id.Time)).setText(currentDeparture.getTime());
29     ((TextView)dialog.findViewById(R.id.Train)).setText(currentDeparture.getTrainNumber());
30     ((TextView)dialog.findViewById(R.id.Destination)).setText( currentDeparture.getDestination());
31     ((TextView)dialog.findViewById(R.id.Origin)).setText(currentDeparture.getOrigin());
32     ((TextView)dialog.findViewById(R.id.Location)).setText(currentDeparture.getLocation());
33     ((TextView)dialog.findViewById(R.id.Updated)).setText(currentDeparture.getLastUpdateString());
34     ((TextView)dialog.findViewById(R.id.Status)).setText(currentDeparture.getStatus());
35     ((TextView)dialog.findViewById(R.id.Note)).setText(currentDeparture.getNote());
36     detailsDialog = dialog;
37     break;
38    
39     */
40     }

  ViewVC Help
Powered by ViewVC 1.1.20