6
A
回答
0
沒有預製控件以這種方式工作,但可以使用TextField事件創建一個。
0
我們可以讓我們自己的工具欄like this
<ToolBar prefHeight="40.0" prefWidth="349.0" >
<items>
<Button fx:id="buttonCloseSearch" styleClass="buttonSearchClose">
<graphic>
<FontAwesomeIconView styleClass="buttonSearchCloseIcon" />
</graphic>
</Button>
<CustomTextField styleClass="searchField">
<left>
<Label styleClass="searchBoxLabel">
<graphic>
<FontAwesomeIconView styleClass="searchBoxLabelIcon" />
</graphic>
</Label>
</left>
</CustomTextField>
<Button fx:id="buttonUpSearch" styleClass="buttonUpSearch">
<graphic>
<FontAwesomeIconView styleClass="buttonSearchUpIcon" />
</graphic>
</Button>
<Button fx:id="buttonDownSearch" styleClass="buttonDownSearch">
<graphic>
<FontAwesomeIconView styleClass="buttonSearchDownIcon" />
</graphic>
</Button>
<Label text="1 of 2 matchs" />
</items>
</ToolBar>
.buttonSearchCloseIcon {
-glyph-size: 15;
-glyph-name: CLOSE;
}
.buttonSearchUpIcon {
-glyph-size: 15;
-glyph-name: CARET_UP;
}
.buttonSearchDownIcon {
-glyph-size: 15;
-glyph-name: CARET_DOWN;
}
.buttonSearchClose, .buttonUpSearch, .buttonDownSearch {
-fx-background-color: transparent;
-fx-background-insets: 0;
}
.searchBoxLabel {
-fx-padding: 0 2 0 7;
}
.searchBoxLabelIcon {
-glyph-size: 13;
-glyph-name: SEARCH;
}
相關問題
- 1. 搜索文本框工具
- 2. jsp搜索文本框
- 3. jQuery Datatables搜索文本框
- 4. Datagrid文本框搜索C#
- 5. 所有搜索文本框
- 6. 從搜索框中檢索文本
- 7. 文本框複製到搜索框
- 8. javafx文本框的顏色
- 9. 清除搜索框(文本框的文本)查詢
- 10. WPF文本框的搜索組件
- 11. 搜索欄的文本框覆蓋
- 12. iOS:語音到搜索框的文本
- 13. DatePicker +搜索表格中的文本框
- 14. CSS樣式的搜索文本框
- 15. 搜索文本框中的圖標
- 16. 組合框的DropDownList搜索文本
- 17. asp.net中的多重搜索文本框
- 18. PHP使用多個文本框搜索多列的MySQL搜索
- 19. 如何從搜索文本框清晰的文本搜索完成後在MVC
- 20. 我如何搜索文本框中的視覺基本文本
- 21. 搜索文本
- 22. 搜索文本
- 23. 將默認搜索文本添加到搜索框html
- 24. 執行搜索喜歡谷歌搜索文本框
- 25. primeng大搜索文本框與搜索圖標
- 26. 將文本框鏈接到expedia.com搜索
- 27. 多個文本框搜索結果
- 28. 文本框搜索像谷歌
- 29. 文本框與搜索圖標放置
- 30. 通過文本框搜索datagridview c#.NET
我也有興趣。你有沒有找到任何例子? –
有沒有示例代碼或教程? – Zcon