Author: ulhume
Date: 2008-08-02 13:14:20 +0200 (Sat, 02 Aug 2008)
New Revision: 1443

Removed:
   
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/DeprecatedHelloWorldGadget.java
Modified:
   
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/HelloWorldGadget.java
Log:
Removed deprecated call

Deleted: 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/DeprecatedHelloWorldGadget.java
===================================================================
--- 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/DeprecatedHelloWorldGadget.java
       2008-08-02 11:13:50 UTC (rev 1442)
+++ 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/DeprecatedHelloWorldGadget.java
       2008-08-02 11:14:20 UTC (rev 1443)
@@ -1,106 +0,0 @@
-/* This file is part of "TuxDroid Gadget Java API Samples".
- *    Copyright 2008, kysoh
- *    Author : Yoran Brault
- *    eMail  : [EMAIL PROTECTED] (remove _bad_ before sending an email)
- *    Site   : http://www.kysoh.com/
- *
- * "TuxDroid Gadget Java API Samples" is free software; you can redistribute 
it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * "TuxDroid Gadget Java API Samples" is distributed in the hope that it will 
be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with "TuxDroid Gadget Java API Samples"; if not, write to the 
Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package net.karmaLab.tuxDroid.gadgets;
-
-import java.io.IOException;
-
-import com.kysoh.tuxdroid.gadget.framework.gadget.SimpleGadget;
-import com.kysoh.tuxdroid.gadget.framework.gadget.SimpleGadgetConfiguration;
-
-/**
- * Simple Hello World gadget.
- * 
- * @author Yoran Brault
- */
-public class DeprecatedHelloWorldGadget extends SimpleGadget {
-
-       /**
-        * This is the storage of our gadget. This configuration is dynamicaly
-        * binded to instance parameters from the control center. You should 
make it
-        * as a plain JavaBean with private fields, getters AND setters in 
order to
-        * have a working binding.
-        */
-       public static class Configuration extends SimpleGadgetConfiguration {
-               private String message = "I'm a verrry simple gadget !!";
-
-               /**
-                * Message value.
-                * 
-                * @return the message
-                */
-               public String getMessage() {
-                       return message;
-               }
-
-               /**
-                * Change the message to notify after the "Hello"
-                * 
-                * @param message
-                *            the message to set
-                */
-               public void setMessage(String message) {
-                       this.message = message;
-               }
-
-       }
-
-       /**
-        * The main class is here to boot the gadget. You can use this in a
-        * stand-alone version too.
-        * 
-        * @param args
-        * @throws InterruptedException
-        * @throws IOException
-        */
-       public static void main(String[] args) throws InterruptedException, 
IOException {
-               new DeprecatedHelloWorldGadget().boot();
-       }
-
-       /**
-        * This field host our configuration.
-        */
-       private Configuration configuration;
-
-       /**
-        * This method should be overiden in order to give a feature to the 
gadget.
-        * You should leave this as soon as possible !!
-        * 
-        * @see com.kysoh.tuxdroid.gadget.framework.gadget.SimpleGadget#start()
-        */
-       @Override
-       public void start() {
-               speak("Hello World : " + configuration.getMessage());
-       }
-
-       /**
-        * This method should be overiden in order to initialize the gadget. 
Don't
-        * call any ancester method except the setConfguration method
-        * 
-        * @see com.kysoh.tuxdroid.gadget.framework.gadget.SimpleGadget#start()
-        */
-       @Override
-       protected void initialize() {
-               configuration = new Configuration();
-               setConfiguration(configuration);
-       }
-}

Modified: 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/HelloWorldGadget.java
===================================================================
--- 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/HelloWorldGadget.java
 2008-08-02 11:13:50 UTC (rev 1442)
+++ 
software_suite_v2/software/gadgets/DemosGadgets/tuxdroid-gadget-java-samples/trunk/tuxdroid-gadget-java-samples/sources/net/karmaLab/tuxDroid/gadgets/HelloWorldGadget.java
 2008-08-02 11:14:20 UTC (rev 1443)
@@ -73,7 +73,7 @@
         * @throws IOException
         */
        public static void main(String[] args) throws InterruptedException, 
IOException {
-               new HelloWorldGadget().boot(new Configuration());
+               new HelloWorldGadget().boot(args, new Configuration());
        }
 
        /**


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to