<?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%2FJ2ME%2FCustomItem</id>
		<title>Java/J2ME/CustomItem - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FJ2ME%2FCustomItem"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/J2ME/CustomItem&amp;action=history"/>
		<updated>2026-04-22T01:52:46Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/J2ME/CustomItem&amp;diff=7261&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/J2ME/CustomItem&amp;diff=7261&amp;oldid=prev"/>
				<updated>2010-06-01T06:37:44Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&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;Версия 06:37, 1 июня 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>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/J2ME/CustomItem&amp;diff=7260&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/J2ME/CustomItem&amp;diff=7260&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== SimpleItem MIDlet ==&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;
Wireless Java 2nd edition &lt;br /&gt;
Jonathan Knudsen&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 1590590775 &lt;br /&gt;
*/&lt;br /&gt;
import javax.microedition.midlet.*;&lt;br /&gt;
import javax.microedition.lcdui.*;&lt;br /&gt;
public class SimpleItemMIDlet extends MIDlet&lt;br /&gt;
    implements CommandListener {&lt;br /&gt;
    &lt;br /&gt;
  public void startApp() {&lt;br /&gt;
    Form form = new Form(&amp;quot;SimpleItemMIDlet&amp;quot;);&lt;br /&gt;
    form.append(new SimpleItem(&amp;quot;SimpleItem&amp;quot;));&lt;br /&gt;
    Command c = new Command(&amp;quot;Exit&amp;quot;, Command.EXIT, 0);&lt;br /&gt;
    form.addCommand(c);&lt;br /&gt;
    form.setCommandListener(this);&lt;br /&gt;
    Display.getDisplay(this).setCurrent(form);&lt;br /&gt;
  }&lt;br /&gt;
  public void pauseApp() {}&lt;br /&gt;
  public void destroyApp(boolean unconditional) {}&lt;br /&gt;
  &lt;br /&gt;
  public void commandAction(Command c, Displayable s) {&lt;br /&gt;
    if (c.getCommandType() == Command.EXIT)&lt;br /&gt;
      notifyDestroyed();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
 class SimpleItem extends CustomItem {&lt;br /&gt;
 &lt;br /&gt;
  public SimpleItem(String title) { super(title); }&lt;br /&gt;
  &lt;br /&gt;
  // CustomItem abstract methods.&lt;br /&gt;
  &lt;br /&gt;
  public int getMinContentWidth() { return 100; }&lt;br /&gt;
  public int getMinContentHeight() { return 60; }&lt;br /&gt;
  &lt;br /&gt;
  public int getPrefContentWidth(int width) {&lt;br /&gt;
    return getMinContentWidth();&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  public int getPrefContentHeight(int height) {&lt;br /&gt;
    return getMinContentHeight();&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  public void paint(Graphics g, int w, int h) {&lt;br /&gt;
    g.drawRect(0, 0, w - 1, h - 1);&lt;br /&gt;
    g.setColor(0x000000ff);&lt;br /&gt;
    int offset = 0;&lt;br /&gt;
    for (int y = 4; y &amp;lt; h; y += 12) {&lt;br /&gt;
      offset = (offset + 12) % 24;&lt;br /&gt;
      for (int x = 4; x &amp;lt; w; x += 24) {&lt;br /&gt;
        g.fillTriangle(x + offset,     y,&lt;br /&gt;
                       x + offset - 3, y + 6,&lt;br /&gt;
                       x + offset + 3, y + 6);&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>
			</entry>

	</feed>