src/horaris/HoraroTransporta.java
changeset 9 9f8e342f193e
parent 8 88f4defbb1db
child 10 757b42639637
equal deleted inserted replaced
8:88f4defbb1db 9:9f8e342f193e
    63 
    63 
    64 		fsenco = new ChoiceGroup("Sentit", ChoiceGroup.EXCLUSIVE);
    64 		fsenco = new ChoiceGroup("Sentit", ChoiceGroup.EXCLUSIVE);
    65 		addSencoj(fsenco);
    65 		addSencoj(fsenco);
    66 		myform.append(fsenco);
    66 		myform.append(fsenco);
    67 
    67 
    68 		fkomenco = new ChoiceGroup("Origen", ChoiceGroup.POPUP);
    68 		fkomenco = new ChoiceGroup("Origen", ChoiceGroup.EXCLUSIVE);
    69 		addLokoj(fkomenco);
    69 		addLokoj(fkomenco);
    70 		myform.append(fkomenco);
    70 		myform.append(fkomenco);
    71 
    71 
    72 		ffino = new ChoiceGroup("Destí", ChoiceGroup.POPUP);
    72 		ffino = new ChoiceGroup("Destí", ChoiceGroup.EXCLUSIVE);
    73 		addLokoj(ffino);
    73 		addLokoj(ffino);
    74 		myform.append(ffino);
    74 		myform.append(ffino);
    75 
    75 
    76 		defaultKomencoFino();
    76 		defaultKomencoFino();
    77 
    77 
   170 				continue;
   170 				continue;
   171 
   171 
   172 			/* Krei la informon aldonan */
   172 			/* Krei la informon aldonan */
   173 			gtmp = veturo.getNode("Comentari");
   173 			gtmp = veturo.getNode("Comentari");
   174 			Vector comments = new Vector();
   174 			Vector comments = new Vector();
   175 			for (int j = 0; j < gtmp.size(); j++)
   175 			if (gtmp != null)
   176 			{
   176 			{
   177 				comments.addElement(gtmp.get(j).getName());
   177 				for (int j = 0; j < gtmp.size(); j++)
       
   178 				{
       
   179 					comments.addElement(gtmp.get(j).getName());
       
   180 				}
   178 			}
   181 			}
   179 
   182 
   180 			/* Trovita! */
   183 			/* Trovita! */
   181 			addSortedTime(elirtempo, alventempo, comments);
   184 			addSortedTime(elirtempo, alventempo, comments);
   182 		}
   185 		}
       
   186 
       
   187 		/* Free memory */
       
   188 		tmpTempoj = null;
   183 	}
   189 	}
   184 	
   190 	
   185 	private Tempo str2Tempo(String s)
   191 	private Tempo str2Tempo(String s)
   186 	{
   192 	{
   187 		int i = s.indexOf('-');
   193 		int i = s.indexOf('-');