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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdalistview.java

?? 很好的UI界面源碼..還有自己的輸入法,可以更換風格.可以學習和使用
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * 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;    //滾動邊框(多行)    private int scrollBars = SDAConsts.srNone;    private int barwidth = 10;    //邊框線顏色    private int borderColor = SDAConsts.clBlack;    //滾動條顏色    private int scrollBarColor = SDAConsts.clBtnFace;    //選中的項目的顏色    private int itemFocusedRectColor = SDAConsts.clBtnShadow;    private int itemFocusedFontColor = SDAConsts.clActiveCaption;    //列    private int colCount = 3;    //行    private int rowHeight = 40;    private boolean autoRowHeight = false;    //內部變量    //行數,行最大長度    private int maxLenght = 0;    private int maxHeight = 0;    //垂直開始顯示位置    private int startTop = 0;    //水平開始顯示位置    private int startLeft = 0;    //變動前位置    private int oldStartLine = 0;    private int oldStartLeft = 0;    //水平滾條位置    private int HSLeft = 0;    private int HSTop = 0;    private int HSWidth = 0;    private int HSHeight = 0;    //垂直滾動條位置    private int VSLeft = 0;    private int VSTop = 0;    private int VSWidth = 0;    private int VSHeight = 0;    //點擊的滾動條的位置    private int oldScrollPointx = 0;    private int oldScrollPointy = 0;    //按下滾動條    private boolean isscrollbarpointdown = false;    //記錄按下的滾動條0:水平,1:垂直的    private byte scrollbardownHV = 0;    //項目管理    private Vector itemList = null;    //但前選中項    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();            //對齊方式處理后,畫組件            //設置字體            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);                }            }            //畫項目            paintItems(g);            //滾動條            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);                //滾動塊                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;                }                //計算塊位置                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);                //滾動塊                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);                }                //計算塊位置                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();        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利精品第一导航| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 欧美日韩中文另类| 欧美丝袜丝交足nylons图片| 欧美视频一区二区三区在线观看| 欧美日韩黄色一区二区| 欧美视频一区二区三区四区| 欧美一级二级三级蜜桃| 精品av久久707| 中文一区在线播放| 一区二区三区四区亚洲| 蜜臀av一区二区在线免费观看 | 国产伦精品一区二区三区免费迷 | 日韩国产欧美在线视频| 国内精品国产三级国产a久久| 成人久久18免费网站麻豆| 97aⅴ精品视频一二三区| 欧美影院午夜播放| 欧美不卡一区二区| 1024亚洲合集| 亚洲成a人片综合在线| 美女国产一区二区| 国产麻豆午夜三级精品| 欧美亚洲国产一区在线观看网站 | 亚洲日本欧美天堂| 天天av天天翘天天综合网| 日韩高清欧美激情| 成人18视频在线播放| 欧美精品一二三四| 国产亚洲欧美在线| 亚洲第一二三四区| 成人综合激情网| 欧美日韩视频在线第一区| 国产午夜久久久久| 性久久久久久久久久久久| 久久99国产精品尤物| 日本韩国精品一区二区在线观看| 日韩欧美你懂的| 亚洲伦在线观看| 美日韩黄色大片| 99精品欧美一区二区三区小说| 欧美男生操女生| 亚洲国产成人在线| 亚洲第一电影网| 91丝袜美女网| 国产午夜精品美女毛片视频| 天堂久久久久va久久久久| 成年人午夜久久久| 国产午夜精品福利| 蜜臀av一区二区在线免费观看| 97se亚洲国产综合在线| 欧美精品一区在线观看| 午夜私人影院久久久久| 成人午夜激情片| 日韩美女一区二区三区四区| 亚洲午夜久久久久久久久久久| 成人免费毛片a| 亚洲精品在线一区二区| 亚洲成人午夜电影| 一本色道久久综合精品竹菊| 精品区一区二区| 全国精品久久少妇| 色综合久久久久| 欧美激情一区三区| 国内精品嫩模私拍在线| 欧美午夜免费电影| 国产精品久久久久久久久免费相片| 麻豆成人av在线| 欧美精品1区2区3区| 国产精品国产三级国产有无不卡 | 欧美日韩在线免费视频| 亚洲精品视频一区二区| heyzo一本久久综合| 亚洲国产一二三| 91福利视频在线| 亚洲免费视频成人| 色婷婷久久久综合中文字幕| 国产精品久久看| av电影在线观看完整版一区二区| 国产欧美日韩卡一| 国产一区二区三区最好精华液| 777奇米四色成人影色区| 亚洲国产裸拍裸体视频在线观看乱了| 99精品一区二区三区| 国产精品女上位| 国产一区二区福利视频| 久久久久久久综合狠狠综合| 成人少妇影院yyyy| 国产精品不卡一区二区三区| 一本到一区二区三区| 亚洲国产精品一区二区www在线 | 午夜av一区二区| 91精品国产麻豆| 韩国三级在线一区| 国产日韩欧美精品电影三级在线 | 亚洲美腿欧美偷拍| 欧美亚洲动漫精品| 日本美女视频一区二区| 精品精品欲导航| 成人性生交大合| 亚洲精品国产第一综合99久久| 欧美日韩精品一区二区三区| 精品在线一区二区三区| 久久久不卡影院| 91丝袜高跟美女视频| 五月天一区二区三区| 精品成人一区二区三区| 白白色 亚洲乱淫| 亚洲国产一区二区a毛片| 精品国精品自拍自在线| 本田岬高潮一区二区三区| 亚洲一级二级在线| 欧美成人bangbros| 97国产一区二区| 日韩激情视频网站| 欧美高清一级片在线观看| 欧美视频在线观看一区二区| 久久成人精品无人区| 亚洲欧美综合网| 日韩亚洲欧美在线观看| 成人av电影在线播放| 日日夜夜免费精品| 中文在线资源观看网站视频免费不卡 | 91精品在线免费| 成人免费va视频| 秋霞电影网一区二区| 国产精品久久久久aaaa樱花| 欧美一区二区三区免费观看视频| 成人性生交大片免费看视频在线 | 日韩一区二区三区av| 成人伦理片在线| 日本va欧美va精品| 中文字幕一区二区三区视频| 日韩视频一区二区三区| 99久久亚洲一区二区三区青草| 天堂一区二区在线免费观看| 国产精品丝袜91| 日韩免费看的电影| 色综合久久九月婷婷色综合| 极品美女销魂一区二区三区免费| 亚洲精品视频观看| 久久综合九色综合97_久久久| 欧美日韩亚州综合| 成人午夜精品在线| 麻豆国产一区二区| 一区二区三区日韩在线观看| 国产午夜精品美女毛片视频| 4hu四虎永久在线影院成人| 91污在线观看| 国产乱码精品一区二区三区五月婷| 亚洲国产中文字幕| 中文字幕一区不卡| 欧美精品一区二区三区久久久| 欧美色大人视频| 99国产欧美久久久精品| 国内一区二区在线| 免费精品视频最新在线| 亚洲国产欧美在线| 亚洲三级在线免费观看| 国产亚洲一区字幕| 欧美电视剧免费全集观看| 欧美日韩日本视频| 91猫先生在线| 99综合影院在线| 国产白丝网站精品污在线入口| 精品一区二区成人精品| 日韩影视精彩在线| 香蕉乱码成人久久天堂爱免费| 亚洲欧美偷拍卡通变态| 中文字幕一区二| 国产精品久久久久久久久图文区| 国产欧美一区二区在线观看| 欧美精品一区二区三区高清aⅴ | 久久av资源网| 日本aⅴ亚洲精品中文乱码| 午夜精品久久久久久久蜜桃app| 亚洲狠狠丁香婷婷综合久久久| 中文字幕一区二区三中文字幕| 国产精品乱人伦一区二区| 久久久噜噜噜久噜久久综合| 久久午夜老司机| 久久人人超碰精品| 久久在线观看免费| 久久综合九色综合97婷婷| 久久香蕉国产线看观看99| 久久精品一区二区三区不卡| 久久综合九色综合欧美亚洲| 久久久久久久久久看片| 国产欧美日本一区二区三区| 国产精品久久久久久久久免费桃花| 国产精品无人区| 亚洲卡通动漫在线| 一区二区三区日韩欧美| 亚洲成av人片在www色猫咪| 亚洲成av人影院在线观看网| 日韩不卡一二三区| 男女性色大片免费观看一区二区| 美女诱惑一区二区| 国产一区二区成人久久免费影院| 岛国av在线一区|