增加 DebugBox.java 的注释

This commit is contained in:
许轲 2023-10-11 02:06:55 +08:00
parent 84753f8fdd
commit df3737d23e

View File

@ -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);
} }