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

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

?? sdabaseedit.java

?? 很好的UI界面源碼..還有自己的輸入法,可以更換風格.可以學習和使用
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
        return scrollBarColor;    }    public void setScrollBarColor(int scrollBarColor) {        this.scrollBarColor = scrollBarColor;        repaintControl();    }    protected boolean isShowFocusRect() {        return showFocusRect;    }    protected void setShowFocusRect(boolean showFocusRect) {        this.showFocusRect = showFocusRect;    }    private int getHBarWidth() {        int swidth = 0;        if ((scrollBars == SDAConsts.srHorizontal) || (scrollBars == SDAConsts.srNone)) {            swidth = getWidth();        }        if ((scrollBars == SDAConsts.srBoth) || (scrollBars == SDAConsts.srVertical)) {            swidth = getWidth() - barwidth;        }        if (!isMultiLine()) {            swidth = getWidth();        }        return swidth;    }    private int getVBarHeight() {        int sheight = 0;        if ((scrollBars == SDAConsts.srVertical) || (scrollBars == SDAConsts.srNone)) {            sheight = getHeight();        }        if ((scrollBars == SDAConsts.srBoth) || (scrollBars == SDAConsts.srHorizontal)) {            sheight = getHeight() - barwidth;        }        if (!isMultiLine()) {            sheight = getHeight();        }        return sheight;    }    //處理事件的執行    //點箭頭滾動內容    private void doPointerPressed(int x, int y) {        int posx = screenXToClient(x);        int posy = screenYToClient(y);        int thisWidth = getWidth();        int thisHeight = getHeight();        int VBarHeight = getVBarHeight();        int HBarWidth = getHBarWidth();        //確定點擊了滾動條區域        if (isMultiLine()) {            if ((scrollBars == SDAConsts.srHorizontal) || (scrollBars == SDAConsts.srBoth)) {                //判斷是否點擊了左箭頭                if (InClientRect(posx, posy, 0, thisHeight - barwidth, barwidth, barwidth)) {                    //向右滾動                    if (startLeft > 0) {                        int step = getFont().charWidth('x');                        startLeft -= step;                        if (startLeft < 0) {                            startLeft = 0;                        }                    }                } else //右箭頭                if (InClientRect(posx, posy, HBarWidth - barwidth, thisHeight - barwidth, barwidth, barwidth)) {                    //向左滾動                    if (maxLineLenght - startLeft > HBarWidth) {                        int step = getFont().charWidth('x');                        startLeft += step;                    }                } else //滾動條                if (InClientRect(posx, posy, HSLeft, HSTop, HSWidth, HSHeight)) {                    //記錄點擊的滾動條位置                    oldScrollPointx = posx;                    oldScrollPointy = posy;                    isscrollbarpointdown = true;                    scrollbardownHV = 0;                    oldStartLeft = startLeft;                } else {                    if (InClientRect(posx, posy, 0, thisHeight - barwidth, HBarWidth, barwidth)) {                        //點了空白的,滾動到點擊的位置                        //計算滾動塊要到位置                        int tpos = posx > HSLeft ? (posx - HSWidth) : (posx);                        //計算StartLeft                        startLeft = ((tpos - barwidth) * (maxLineLenght)) / (HBarWidth - 2 * barwidth);                    }                }            }            if ((scrollBars == SDAConsts.srVertical) || (scrollBars == SDAConsts.srBoth)) {                //只有垂直滾動條                //判斷是否點擊了上箭頭                if (InClientRect(posx, posy, thisWidth - barwidth, 0, barwidth, barwidth)) {                    //向下滾動                    if (startLine > 0) {                        startLine--;                    }                } else //下箭頭                if (InClientRect(posx, posy, thisWidth - barwidth, VBarHeight - barwidth, barwidth, barwidth)) {                    //向上滾動                    startLine = ((lineNum - startLine) * getFont().getHeight() > VBarHeight) ? startLine + 1 : startLine;                } else //滾動條                if (InClientRect(posx, posy, VSLeft, VSTop, VSWidth, VSHeight)) {                    //記錄位置                    oldScrollPointx = posx;                    oldScrollPointy = posy;                    isscrollbarpointdown = true;                    scrollbardownHV = 1;                    oldStartLine = startLine;                } else {                    if (InClientRect(posx, posy, thisWidth - barwidth, 0, barwidth, VBarHeight)) {                        //空白的                        //計算滾動塊要到位置                        int tpos = posy > VSTop ? (posy - VSHeight) : (posy);                        //計算StartLine                        int oldline = startLine;                        startLine = ((tpos - barwidth) * (lineNum * getFont().getHeight())) / (VBarHeight - 2 * barwidth) / getFont().getHeight();                        if (oldline == startLine) {                            startLine = posy > VSTop ? startLine + 1 : startLine - 1;                        }                    }                }            }        }        //點到空白處,計算光標        if (InClientRect(posx, posy, 0, 0, getHBarWidth(), getVBarHeight())) {            calCursorFromXY(posx, posy);            if (form.Application.inputPanel.charsPanel.isVisible()) {                form.Application.inputPanel.numChars = null;                form.Application.inputPanel.inputChars.setLength(0);                form.Application.inputPanel.charsPanel.visible = false;                form.repaintControl();            }        }    }    private void calCursorFromXY(int x, int y) {        cursorRow = startLine + y / getFont().getHeight();        if (cursorRow + 1 > lineNum) {            cursorRow = lineNum - 1;            if (cursorRow < 0) {                cursorRow = 0;            }        }        paintString(gg, getText(), 2, -100);        int len = 0;        int cw = 0;        Font ft = getFont();        String textStr = "";        if (isMultiLine()) {            textStr = cursorLineText;        } else {            textStr = getText();        }        if(passwordChar!=0){            textStr=getPassString(textStr, passwordChar);        }        cursorCol = textStr.length();        for (int i = 0; i < textStr.length(); i++) {            cw = ft.charWidth(textStr.charAt(i));            if (len + cw / 2 - startLeft > x) {                cursorCol = i;                break;            }            if (len + cw - startLeft > x) {                cursorCol = i + 1;                break;            }            len += ft.charWidth(textStr.charAt(i));        }    }    //拖動事件處理    private void doPointerReleased(int x, int y) {        int posx = screenXToClient(x);        int posy = screenYToClient(y);        int VBarHeight = getVBarHeight();        int HBarWidth = getHBarWidth();        //根據點擊的位置,判斷滾動的多少        if ((scrollBars == SDAConsts.srHorizontal) || ((scrollBars == SDAConsts.srBoth) && (scrollbardownHV == 0))) {            if (isscrollbarpointdown) {                int stepx = posx - oldScrollPointx;                //根據滾動多少來重新定位                //計算滾動塊要到位置                int tpos = HSLeft + stepx;                HSLeft = tpos < barwidth ? barwidth : tpos;                HSLeft = HSLeft + HSWidth > HBarWidth - barwidth ? HBarWidth - barwidth - HSWidth : HSLeft;                //計算StartLeft                startLeft = ((HSLeft - barwidth) * (maxLineLenght)) / (HBarWidth - 2 * barwidth);                if (oldStartLeft != startLeft) {                    oldScrollPointx = posx;                    oldStartLeft = startLeft;                } else {                    oldStartLeft = startLeft;                    if (stepx > 0) {                        startLeft = maxLineLenght - startLeft < getHBarWidth() ? startLeft + 1 : startLeft;                    }                    if (stepx < 0) {                        startLeft = startLeft == 0 ? 0 : startLeft - 1;                    }                }            }        }        if ((scrollBars == SDAConsts.srVertical) || ((scrollBars == SDAConsts.srBoth) && (scrollbardownHV == 1))) {            if (isscrollbarpointdown) {                int stepy = posy - oldScrollPointy;                //根據滾動多少來重新定位                //計算滾動塊要到位置                int tpos = VSTop + stepy;                VSTop = tpos < barwidth ? barwidth : tpos;                VSTop = VSTop + VSHeight > VBarHeight - barwidth ? VBarHeight - barwidth - VSHeight : VSTop;                //計算StartLine                startLine = ((VSTop - barwidth) * (lineNum * getFont().getHeight())) / (VBarHeight - 2 * barwidth) / getFont().getHeight();                if (oldStartLine == startLine) {                    if (stepy > 0) {                        startLine = ((lineNum - startLine) * getFont().getHeight() > getVBarHeight()) ? startLine + 1 : startLine;                    }                    if (stepy < 0) {                        startLine = startLine > 0 ? startLine - 1 : startLine;                    }                    oldStartLine = startLine;                } else {                    if ((stepy > 0) && (startLine < oldStartLine)) {                        startLine = oldStartLine;                    }                    oldStartLine = startLine;                }            }        }        isscrollbarpointdown = false;    }    protected static byte[] string2Byte(String s) {        try {            ByteArrayOutputStream baos = new ByteArrayOutputStream();            DataOutputStream bos = new DataOutputStream(baos);            bos.writeUTF(s);            byte[] bytes = baos.toByteArray();            byte[] rbytes = new byte[bytes.length - 2];            System.arraycopy(bytes, 2, rbytes, 0, rbytes.length);            //關閉流             bos.close();            baos.close();            return rbytes;        } catch (Exception e) {            return null;        }    }    //鍵盤事件處理    private void doKeyUp(int keyCode) {        String key = form.getKeyName(keyCode).toUpperCase();        char ch = 0;        if (key.equals(SDAConsts.KEY_UP)) {            if (form.Application.inputPanel.numChars != null) {                form.Application.inputPanel.charsPanel.priorChar();                form.Application.inputPanel.charsPanel.repaintControl();            } else {                ch = 38;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    inputFuncChar(ch, false);                }            }        }        if (key.equals(SDAConsts.KEY_DOWN)) {            if (form.Application.inputPanel.numChars != null) {                form.Application.inputPanel.charsPanel.nextChar();                form.Application.inputPanel.charsPanel.repaintControl();            } else {                ch = 40;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    inputFuncChar(ch, false);                }            }        }        if (key.equals(SDAConsts.KEY_LEFT)) {            if (form.Application.inputPanel.numChars != null) {                form.Application.inputPanel.charsPanel.priorChar();                form.Application.inputPanel.charsPanel.repaintControl();            } else {                ch = 37;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    inputFuncChar(ch, false);                }            }        }        if (key.equals(SDAConsts.KEY_RIGHT)) {            if (form.Application.inputPanel.numChars != null) {                form.Application.inputPanel.charsPanel.nextChar();                form.Application.inputPanel.charsPanel.repaintControl();            } else {                ch = 39;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    inputFuncChar(ch, false);                }            }        }        //刪除(F2)        if (key.equals(SDAConsts.KEY_SOFT2) || key.equals(SDAConsts.KEY_CLEAR)) {            if (form.Application.inputPanel.numChars != null) {                form.Application.inputPanel.numChars = null;                if (form.Application.inputPanel.inputChars.length() == 0) {                    form.Application.inputPanel.charsPanel.visible = false;                    form.repaintControl();                }            } else {                ch = 8;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    inputFuncChar(ch, false);                }            }        }        //ESC        if (key.equals(SDAConsts.KEY_SOFT1)) {            if (form.Application.inputPanel.charsPanel.visible) {                form.Application.inputPanel.numChars = null;                form.Application.inputPanel.inputChars.setLength(0);                form.Application.inputPanel.charsPanel.visible = false;                form.repaintControl();            }        }        //System.out.println(keyCode);        if (key.equals(SDAConsts.KEY_SELECT) || key.equals(SDAConsts.KEY_ENTER)) {            if (form.Application.inputPanel.numChars != null) {                if (form.Application.inputPanel.ImeType == SDAInputPanel.imPinYin) {                    ch = form.Application.inputPanel.getKeyChar();                    form.Application.inputPanel.selectedChar = ch;                    form.Application.inputPanel.inputPinYinChar();                    form.Application.inputPanel.charsPanel.repaintControl();                }                if (form.Application.inputPanel.ImeType == SDAInputPanel.imLowerCase ||                        form.Application.inputPanel.ImeType == SDAInputPanel.imUpperCase) {                    form.Application.inputPanel.selectedChar = 13;                    form.Application.inputPanel.inputFuncChar();                }                form.Application.inputPanel.numChars = null;            } else {                ch = 13;                if (form.Application.inputPanel.charsPanel.isVisible()) {                    form.Application.inputPanel.charsPanel.inputFuncChar(ch);                } else {                    if (!form.Application.hasPointer()) {                        form.Application.ShowEditor(this);                    } else {                        inputFuncChar(ch, false);                    }                }            }        }        if ((keyCode > 47 && keyCode < 58) || keyCode == 35 || keyCode == 42) {            ch = (char) keyCode;            char[] charArray = null;            if (form.Application.inputPanel.ImeType == SDAInputPanel.imPinYin) {                if (form.Application.inputPanel.charsPanel.isInput) {                    charArray = form.Application.inputPanel.getLowerKeyChars(ch);                } else {                    form.Application.inputPanel.charsPanel.isInput = true;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
