⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listitem.java

📁 j2me写的google地图
💻 JAVA
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2008-6-16 11:25:21
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   ListItem.java

package com.eightmotions.util;

import java.util.Enumeration;
import java.util.Hashtable;
import javax.microedition.lcdui.List;

// Referenced classes of package com.eightmotions.util:
//            UtilMidp

public class ListItem extends List
    implements Runnable
{

    public ListItem(String title, int type)
    {
        super(title, type);
        hash = new Hashtable();
        t = null;
    }

    public void append(String title, String imaString)
    {
        int idx = super.append(title, null);
        if(imaString != null)
        {
            hash.put(imaString, new Integer(idx));
            if(this.t == null)
            {
                Thread t = new Thread(this);
                t.start();
            }
        }
    }

    public void run()
    {
        while(hash.size() > 0) 
        {
            Enumeration e = hash.keys();
            while(e.hasMoreElements()) 
            {
                String theUrl = (String)e.nextElement();
                javax.microedition.lcdui.Image ima = UtilMidp.loadImage(theUrl, null);
                Integer idx = (Integer)hash.get(theUrl);
                set(idx.intValue(), getString(idx.intValue()), ima);
                hash.remove(theUrl);
            }
        }
        t = null;
    }

    Hashtable hash;
    Thread t;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -