From 8d662de2fd262b3a485f16e197cb4d0ca2a61cdf Mon Sep 17 00:00:00 2001
From: zsh_root <979909237@qq.com>
Date: 星期三, 10 十二月 2025 17:03:47 +0800
Subject: [PATCH] 发布版V1.0
---
src/PublicPannel/BaseStationPanel.java | 70 +++++++++++++++++-----------------
1 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/src/PublicPannel/BaseStationPanel.java b/src/PublicPannel/BaseStationPanel.java
index 6a053e3..eb91f97 100644
--- a/src/PublicPannel/BaseStationPanel.java
+++ b/src/PublicPannel/BaseStationPanel.java
@@ -23,7 +23,7 @@
private void initializeUI() {
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
- // 氝樓價桴統杅砐
+ // 姘濇〒鍍规〈绲辨潊鐮�
String[][] parameters = {
{"18.", "external.control"},
{"20.", "adjacent.stations.count"},
@@ -61,13 +61,13 @@
paramPanel.add(labels[index]);
paramPanel.add(textFields[index]);
- // 氝樓潔擒
+ // 姘濇〒娼旀搾
paramPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, 35));
panel.add(paramPanel);
}
public void updateLanguage() {
- // 載陔垀衄梓ワ腔恅掛
+ // 杓夐檾鍨�琛勬銉厰鎭呮帥
String[][] parameters = {
{"18.", "external.control"},
{"20.", "adjacent.stations.count"},
@@ -93,12 +93,12 @@
repaint();
}
- // 新增:获取文本框数组的方法
+ // 鏂板锛氳幏鍙栨枃鏈鏁扮粍鐨勬柟娉�
public JTextField[] getTextFields() {
return textFields;
}
/**
- * 更新基站面板字段
+ * 鏇存柊鍩虹珯闈㈡澘瀛楁
*/
public void updateFields(DellTag55AA03.ParseResult result) {
if (result == null) {
@@ -109,61 +109,61 @@
try {
- // 根据参数顺序更新对应的文本框
+ // 鏍规嵁鍙傛暟椤哄簭鏇存柊瀵瑰簲鐨勬枃鏈
if (textFields.length > 0 && result.dizhi0x18 != null) {
- textFields[0].setText(String.valueOf(result.dizhi0x18)); // 外设控制
+ textFields[0].setText(String.valueOf(result.dizhi0x18)); // 澶栬鎺у埗
}
if (textFields.length > 1 && result.dizhi0x20 != null) {
- textFields[1].setText(String.valueOf(result.dizhi0x20)); // 临近基站数量
+ textFields[1].setText(String.valueOf(result.dizhi0x20)); // 涓磋繎鍩虹珯鏁伴噺
}
if (textFields.length > 2 && result.dizhi0x22 != null) {
- textFields[2].setText(result.dizhi0x22); // 临近基站1
+ textFields[2].setText(result.dizhi0x22); // 涓磋繎鍩虹珯1
}
if (textFields.length > 3 && result.dizhi0x24 != null) {
- textFields[3].setText(result.dizhi0x24); // 临近基站2
+ textFields[3].setText(result.dizhi0x24); // 涓磋繎鍩虹珯2
}
if (textFields.length > 4 && result.dizhi0x26 != null) {
- textFields[4].setText(result.dizhi0x26); // 临近基站3
+ textFields[4].setText(result.dizhi0x26); // 涓磋繎鍩虹珯3
}
if (textFields.length > 5 && result.dizhi0x28 != null) {
- textFields[5].setText(result.dizhi0x28); // 临近基站4
+ textFields[5].setText(result.dizhi0x28); // 涓磋繎鍩虹珯4
}
if (textFields.length > 6 && result.dizhi0x2A != null) {
- textFields[6].setText(result.dizhi0x2A); // 临近基站5
+ textFields[6].setText(result.dizhi0x2A); // 涓磋繎鍩虹珯5
}
if (textFields.length > 7 && result.dizhi0x2C != null) {
- textFields[7].setText(result.dizhi0x2C); // 临近基站6
+ textFields[7].setText(result.dizhi0x2C); // 涓磋繎鍩虹珯6
}
if (textFields.length > 8 && result.dizhi0x2E != null) {
- textFields[8].setText(result.dizhi0x2E); // 临近基站7
+ textFields[8].setText(result.dizhi0x2E); // 涓磋繎鍩虹珯7
}
if (textFields.length > 9 && result.dizhi0x30 != null) {
- textFields[9].setText(result.dizhi0x30); // 临近基站8
+ textFields[9].setText(result.dizhi0x30); // 涓磋繎鍩虹珯8
}
if (textFields.length > 10 && result.dizhi0x32 != null) {
- textFields[10].setText(result.dizhi0x32); // 临近基站9
+ textFields[10].setText(result.dizhi0x32); // 涓磋繎鍩虹珯9
}
if (textFields.length > 11 && result.dizhi0x34 != null) {
- textFields[11].setText(result.dizhi0x34); // 临近基站10
+ textFields[11].setText(result.dizhi0x34); // 涓磋繎鍩虹珯10
}
if (textFields.length > 12 && result.dizhi0x44 != null) {
- textFields[12].setText(result.dizhi0x44); // 同步基站ID
+ textFields[12].setText(result.dizhi0x44); // 鍚屾鍩虹珯ID
}
if (textFields.length > 13 && result.dizhi0x46 != null) {
- textFields[13].setText(String.valueOf(result.dizhi0x46)); // 同步基站类型
+ textFields[13].setText(String.valueOf(result.dizhi0x46)); // 鍚屾鍩虹珯绫诲瀷
}
} catch (Exception e) {
@@ -171,64 +171,64 @@
e.printStackTrace();
}
- // 重新验证和重绘面板
+ // 閲嶆柊楠岃瘉鍜岄噸缁橀潰鏉�
revalidate();
repaint();
}
public String getdizhi0x18() {
return textFields.length > 0 ? textFields[0].getText() : "";
- }//外设控制
+ }//澶栬鎺у埗
public String getdizhi0x20() {
return textFields.length > 1 ? textFields[1].getText() : "";
- }//临近基站数量
+ }//涓磋繎鍩虹珯鏁伴噺
public String getdizhi0x22() {
return textFields.length > 2 ? textFields[2].getText() : "";
- }//临近基站1
+ }//涓磋繎鍩虹珯1
public String getdizhi0x24() {
return textFields.length > 3 ? textFields[3].getText() : "";
- }//临近基站2
+ }//涓磋繎鍩虹珯2
public String getdizhi0x26() {
return textFields.length > 4 ? textFields[4].getText() : "";
- }//临近基站3
+ }//涓磋繎鍩虹珯3
public String getdizhi0x28() {
return textFields.length > 5 ? textFields[5].getText() : "";
- }//临近基站4
+ }//涓磋繎鍩虹珯4
public String getdizhi0x2A() {
return textFields.length > 6 ? textFields[6].getText() : "";
- }//临近基站5
+ }//涓磋繎鍩虹珯5
public String getdizhi0x2C() {
return textFields.length > 7 ? textFields[7].getText() : "";
- }//临近基站6
+ }//涓磋繎鍩虹珯6
public String getdizhi0x2E() {
return textFields.length > 8 ? textFields[8].getText() : "";
- }//临近基站7
+ }//涓磋繎鍩虹珯7
public String getdizhi0x30() {
return textFields.length > 9 ? textFields[9].getText() : "";
- }//临近基站8
+ }//涓磋繎鍩虹珯8
public String getdizhi0x32() {
return textFields.length > 10 ? textFields[10].getText() : "";
- }//临近基站9
+ }//涓磋繎鍩虹珯9
public String getdizhi0x34() {
return textFields.length > 11 ? textFields[11].getText() : "";
- }//临近基站10
+ }//涓磋繎鍩虹珯10
public String getdizhi0x44() {
return textFields.length > 12 ? textFields[12].getText() : "";
- }//同步基站ID
+ }//鍚屾鍩虹珯ID
public String getdizhi0x46() {
return textFields.length > 13 ? textFields[13].getText() : "";
- }//同步基站类型
+ }//鍚屾鍩虹珯绫诲瀷
}
\ No newline at end of file
--
Gitblit v1.10.0