风间由美一区二区av101| 91麻豆国产精品久久| 欧美高清www午色夜在线视频| 亚洲欧洲精品一区二区三区 | 国内精品第一页| 久久综合狠狠综合| 国产米奇在线777精品观看| 欧美tk—视频vk| 99久久综合精品| 天天综合网天天综合色| 91精品国产综合久久福利软件| 天天综合网天天综合色| 欧美国产精品久久| 欧美大片在线观看一区二区| 成人免费视频播放| 亚洲成年人网站在线观看| 日韩精品一区二区三区中文精品 | 麻豆91在线播放免费| 国产调教视频一区| 9191久久久久久久久久久| 国产v日产∨综合v精品视频| 亚洲无线码一区二区三区| 中文文精品字幕一区二区| 日韩三级av在线播放| 91传媒视频在线播放| 成人免费不卡视频| 国产在线精品一区二区不卡了| 亚洲精品高清视频在线观看| 26uuu另类欧美亚洲曰本| 欧美亚洲综合另类| 欧美日韩成人综合| 久久久精品国产免费观看同学| 麻豆一区二区99久久久久| 亚洲成人中文在线| 亚洲国产精品久久人人爱蜜臀| 久久久久久电影| 2024国产精品| 欧美精品一区二区三区蜜桃视频| 69久久夜色精品国产69蝌蚪网| 91福利在线播放| 欧美亚洲国产一区在线观看网站| 国产福利视频一区二区三区| 国产a久久麻豆| 色哟哟一区二区三区| 91首页免费视频| 欧美综合视频在线观看| 制服丝袜成人动漫| 日韩精品中午字幕| 精品国产人成亚洲区| 久久久亚洲精品一区二区三区| 日韩一级完整毛片| 久久久美女毛片| 国产精品视频一二三| 亚洲国产精品麻豆| 粉嫩av亚洲一区二区图片| 麻豆91在线看| 91久久精品网| 制服丝袜一区二区三区| 久久久久一区二区三区四区| 亚洲黄色在线视频| 婷婷中文字幕一区三区| www.日韩av| 国产丝袜在线精品| 日本一不卡视频| 在线免费一区三区| 久久蜜臀中文字幕| 日本中文字幕一区| 欧美另类久久久品| 亚洲一区二区在线免费观看视频| 久久99精品久久久久婷婷| 欧美三片在线视频观看| 亚洲欧美福利一区二区| 国产传媒久久文化传媒| 精品国产精品网麻豆系列| 亚洲一区在线播放| k8久久久一区二区三区| 久久色.com| av成人免费在线观看| 久久精品一区二区三区不卡牛牛| 日韩综合小视频| 91精品国产综合久久久久久漫画| 亚洲免费观看高清完整版在线观看 | 国产精品三级视频| 精彩视频一区二区| 国产日韩欧美一区二区三区综合| 日韩中文字幕亚洲一区二区va在线| 91色乱码一区二区三区| 18涩涩午夜精品.www| 欧美优质美女网站| 日韩三级视频中文字幕| 中文字幕一区不卡| 欧美视频中文字幕| 国产一区在线观看视频| 精品国产免费视频| 高清成人免费视频| 午夜精品一区二区三区电影天堂 | 日韩电影在线免费看| 日韩欧美中文一区二区| 成人动漫一区二区| 日本美女一区二区三区视频| 精品sm在线观看| 91香蕉视频污在线| 狠狠色丁香久久婷婷综合_中| 中文字幕中文字幕在线一区 | 久久精品999| 亚洲福利一二三区| 国产精品福利电影一区二区三区四区| 欧美日韩一级大片网址| 99精品欧美一区| 国产91精品久久久久久久网曝门 | 久久精品欧美一区二区三区不卡| 在线观看日韩精品| 成人国产电影网| 另类小说图片综合网| 亚洲国产视频a| 亚洲人精品午夜| 久久久综合视频| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩电影一区| 欧美色爱综合网| 欧美一区二区日韩一区二区| 91精品国产综合久久久久久久久久 | 欧美人牲a欧美精品| 欧美日韩国产综合一区二区| 精品视频免费看| 欧美一区二区二区| 欧美日韩三级在线| 5566中文字幕一区二区电影| 精品视频1区2区3区| 国产色产综合色产在线视频| 欧美经典一区二区| 亚洲日本护士毛茸茸| 国产丝袜在线精品| 亚洲国产aⅴ天堂久久| 亚洲动漫第一页| 国产一区二区三区在线观看免费| 久久9热精品视频| 91女厕偷拍女厕偷拍高清| 91成人免费网站| 欧美电影免费观看高清完整版| 国产日韩欧美激情| 亚洲一区二区四区蜜桃| 国产高清精品在线| 欧美色电影在线| 日韩伦理电影网| 国产河南妇女毛片精品久久久 | 不卡av免费在线观看| 粉嫩嫩av羞羞动漫久久久| 无吗不卡中文字幕| 美国三级日本三级久久99| 国产99精品视频| 精品久久久久久久久久久久包黑料 | 一区二区三区不卡在线观看 | 欧美日韩国产综合草草| 精品少妇一区二区三区在线播放| 亚洲欧美日韩久久| 国产成人精品在线看| 久久综合999| 国产一区视频网站| 精品国产电影一区二区| 精品一区二区久久久| 日韩欧美高清在线| 天天操天天干天天综合网| 高清日韩电视剧大全免费| 日韩一二在线观看| 狠狠色狠狠色综合系列| 717成人午夜免费福利电影| 丝袜亚洲另类丝袜在线| 欧美精品v国产精品v日韩精品| 亚洲三级免费电影| 欧美色图在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 精品福利一区二区三区| 久久91精品国产91久久小草| 日韩一级二级三级精品视频| 国产成人高清在线| 一区二区三区不卡视频在线观看 | 在线免费观看一区| 激情小说欧美图片| 中文字幕国产一区二区| 在线观看av一区二区| 日韩av不卡在线观看| 亚洲国产精品国自产拍av| 91免费版在线| 亚洲成人1区2区| 国产精品国产三级国产普通话蜜臀| 色94色欧美sute亚洲线路二| 久久精品国产成人一区二区三区| 国产农村妇女精品| 欧美精品高清视频| 色88888久久久久久影院按摩 | 韩国精品久久久| 自拍偷拍欧美激情| 久久综合九色综合欧美98| 欧美美女黄视频| 欧美日韩午夜精品| 欧美日韩在线精品一区二区三区激情| 国产一区二区精品久久| 蜜桃视频在线观看一区| 一区二区三区不卡视频在线观看|