亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美一级理论性理论a| 精品一区二区免费在线观看| 99国产精品久久久久久久久久久 | 亚洲综合在线电影| av在线一区二区| 亚洲欧洲成人精品av97| 一本大道av一区二区在线播放| 亚洲欧美aⅴ...| 欧洲精品一区二区| 久久99深爱久久99精品| 国产欧美日韩一区二区三区在线观看| 成人精品国产一区二区4080| 中文字幕日本乱码精品影院| 在线一区二区视频| 久久精品国产亚洲aⅴ| 国产日韩精品视频一区| 99久久伊人精品| 三级欧美在线一区| 久久网这里都是精品| 成人av在线播放网址| 亚洲一区二区三区四区不卡| 日韩欧美国产一二三区| 白白色亚洲国产精品| 五月天精品一区二区三区| 26uuu久久综合| 91玉足脚交白嫩脚丫在线播放| 三级久久三级久久| 国产亚洲精品超碰| 欧美在线视频日韩| 国内精品嫩模私拍在线| 亚洲欧美在线观看| 精品国产伦一区二区三区观看方式| 成人精品视频一区| 美国毛片一区二区| 一区二区三区四区精品在线视频| 精品美女被调教视频大全网站| 99久久久久久| 麻豆久久一区二区| 一区二区国产盗摄色噜噜| 精品久久久久久久久久久久包黑料| 91视频在线看| 国产精品影音先锋| 日韩二区三区在线观看| 亚洲精品乱码久久久久久黑人| 精品国产免费久久| 欧美日韩精品一二三区| 97se亚洲国产综合自在线| 久久精品国产成人一区二区三区 | 一二三区精品福利视频| 久久久一区二区三区捆绑**| 欧美亚洲国产一卡| 99久久99精品久久久久久| 韩国三级中文字幕hd久久精品| 亚洲图片有声小说| 亚洲欧美一区二区视频| 国产蜜臀97一区二区三区 | 久久网这里都是精品| 欧美精品v日韩精品v韩国精品v| 99久久精品情趣| 国产九九视频一区二区三区| 美女视频黄 久久| 午夜精品视频一区| 亚洲二区在线视频| 一区二区欧美视频| 夜夜揉揉日日人人青青一国产精品| 中文字幕精品在线不卡| 国产日产亚洲精品系列| 精品久久99ma| 欧美精品一区二区三区视频| 精品久久久久久亚洲综合网| 7777精品伊人久久久大香线蕉完整版 | 久久精品欧美日韩精品| 精品国产一区二区三区四区四| 欧美精品黑人性xxxx| 欧美高清精品3d| 4438x亚洲最大成人网| 欧美久久久一区| 欧美一级日韩不卡播放免费| 欧美美女黄视频| 欧美白人最猛性xxxxx69交| 日韩欧美久久久| 久久亚洲精精品中文字幕早川悠里| 欧美变态tickling挠脚心| 精品99999| 欧美国产精品一区| 亚洲色大成网站www久久九九| 日韩一区有码在线| 亚洲一卡二卡三卡四卡五卡| 午夜影院久久久| 毛片av中文字幕一区二区| 国产一区不卡视频| gogo大胆日本视频一区| 在线国产电影不卡| 宅男噜噜噜66一区二区66| 日韩精品自拍偷拍| 欧美激情一区不卡| 一区二区三区产品免费精品久久75| 亚洲国产va精品久久久不卡综合| 日韩一区精品视频| 国产精品影视在线观看| 91蜜桃在线观看| 欧美一区二区三区视频免费播放| 精品国产一区二区三区忘忧草| 中文久久乱码一区二区| 亚洲黄色小说网站| 日精品一区二区| 国产在线一区观看| 在线看国产一区二区| 精品久久久久久综合日本欧美| 中文字幕一区在线观看| 亚洲国产精品久久人人爱蜜臀| 麻豆免费看一区二区三区| www.激情成人| 欧美一区二区视频免费观看| 精品国产不卡一区二区三区| 1000精品久久久久久久久| 五月天中文字幕一区二区| 国产成+人+日韩+欧美+亚洲| 视频一区视频二区中文| 色综合久久久网| 成人黄色软件下载| 国产精品羞羞答答xxdd | eeuss鲁一区二区三区| 欧美日韩国产经典色站一区二区三区| 精品欧美一区二区三区精品久久| 亚洲乱码日产精品bd| 久久av老司机精品网站导航| 色综合久久综合网97色综合| 精品国产青草久久久久福利| 亚洲资源中文字幕| 国产成人精品亚洲午夜麻豆| 欧美日韩国产片| 国产精品福利一区| 日韩黄色小视频| 99精品视频一区| 久久你懂得1024| 天堂久久久久va久久久久| aaa欧美日韩| 国产欧美一区二区三区沐欲 | 蜜乳av一区二区三区| 色先锋aa成人| 中文字幕av资源一区| 亚洲国产精品自拍| 91在线免费看| 欧美激情资源网| 韩国毛片一区二区三区| 91精品国产综合久久国产大片| 亚洲精品免费一二三区| 99久久er热在这里只有精品15| 久久久亚洲高清| 美洲天堂一区二卡三卡四卡视频| 欧美又粗又大又爽| 亚洲欧美乱综合| 成人动漫中文字幕| 日本一区二区三区久久久久久久久不| 日韩影院免费视频| 91精品午夜视频| 天堂av在线一区| 欧美三级中文字幕在线观看| 亚洲欧美另类图片小说| 99久久精品免费观看| 亚洲欧洲av色图| 色呦呦国产精品| 一区二区三区在线观看视频| 99综合电影在线视频| 国产精品国产自产拍在线| 成人午夜精品在线| 国产精品免费视频一区| 懂色av噜噜一区二区三区av| 欧美激情综合网| 99久久久久久| 亚洲国产日韩一级| 在线不卡的av| 激情综合色播五月| 国产视频一区在线播放| www.亚洲激情.com| 尤物在线观看一区| 欧美伦理影视网| 麻豆成人av在线| 国产日韩欧美亚洲| 99综合影院在线| 亚洲国产精品视频| 精品精品国产高清一毛片一天堂| 狠狠色综合色综合网络| 久久综合视频网| jlzzjlzz亚洲日本少妇| 亚洲一区中文日韩| 91精品国产综合久久精品| 国产一区二区三区四区五区美女| 中文字幕乱码亚洲精品一区| 99国产精品久久久久久久久久久 | 日韩午夜中文字幕| 国产一区二区导航在线播放| 中文字幕中文字幕一区二区| 91女厕偷拍女厕偷拍高清| 亚洲永久精品国产| 欧美精品一区二区久久婷婷| 成人免费视频免费观看| 亚洲成a人片综合在线| 精品剧情v国产在线观看在线|