<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Fjavax.microedition.lcdui%2FCommand</id>
		<title>Java by API/javax.microedition.lcdui/Command - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Fjavax.microedition.lcdui%2FCommand"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/javax.microedition.lcdui/Command&amp;action=history"/>
		<updated>2026-04-23T09:07:25Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/javax.microedition.lcdui/Command&amp;diff=2737&amp;oldid=prev</id>
		<title> в 17:43, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/javax.microedition.lcdui/Command&amp;diff=2737&amp;oldid=prev"/>
				<updated>2010-05-31T17:43:49Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:43, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/javax.microedition.lcdui/Command&amp;diff=2738&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/javax.microedition.lcdui/Command&amp;diff=2738&amp;oldid=prev"/>
				<updated>2010-05-31T14:49:11Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== int javax.microedition.lcdui.Command.SCREEN ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
/* License&lt;br /&gt;
 * &lt;br /&gt;
 * Copyright 1994-2004 Sun Microsystems, Inc. All Rights Reserved.&lt;br /&gt;
 * &lt;br /&gt;
 * Redistribution and use in source and binary forms, with or without&lt;br /&gt;
 * modification, are permitted provided that the following conditions&lt;br /&gt;
 * are met:&lt;br /&gt;
 *  &lt;br /&gt;
 *  * Redistribution of source code must retain the above copyright notice,&lt;br /&gt;
 *      this list of conditions and the following disclaimer.&lt;br /&gt;
 * &lt;br /&gt;
 *  * Redistribution in binary form must reproduce the above copyright notice,&lt;br /&gt;
 *      this list of conditions and the following disclaimer in the&lt;br /&gt;
 *      documentation and/or other materials provided with the distribution.&lt;br /&gt;
 * &lt;br /&gt;
 * Neither the name of Sun Microsystems, Inc. or the names of contributors&lt;br /&gt;
 * may be used to endorse or promote products derived from this software&lt;br /&gt;
 * without specific prior written permission.&lt;br /&gt;
 *  &lt;br /&gt;
 * This software is provided &amp;quot;AS IS,&amp;quot; without a warranty of any kind. ALL&lt;br /&gt;
 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING&lt;br /&gt;
 * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE&lt;br /&gt;
 * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. (&amp;quot;SUN&amp;quot;)&lt;br /&gt;
 * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE&lt;br /&gt;
 * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS&lt;br /&gt;
 * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST&lt;br /&gt;
 * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,&lt;br /&gt;
 * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY&lt;br /&gt;
 * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,&lt;br /&gt;
 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.&lt;br /&gt;
 *  &lt;br /&gt;
 * You acknowledge that this software is not designed, licensed or intended&lt;br /&gt;
 * for use in the design, construction, operation or maintenance of any&lt;br /&gt;
 * nuclear facility. &lt;br /&gt;
 */&lt;br /&gt;
