亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sdalistview.java

?? 很好的UI界面源碼..還有自己的輸入法,可以更換風(fēng)格.可以學(xué)習(xí)和使用
?? JAVA
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package cn.sda.ui;import cn.sda.event.KeybordEvent;import cn.sda.event.ListViewSelectChangeEvent;import cn.sda.event.ListViewSelectItemEvent;import cn.sda.event.PointerEvent;import java.util.Vector;import javax.microedition.lcdui.Graphics;import javax.microedition.lcdui.Image;import javax.microedition.lcdui.Font;/** * @author not attributable * @version 1.0 */public class SDAListView extends SDABaseControl {    //邊框    private int borderStyle = SDAConsts.bsFixedSingle;    //滾動(dòng)邊框(多行)    private int scrollBars = SDAConsts.srNone;    private int barwidth = 10;    //邊框線顏色    private int borderColor = SDAConsts.clBlack;    //滾動(dòng)條顏色    private int scrollBarColor = SDAConsts.clBtnFace;    //選中的項(xiàng)目的顏色    private int itemFocusedRectColor = SDAConsts.clBtnShadow;    private int itemFocusedFontColor = SDAConsts.clActiveCaption;    //列    private int colCount = 3;    //行    private int rowHeight = 40;    private boolean autoRowHeight = false;    //內(nèi)部變量    //行數(shù),行最大長(zhǎng)度    private int maxLenght = 0;    private int maxHeight = 0;    //垂直開始顯示位置    private int startTop = 0;    //水平開始顯示位置    private int startLeft = 0;    //變動(dòng)前位置    private int oldStartLine = 0;    private int oldStartLeft = 0;    //水平滾條位置    private int HSLeft = 0;    private int HSTop = 0;    private int HSWidth = 0;    private int HSHeight = 0;    //垂直滾動(dòng)條位置    private int VSLeft = 0;    private int VSTop = 0;    private int VSWidth = 0;    private int VSHeight = 0;    //點(diǎn)擊的滾動(dòng)條的位置    private int oldScrollPointx = 0;    private int oldScrollPointy = 0;    //按下滾動(dòng)條    private boolean isscrollbarpointdown = false;    //記錄按下的滾動(dòng)條0:水平,1:垂直的    private byte scrollbardownHV = 0;    //項(xiàng)目管理    private Vector itemList = null;    //但前選中項(xiàng)    private SDAListViewItem curItem = null;    //最大列,最大行    private int maxCol = 0;    private int maxRow = 0;    //是否顯示文字    private boolean showItemText = false;    private boolean showItemRect = true;    //事件    private ListViewSelectChangeEvent onSelectChange = null;    private ListViewSelectItemEvent onSelectItem = null;    public SDAListView() {        super();        internalSDAListView();    }    private void internalSDAListView() {        itemList = new Vector();        this.setVisible(true);        setLeft(0);        setTop(0);        setBorderStyle(SDAConsts.bsFixedSingle);        super.setWidth(160);        setHeight(100);        super.setBackColor(SDAConsts.clWhite);        this.onPointerPressed = new PointerEvent() {            public void Event(SDABaseControl ctrl, int x, int y) {                doPointerPressed(x, y);            }        };        this.onPointerReleased = new PointerEvent() {            public void Event(SDABaseControl ctrl, int x, int y) {                doPointerReleased(x, y);            }        };        this.onKeyUp = new KeybordEvent() {            public void Event(SDABaseControl ctrl, int keyCode) {                doKeyUp(keyCode);            }        };    }    //畫    public void paint() {        internalPaint();    }    private void internalPaint() {        if (!IsCanPaint()) {            return;        }        Graphics g = form.getGraphics();        g.setFont(getFont());        InternalPaint(g);    }    protected void InternalPaint(Graphics g) {        //可視下才畫        if (isVisible()) {            //初始化引用變量            int thisWidth = getWidth();            int thisHeight = getHeight();            int HBarWidth = getHBarWidth();            int VBarHeight = getVBarHeight();            //對(duì)齊方式處理后,畫組件            //設(shè)置字體            g.setFont(super.getFont());            //外框            SetClip(g);            //透明            if (!isTransparent()) {                g.setColor(backColor);                fillRect(g, 0, 0, thisWidth, thisHeight);            }            if (borderStyle == SDAConsts.bsFixed3D) {                g.setColor(SDAConsts.clGray);                drawLine(g, 0, 0, thisWidth, 0);                drawLine(g, 0, 0, 0, thisHeight);                g.setColor(SDAConsts.clBlack);                drawLine(g, 1, 1, thisWidth - 1, 1);                drawLine(g, 1, 1, 1, thisHeight - 1);                g.setColor(SDAConsts.clBtnFace);                drawLine(g, 2, thisHeight - 1, thisWidth - 2, thisHeight - 1);                drawLine(g, thisWidth - 1, 2, thisWidth - 1, thisHeight - 1);                g.setColor(SDAConsts.clWhite);                drawLine(g, 1, thisHeight, thisWidth, thisHeight);                drawLine(g, thisWidth, 1, thisWidth, thisHeight);                if (isFoucsed()) {                    g.setColor(SDAConsts.clFocusShadow);                    drawRect(g, 1, 1, thisWidth - 2, thisHeight - 2);                }            }            if (borderStyle == SDAConsts.bsFixedSingle) {                //邊框                g.setColor(this.getBorderColor());                drawRect(g, 0, 0, thisWidth, thisHeight);                if (isFoucsed()) {                    g.setColor(SDAConsts.clFocusShadow);                    drawRect(g, 1, 1, thisWidth - 2, thisHeight - 2);                }            }            //畫項(xiàng)目            paintItems(g);            //滾動(dòng)條            if (borderStyle == SDAConsts.bsFixed3D) {                SetClip(g, 2, 2, thisWidth - 2, thisHeight - 2);            } else {                SetClip(g, 1, 1, thisWidth - 1, thisHeight - 1);            }            if ((scrollBars == SDAConsts.srHorizontal) || (scrollBars == SDAConsts.srBoth)) {                //水平                g.setColor(scrollBarColor);                fillRect(g, 0, thisHeight - barwidth, barwidth, barwidth);                fillRect(g, HBarWidth - barwidth, thisHeight - barwidth, barwidth, barwidth);                g.setColor(getBorderColor());                drawRect(g, 0, thisHeight - barwidth, barwidth, barwidth);                drawRect(g, HBarWidth - barwidth, thisHeight - barwidth, barwidth, barwidth);                //滾動(dòng)塊                g.setColor(backColor);                fillRect(g, barwidth, thisHeight - barwidth, HBarWidth - 2 * barwidth, barwidth);                g.setColor(this.getBorderColor());                drawRect(g, barwidth, thisHeight - barwidth, HBarWidth - 2 * barwidth, barwidth);                //塊大小                int pwidth = HBarWidth - 2 * barwidth;                if (maxLenght > HBarWidth) {                    pwidth = ((HBarWidth) * (HBarWidth - 2 * barwidth)) / maxLenght;                }                //計(jì)算塊位置                int ppos = (startLeft * (HBarWidth - 2 * barwidth)) / maxLenght;                //修正位置                if (ppos + pwidth > HBarWidth - 2 * barwidth) {                    ppos = HBarWidth - 2 * barwidth - pwidth;                }                //畫塊                g.setColor(scrollBarColor);                fillRect(g, barwidth + ppos, thisHeight - barwidth, pwidth, barwidth);                g.setColor(getBorderColor());                drawRect(g, barwidth + ppos, thisHeight - barwidth, pwidth, barwidth);                //記錄大小                HSLeft = barwidth + ppos;                HSTop = thisHeight - barwidth;                HSWidth = pwidth;                HSHeight = barwidth;                //畫塊上的線                int tpos = HSWidth / 2 + HSLeft;                drawRect(g, tpos, HSTop + 2, 0, HSHeight - 4);                if (tpos - 2 > HSLeft) {                    drawRect(g, tpos - 2, HSTop + 2, 0, HSHeight - 4);                }                if (tpos + 2 < HSLeft + HSWidth) {                    drawRect(g, tpos + 2, HSTop + 2, 0, HSHeight - 4);                }                //三角                g.setColor(getBorderColor());                fillTriangle(g, barwidth / 2 - 2, thisHeight - barwidth / 2,                        barwidth / 2 + 2, thisHeight - barwidth / 2 - 4,                        barwidth / 2 + 2, thisHeight - barwidth / 2 + 4);                fillTriangle(g, HBarWidth - barwidth + barwidth / 2 + 2, thisHeight - barwidth / 2,                        HBarWidth - barwidth + barwidth / 2 - 2, thisHeight - barwidth / 2 - 4,                        HBarWidth - barwidth + barwidth / 2 - 2, thisHeight - barwidth / 2 + 4);            }            if ((scrollBars == SDAConsts.srVertical) || (scrollBars == SDAConsts.srBoth)) {                //垂直                g.setColor(scrollBarColor);                fillRect(g, thisWidth - barwidth, 0, barwidth, barwidth);                fillRect(g, thisWidth - barwidth, VBarHeight - barwidth, barwidth, barwidth);                g.setColor(getBorderColor());                drawRect(g, thisWidth - barwidth, 0, barwidth, barwidth);                drawRect(g, thisWidth - barwidth, VBarHeight - barwidth, barwidth, barwidth);                //滾動(dòng)塊                g.setColor(backColor);                fillRect(g, thisWidth - barwidth, barwidth, barwidth, VBarHeight - 2 * barwidth);                g.setColor(getBorderColor());                drawRect(g, thisWidth - barwidth, barwidth, barwidth, VBarHeight - 2 * barwidth);                //塊大小                                    int pheight = VBarHeight - 2 * barwidth;                if (maxHeight > VBarHeight) {                    pheight = ((VBarHeight) * (VBarHeight - 2 * barwidth) / maxHeight);                }                //計(jì)算塊位置                int ppos = barwidth;                if (maxHeight > 0) {                    ppos = (startTop * (VBarHeight - 2 * barwidth)) / maxHeight;                }                //修正位置                if (ppos + pheight > VBarHeight - 2 * barwidth) {                    ppos = VBarHeight - 2 * barwidth - pheight;                }                //畫塊                g.setColor(scrollBarColor);                fillRect(g, thisWidth - barwidth, barwidth + ppos, barwidth, pheight);                g.setColor(getBorderColor());                drawRect(g, thisWidth - barwidth, barwidth + ppos, barwidth, pheight);                //記錄大小                VSLeft = thisWidth - barwidth;                VSTop = barwidth + ppos;                VSWidth = barwidth;                VSHeight = pheight;                //畫塊上的線                int tpos = VSHeight / 2 + VSTop;                drawRect(g, VSLeft + 2, tpos, barwidth - 4, 0);                if (tpos - 2 > VSTop) {                    drawRect(g, VSLeft + 2, tpos - 2, VSWidth - 4, 0);                }                if (tpos + 2 < VSTop + VSHeight) {                    drawRect(g, VSLeft + 2, tpos + 2, VSWidth - 4, 0);                }                //三角                g.setColor(getBorderColor());                fillTriangle(g, thisWidth - barwidth + barwidth / 2, barwidth / 2 - 2,                        thisWidth - barwidth + barwidth / 2 - 4, barwidth / 2 + 2,                        thisWidth - barwidth + barwidth / 2 + 4, barwidth / 2 + 2);                fillTriangle(g, thisWidth - barwidth + barwidth / 2 - 4, VBarHeight - barwidth + barwidth / 2 - 2,                        thisWidth - barwidth + barwidth / 2 + 4, VBarHeight - barwidth + barwidth / 2 - 2,                        thisWidth - barwidth + barwidth / 2, VBarHeight - barwidth / 2 + 2);            }            PaintChilds();        }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精选视频在线| 欧美精彩视频一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品成人免费在线| 日韩午夜小视频| 亚洲国产精品成人综合 | 亚洲精品久久久蜜桃| 国产成人在线看| 国产精品日韩精品欧美在线 | 亚洲欧美在线视频| 国产精品久久国产精麻豆99网站| 三级一区在线视频先锋 | 国产精品女上位| 六月丁香婷婷色狠狠久久| 国产精品一区二区在线观看不卡| 亚洲在线成人精品| 欧美色精品在线视频| 三级成人在线视频| 久久久国产一区二区三区四区小说 | 亚洲一区二区在线免费观看视频| 欧美一级二级在线观看| 91视频精品在这里| 国产一区二区三区黄视频| 秋霞午夜av一区二区三区| 亚洲国产精品天堂| 一区二区免费视频| 亚洲欧洲美洲综合色网| 亚洲最色的网站| 亚洲国产综合色| 精品成人在线观看| 精品国产免费人成电影在线观看四季 | 国产精品私人自拍| 亚洲人亚洲人成电影网站色| 国产精品久久久久久户外露出 | 欧美一区二区在线看| 精品人伦一区二区色婷婷| 国产天堂亚洲国产碰碰| 国产精品久久久久久久久动漫 | 日本一区二区三区视频视频| 亚洲成av人片观看| 91免费国产在线| 国产精品丝袜一区| 韩国精品主播一区二区在线观看 | 中文字幕一区免费在线观看| 蜜桃av一区二区| 国产精品久久久久久亚洲伦| 艳妇臀荡乳欲伦亚洲一区| 日本视频中文字幕一区二区三区| 激情五月激情综合网| 色哟哟精品一区| 久久免费看少妇高潮| 亚洲自拍都市欧美小说| 国产成人午夜视频| 欧美一区二区三区免费观看视频| 国产精品国产a| 国产揄拍国内精品对白| 欧美人妇做爰xxxⅹ性高电影| 欧美精品一区二区蜜臀亚洲| 亚洲bt欧美bt精品| 日本精品视频一区二区| 国产精品久久久久精k8| 国产在线精品一区二区不卡了| 欧美日韩中文字幕一区二区| 国产精品污www在线观看| 国产一区二区福利| 精品国产乱码久久久久久蜜臀| 日日摸夜夜添夜夜添亚洲女人| 一本色道久久加勒比精品| 国产精品三级在线观看| 成人激情图片网| 国产精品视频你懂的| 懂色av一区二区三区免费看| 欧美国产日韩一二三区| 不卡一区二区中文字幕| 亚洲视频小说图片| 色综合久久久久| 亚洲国产日韩一级| 欧美高清www午色夜在线视频| 首页国产欧美日韩丝袜| 日韩欧美综合一区| 国产成人av福利| 一级中文字幕一区二区| 欧美精品欧美精品系列| 美脚の诱脚舐め脚责91| 国产婷婷色一区二区三区四区| 国产99久久久精品| 亚洲成av人片在www色猫咪| 91精品国产麻豆| 成人av在线播放网站| 午夜精品久久久久久久| 久久久精品欧美丰满| 91在线一区二区| 国内成人精品2018免费看| 国产精品久久久久久久久搜平片| 在线观看www91| 国产乱码精品一区二区三区忘忧草 | 精品视频全国免费看| 国产成人一级电影| 日韩专区在线视频| 综合网在线视频| 久久亚洲一级片| 欧美日韩成人在线一区| 国产福利91精品| 日本v片在线高清不卡在线观看| 国产午夜精品在线观看| 欧美一区二区三区免费在线看| 99久久99久久精品免费观看 | 国产一区二区三区免费看| 亚洲午夜免费视频| 国产精品成人在线观看| 久久久久高清精品| 日韩欧美一区二区免费| 欧美精品三级日韩久久| 色伊人久久综合中文字幕| 高清在线成人网| 成人精品小蝌蚪| 成人综合日日夜夜| 从欧美一区二区三区| 国产一区二区在线看| 久久精品国产在热久久| 日韩中文字幕一区二区三区| 亚洲国产一区二区视频| 亚洲精品你懂的| 亚洲第一av色| 日本免费新一区视频| 日本不卡中文字幕| 狠狠色伊人亚洲综合成人| 国产综合成人久久大片91| 国产乱子伦视频一区二区三区 | 国产精品日韩成人| 亚洲婷婷综合色高清在线| 中文字幕中文字幕中文字幕亚洲无线| 国产欧美日韩在线视频| 中文字幕中文字幕一区| 亚洲国产精品影院| 麻豆精品精品国产自在97香蕉| 另类中文字幕网| 成人h动漫精品| 欧美日韩精品电影| ww亚洲ww在线观看国产| 中文一区在线播放 | 日本视频在线一区| 福利一区福利二区| 欧美色欧美亚洲另类二区| 欧美mv日韩mv国产网站app| 国产欧美精品区一区二区三区| 日本一区二区三区dvd视频在线| 依依成人综合视频| 国产精品一区二区x88av| 色偷偷久久人人79超碰人人澡| 日韩欧美的一区二区| ●精品国产综合乱码久久久久| 亚洲国产成人91porn| 成人美女视频在线看| 欧美一区二区黄色| 一区二区在线电影| 福利电影一区二区三区| 欧美日韩国产系列| 中文字幕在线不卡国产视频| 久久精品理论片| 91精品国产综合久久久久久久久久| 久久久久久久免费视频了| 一区二区三区久久| 91香蕉视频黄| 国产精品国产精品国产专区不片| 激情综合一区二区三区| 538prom精品视频线放| 一区二区三区国产精品| 色婷婷综合久久久久中文一区二区 | 欧美日韩精品免费| 日韩毛片精品高清免费| 美女网站在线免费欧美精品| 在线区一区二视频| 国产精品三级电影| 韩国精品免费视频| 日韩欧美的一区| 日产国产高清一区二区三区| 欧美午夜电影一区| 亚洲美女免费视频| 色婷婷久久久久swag精品| 久久久99精品免费观看| 亚洲精品亚洲人成人网在线播放| 成人精品视频网站| 久久久久久麻豆| 粉嫩久久99精品久久久久久夜| 精品奇米国产一区二区三区| 免费在线成人网| 欧美一区二区三区免费大片| 亚洲综合自拍偷拍| 欧美视频一二三区| 日韩av一区二区三区| 欧美一级高清大全免费观看| 免费三级欧美电影| 国产欧美日韩三级| 国产精选一区二区三区| 日韩精品一区二区三区视频| 麻豆一区二区三区| 欧美高清一级片在线观看| a级高清视频欧美日韩| 亚洲第一av色|