增加 RunBox.java 的注释
This commit is contained in:
parent
a3f77bc6fe
commit
cac5a365f5
@ -3,21 +3,29 @@ package org.jcnc.jnotepad.component.module.vbox.components;
|
|||||||
import org.jcnc.jnotepad.component.module.TextCodeArea;
|
import org.jcnc.jnotepad.component.module.TextCodeArea;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run终端界面。
|
* 运行信息显示界面。
|
||||||
*
|
*
|
||||||
|
* <p>这个类实现了一个用于显示运行信息的界面,它是TextCodeArea的子类,并在构造函数中将其设置为不可编辑状态。</p>
|
||||||
|
*
|
||||||
|
* <p>运行信息可以通过调用setText方法将文本添加到界面中。</p>
|
||||||
*
|
*
|
||||||
* @author cccqyu
|
* @author cccqyu
|
||||||
*/
|
*/
|
||||||
public class RunBox extends TextCodeArea {
|
public class RunBox extends TextCodeArea {
|
||||||
|
/**
|
||||||
|
* 创建RunBox对象的构造函数。
|
||||||
|
*/
|
||||||
public RunBox() {
|
public RunBox() {
|
||||||
super();
|
super();
|
||||||
this.setEditable(false);
|
this.setEditable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置运行信息的文本内容。
|
||||||
|
*
|
||||||
|
* @param text 要显示的运行信息文本
|
||||||
|
*/
|
||||||
public void setText(String text) {
|
public void setText(String text) {
|
||||||
this.appendText(text);
|
this.appendText(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user