Skip to content

Commit 41350e3

Browse files
fix(common): 修改TableView无数据时的显示文本 (#2146)
Signed-off-by: unknowIfGuestInDream <liang.tang.cx@gmail.com>
1 parent 37f5de5 commit 41350e3

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

common/src/main/java/com/tlcsdm/jfxcommon/debug/HttpTool.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import javafx.scene.control.CheckBox;
5252
import javafx.scene.control.ChoiceBox;
5353
import javafx.scene.control.ContextMenu;
54+
import javafx.scene.control.Label;
5455
import javafx.scene.control.MenuItem;
5556
import javafx.scene.control.TableColumn;
5657
import javafx.scene.control.TableView;
@@ -186,6 +187,10 @@ private void initializeOption() {
186187
paramsDataTableView.setItems(paramsDatatableData);
187188
paramsHeaderTableView.setItems(paramsHeadertableData);
188189
paramsCookieTableView.setItems(paramsCookietableData);
190+
191+
paramsDataTableView.setPlaceholder(new Label(I18nUtils.get("common.tool.debug.httpTool.table.noData")));
192+
paramsHeaderTableView.setPlaceholder(new Label(I18nUtils.get("common.tool.debug.httpTool.table.noData")));
193+
paramsCookieTableView.setPlaceholder(new Label(I18nUtils.get("common.tool.debug.httpTool.table.noData")));
189194
}
190195

191196
private void initializeUI() {

common/src/main/resources/com/tlcsdm/jfxcommon/i18n/messages_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ common.tool.debug.httpTool.column.paramValue=Parameter\nValue
133133
common.tool.debug.httpTool.column.remark=Remark
134134
common.tool.debug.httpTool.tab.responseContent=Response Content
135135
common.tool.debug.httpTool.tab.responseHeader=Response Header
136+
common.tool.debug.httpTool.table.noData=No data to display

common/src/main/resources/com/tlcsdm/jfxcommon/i18n/messages_ja.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ common.tool.debug.httpTool.column.paramValue=\u30D1\u30E9\u30E1\u30FC\u30BF\u502
133133
common.tool.debug.httpTool.column.remark=\u5099\u8003
134134
common.tool.debug.httpTool.tab.responseContent=\u56DE\u7B54\u5185\u5BB9
135135
common.tool.debug.httpTool.tab.responseHeader=\u5FDC\u7B54\u30D8\u30C3\u30C0\u30FC
136+
common.tool.debug.httpTool.table.noData=\u8868\u793A\u3059\u308B\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093

common/src/main/resources/com/tlcsdm/jfxcommon/i18n/messages_zh.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ common.tool.debug.httpTool.column.paramValue=\u53C2\u6570\u503C
133133
common.tool.debug.httpTool.column.remark=\u5907\u6CE8
134134
common.tool.debug.httpTool.tab.responseContent=\u54CD\u5E94\u5185\u5BB9
135135
common.tool.debug.httpTool.tab.responseHeader=\u54CD\u5E94\u5934\u90E8
136+
common.tool.debug.httpTool.table.noData=\u6CA1\u6709\u53EF\u663E\u793A\u7684\u6570\u636E

0 commit comments

Comments
 (0)