import javax.microedition.lcdui.rumand;&lt;br /&gt;
import javax.microedition.lcdui.rumandListener;&lt;br /&gt;
import javax.microedition.lcdui.Display;&lt;br /&gt;
import javax.microedition.lcdui.Displayable;&lt;br /&gt;
import javax.microedition.lcdui.TextBox;&lt;br /&gt;
import javax.microedition.midlet.MIDlet;&lt;br /&gt;
// A first MIDlet with simple text and a few commands.&lt;br /&gt;
public class Main extends MIDlet implements CommandListener {&lt;br /&gt;
  // The exit, info, and buy commands&lt;br /&gt;
  private Command exitCommand;&lt;br /&gt;
  private Command infoCommand;&lt;br /&gt;
  private Command buyCommand;&lt;br /&gt;
  // The display for this MIDlet&lt;br /&gt;
  private Display display;&lt;br /&gt;
  public Main() {&lt;br /&gt;
    display = Display.getDisplay(this);&lt;br /&gt;
    exitCommand = new Command(&amp;quot;Exit&amp;quot;, Command.SCREEN, 1);&lt;br /&gt;
    infoCommand = new Command(&amp;quot;Info&amp;quot;, Command.SCREEN, 2);&lt;br /&gt;
    buyCommand = new Command(&amp;quot;Buy&amp;quot;, Command.SCREEN, 2);&lt;br /&gt;
  }&lt;br /&gt;
  // Start the MIDlet by creating the TextBox and&lt;br /&gt;
  // associating the exit command and listener.&lt;br /&gt;
  public void startApp() {&lt;br /&gt;
    TextBox t = new TextBox(&amp;quot;FirstMIDlet&amp;quot;, &amp;quot;Welcome to MIDP Programming&amp;quot;, 256,&lt;br /&gt;
        0);&lt;br /&gt;
    t.addCommand(exitCommand);&lt;br /&gt;
    t.addCommand(infoCommand);&lt;br /&gt;
    t.addCommand(buyCommand);&lt;br /&gt;
    t.setCommandListener(this);&lt;br /&gt;
    display.setCurrent(t);&lt;br /&gt;
  }&lt;br /&gt;
  // Pause is a no-op because there are no background&lt;br /&gt;
  // activities or record stores to be closed.&lt;br /&gt;
  public void pauseApp() {&lt;br /&gt;
  }&lt;br /&gt;
  // Destroy must cleanup everything not handled&lt;br /&gt;
  // by the garbage collector.&lt;br /&gt;
  // In this case there is nothing to cleanup.&lt;br /&gt;
  public void destroyApp(boolean unconditional) {&lt;br /&gt;
  }&lt;br /&gt;
  // Respond to commands. Here we are only implementing&lt;br /&gt;
  // the exit command. In the exit command, cleanup and&lt;br /&gt;
  // notify that the MIDlet has been destroyed.&lt;br /&gt;
  public void commandAction(Command c, Displayable s) {&lt;br /&gt;
    if (c == exitCommand) {&lt;br /&gt;
      destroyApp(false);&lt;br /&gt;
      notifyDestroyed();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== new Command(String label, int commandType, int priority) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
/* License&lt;br /&gt;
 * &lt;br /&gt;
 * Copyright 1994-2004 Sun Microsystems, Inc. All Rights Reserved.&lt;br /&gt;
 * &lt;br /&gt;
 * Redistribution and use in source and binary forms, with or without&lt;br /&gt;
 * modification, are permitted provided that the following conditions&lt;br /&gt;
 * are met:&lt;br /&gt;
 *  &lt;br /&gt;
 *  * Redistribution of source code must retain the above copyright notice,&lt;br /&gt;
 *      this list of conditions and the following disclaimer.&lt;br /&gt;
 * &lt;br /&gt;
 *  * Redistribution in binary form must reproduce the above copyright notice,&lt;br /&gt;
 *      this list of conditions and the following disclaimer in the&lt;br /&gt;
 *      documentation and/or other materials provided with the distribution.&lt;br /&gt;
 * &lt;br /&gt;
 * Neither the name of Sun Microsystems, Inc. or the names of contributors&lt;br /&gt;
 * may be used to endorse or promote products derived from this software&lt;br /&gt;
 * without specific prior written permission.&lt;br /&gt;
 *  &lt;br /&gt;
 * This software is provided &amp;quot;AS IS,&amp;quot; without a warranty of any kind. ALL&lt;br /&gt;
 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING&lt;br /&gt;
 * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE&lt;br /&gt;
 * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. (&amp;quot;SUN&amp;quot;)&lt;br /&gt;
 * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE&lt;br /&gt;
 * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS&lt;br /&gt;
 * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST&lt;br /&gt;
 * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,&lt;br /&gt;
 * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY&lt;br /&gt;
 * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,&lt;br /&gt;
 * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.&lt;br /&gt;
 *  &lt;br /&gt;
 * You acknowledge that this software is not designed, licensed or intended&lt;br /&gt;
 * for use in the design, construction, operation or maintenance of any&lt;br /&gt;
 * nuclear facility. &lt;br /&gt;
 */&lt;br /&gt;
import javax.microedition.lcdui.rumand;&lt;br /&gt;
import javax.microedition.lcdui.rumandListener;&lt;br /&gt;
import javax.microedition.lcdui.Display;&lt;br /&gt;
import javax.microedition.lcdui.Displayable;&lt;br /&gt;
import javax.microedition.lcdui.TextBox;&lt;br /&gt;
import javax.microedition.midlet.MIDlet;&lt;br /&gt;
// A first MIDlet with simple text and a few commands.&lt;br /&gt;
public class Main extends MIDlet implements CommandListener {&lt;br /&gt;
  // The exit, info, and buy commands&lt;br /&gt;
  private Command exitCommand;&lt;br /&gt;
  private Command infoCommand;&lt;br /&gt;
  private Command buyCommand;&lt;br /&gt;
  // The display for this MIDlet&lt;br /&gt;
  private Display display;&lt;br /&gt;
  public Main() {&lt;br /&gt;
    display = Display.getDisplay(this);&lt;br /&gt;
    exitCommand = new Command(&amp;quot;Exit&amp;quot;, Command.SCREEN, 1);&lt;br /&gt;
    infoCommand = new Command(&amp;quot;Info&amp;quot;, Command.SCREEN, 2);&lt;br /&gt;
    buyCommand = new Command(&amp;quot;Buy&amp;quot;, Command.SCREEN, 2);&lt;br /&gt;
  }&lt;br /&gt;
  // Start the MIDlet by creating the TextBox and&lt;br /&gt;
  // associating the exit command and listener.&lt;br /&gt;
  public void startApp() {&lt;br /&gt;
    TextBox t = new TextBox(&amp;quot;FirstMIDlet&amp;quot;, &amp;quot;Welcome to MIDP Programming&amp;quot;, 256,&lt;br /&gt;
        0);&lt;br /&gt;
    t.addCommand(exitCommand);&lt;br /&gt;
    t.addCommand(infoCommand);&lt;br /&gt;
    t.addCommand(buyCommand);&lt;br /&gt;
    t.setCommandListener(this);&lt;br /&gt;
    display.setCurrent(t);&lt;br /&gt;
  }&lt;br /&gt;
  // Pause is a no-op because there are no background&lt;br /&gt;
  // activities or record stores to be closed.&lt;br /&gt;
  public void pauseApp() {&lt;br /&gt;
  }&lt;br /&gt;
  // Destroy must cleanup everything not handled&lt;br /&gt;
  // by the garbage collector.&lt;br /&gt;
  // In this case there is nothing to cleanup.&lt;br /&gt;
  public void destroyApp(boolean unconditional) {&lt;br /&gt;
  }&lt;br /&gt;
  // Respond to commands. Here we are only implementing&lt;br /&gt;
  // the exit command. In the exit command, cleanup and&lt;br /&gt;
  // notify that the MIDlet has been destroyed.&lt;br /&gt;
  public void commandAction(Command c, Displayable s) {&lt;br /&gt;
    if (c == exitCommand) {&lt;br /&gt;
      destroyApp(false);&lt;br /&gt;
      notifyDestroyed();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>