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

📄 sdatabsheet.java

📁 很好的UI界面源码..还有自己的输入法,可以更换风格.可以学习和使用
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package cn.sda.ui;import javax.microedition.lcdui.Graphics;import javax.microedition.lcdui.Image;/** * * @author Administrator */public class SDATabSheet extends SDABaseControl {    private String caption = "";    private Image image = null;    private int buttonWidth = 40;    private int buttonHeight = 40;    private int index=0;    public SDATabSheet() {        super();        visible=false;        backColor=SDAConsts.clWhite;    }    public void paint() {        if (!IsCanPaint()) {            return;        }        Graphics g = form.getGraphics();        SetClip(g);        g.setFont(getFont());        if(!transparent){            g.setColor(backColor);            fillRect(g, 0, 0, width, height);        }        PaintChilds();    }    public String getCaption() {        return caption;    }    public void setCaption(String caption) {        this.caption = caption;    }    public Image getImage() {        return image;    }    public void setImage(Image image) {        this.image = image;    }    public int getButtonHeight() {        return buttonHeight;    }    public void setButtonHeight(int buttonHeight) {        this.buttonHeight = buttonHeight;    }    public int getButtonWidth() {        return buttonWidth;    }    public void setButtonWidth(int buttonWidth) {        this.buttonWidth = buttonWidth;    }    public int getIndex() {        return index;    }    protected void setIndex(int index) {        this.index = index;    }    }

⌨️ 快捷键说明

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