src/horaris/HoraroTransporta.java
changeset 10 757b42639637
parent 9 9f8e342f193e
child 12 3932322b7d83
equal deleted inserted replaced
9:9f8e342f193e 10:757b42639637
    40 
    40 
    41 		tagoj = radiko.getNode("Dies");
    41 		tagoj = radiko.getNode("Dies");
    42 		lokoj = radiko.getNode("Llocs");
    42 		lokoj = radiko.getNode("Llocs");
    43 		sencoj = radiko.getNode("Sentits");
    43 		sencoj = radiko.getNode("Sentits");
    44 
    44 
    45 		try {
       
    46 			show();
       
    47 		} catch (Exception e)
       
    48 		{
       
    49 			System.err.println("Cannot create form: " + e);
       
    50 			e.printStackTrace();
       
    51 		}
       
    52 	}
       
    53 
       
    54 	public void show()
       
    55 	{
       
    56 		myform = new Form("Cerca");
    45 		myform = new Form("Cerca");
    57 
    46 
    58 		/* Items */
    47 		/* Items */
    59 		ftagoj = new ChoiceGroup("Dia", ChoiceGroup.MULTIPLE);
    48 		ftagoj = new ChoiceGroup("Dia", ChoiceGroup.MULTIPLE);
    60 		addTagoj(ftagoj);
    49 		addTagoj(ftagoj);
    80 		cmd_malantauxen = new Command("Enrera", Command.BACK, 0);
    69 		cmd_malantauxen = new Command("Enrera", Command.BACK, 0);
    81 		myform.addCommand(cmd_sercxi);
    70 		myform.addCommand(cmd_sercxi);
    82 		myform.addCommand(cmd_malantauxen);
    71 		myform.addCommand(cmd_malantauxen);
    83 		myform.setCommandListener(this);
    72 		myform.setCommandListener(this);
    84 		myform.setItemStateListener(this);
    73 		myform.setItemStateListener(this);
       
    74 
       
    75 		show();
       
    76 	}
       
    77 
       
    78 	public void show()
       
    79 	{
       
    80 		mytimelist = null;
    85 		Main.display.setCurrent(myform);
    81 		Main.display.setCurrent(myform);
    86 	}
    82 	}
    87 
    83 
    88 	private void addTagoj(ChoiceGroup g)
    84 	private void addTagoj(ChoiceGroup g)
    89 	{
    85 	{