增加 DebugBox.java 的注释
This commit is contained in:
parent
84753f8fdd
commit
df3737d23e
@ -3,17 +3,28 @@ package org.jcnc.jnotepad.component.module.vbox.components;
|
|||||||
import org.jcnc.jnotepad.component.module.TextCodeArea;
|
import org.jcnc.jnotepad.component.module.TextCodeArea;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Debug终端界面。
|
* 调试信息显示界面。
|
||||||
*
|
*
|
||||||
|
* <p>这个类实现了一个用于显示调试信息的界面,它是TextCodeArea的子类,并在构造函数中将其设置为不可编辑状态。</p>
|
||||||
|
*
|
||||||
|
* <p>调试信息可以通过调用setText方法将文本添加到界面中。</p>
|
||||||
*
|
*
|
||||||
* @author cccqyu
|
* @author cccqyu
|
||||||
*/
|
*/
|
||||||
public class DebugBox extends TextCodeArea {
|
public class DebugBox extends TextCodeArea {
|
||||||
|
/**
|
||||||
|
* 创建DebugBox对象的构造函数。
|
||||||
|
*/
|
||||||
public DebugBox() {
|
public DebugBox() {
|
||||||
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