Author: jerome
Date: 2009-06-04 09:24:04 +0200 (Thu, 04 Jun 2009)
New Revision: 4743
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-programsTV/trunk/tuxdroid-gadget-programsTV/src/com/kysoh/tvPrograms/gadget/GadgetProgramsTvNl.java
Log:
* Fixed a bug with the Netherland one.
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-programsTV/trunk/tuxdroid-gadget-programsTV/src/com/kysoh/tvPrograms/gadget/GadgetProgramsTvNl.java
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-programsTV/trunk/tuxdroid-gadget-programsTV/src/com/kysoh/tvPrograms/gadget/GadgetProgramsTvNl.java
2009-06-03 14:21:18 UTC (rev 4742)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-programsTV/trunk/tuxdroid-gadget-programsTV/src/com/kysoh/tvPrograms/gadget/GadgetProgramsTvNl.java
2009-06-04 07:24:04 UTC (rev 4743)
@@ -30,22 +30,21 @@
public class GadgetProgramsTvNl extends SimpleGadget<Configuration> implements
ProgramLoadListener{
- SimplePrograms nlPrograms;
+ SimplePrograms nl;
-
/**
- * Handle programs load errors.
+ * Constructor.
*/
@Override
- public void loadError(String url)
+ protected void start() throws Throwable
{
configuration().setTHour(configuration().getTHour());
if(configuration().getGiveAfternoon() ||
configuration().getGiveEvening() ||
configuration().getGiveMorning() ||
configuration().getGiveNowPlaying())
{
- throwMessage("Error while loading the TV program");
- GadgetProgramTV.quitGadget();
+ SimplePrograms.addProgramLoadListener(this);
+ nl = new SimplePrograms(SimplePrograms.Nl,
this.configuration().getChannel());
}
else
{
@@ -53,38 +52,38 @@
GadgetProgramTV.quitGadget();
}
}
+
+ /**
+ * Handle error while loading the tv program.
+ */
+ @Override
+ public void loadError(String url)
+ {
+ throwMessage("Error while loading the TV program");
+ GadgetProgramTV.quitGadget();
+ }
+
/**
- * Handle program loaded event.
+ *Notify that the program is charged.
*/
@Override
- public void loaded(Vector<Program> completeProgram)
+ public void loaded(Vector<Program> completeProgram)
{
try
{
GadgetProgramTV.giveProgram(this.configuration(),
completeProgram, this);
}
- catch(Exception errors)
+ catch(Exception error)
{
- this.loadError(null);
+ ;
}
}
-
- /**
- * Gadget entry point.
- */
- @Override
- protected void start() throws Throwable
- {
- SimplePrograms.addProgramLoadListener(this);
- nlPrograms = new SimplePrograms(SimplePrograms.Nl,
this.configuration().getChannel());
- }
-
/**
- * Main point entry.
+ * Main entry point.
* @param args
*/
public static void main(String[] args)
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn