label.java

来自「A framework written in Java for implemen」· Java 代码 · 共 36 行

JAVA
36
字号
package gnu.kawa.models;/** A "label" may have some text and/or an icon. * It probably should be a combination of text and image. */public class Label extends Model  implements Viewable, java.io.Serializable{  String text;  public Label ()  {  }  public Label (String text)  {    this.text = text;  }  public void makeView (Display display, Object where)  {    display.addLabel(this, where);  }  public String getText()  {    return text;  }  public void setText (String text)  {    this.text = text;    notifyListeners("text");  }}

⌨️ 快捷键说明

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