sdatabsheet.java

来自「很好的UI界面源码..还有自己的输入法,可以更换风格.可以学习和使用」· Java 代码 · 共 83 行

JAVA
83
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?