JavaFX 的 UI 控件集 ControlsFX
出處:http://www.oschina.net/p/controlsfx
JavaFX 的 UI 控件集 ControlsFX
ControlsFX 開源項目旨在為 JavaFX 開發(fā)提供更多的 UI 控件和其他工具。?
該項目主要針對JavaFX 8.0(捆綁在JDK 8中),考慮到JavaFX中已經(jīng)包含了一些控件,ControlsFX只會包含新的控件和功能,并且還有一個完善的javadoc文檔。?
ControlsFX包含的主要特性如下:?
1.? 按鈕欄?
這是一個按鈕容器,可以自動根據(jù)底層操作系統(tǒng)來將按鈕放置到正確的位置,開發(fā)者只需標注按鈕的類型,該容器會自動完成剩余工作。?
2.? 對話框?
一個預(yù)建的模態(tài)對話框集合,提供了一個簡單但強大的API。支持所有預(yù)建對話框類型,還可以輕松創(chuàng)建自定義對話框。?
3.? GridView?
一個快速、虛擬化的網(wǎng)格容器,類似于ListView。對于圖像顯示來說,該控件非常實用。?
4.? 范圍滑塊?
如果你希望用戶指定一個范圍,可以使用該控件。用戶只需在兩端輸入數(shù)字或拖動滑塊即可。?
5.? 評分控件?
一個簡單的評分控件,允許用戶在范圍內(nèi)指定一個分數(shù)。?
6.? SegmentedButton(分段按鈕)?
如果你希望將一些有關(guān)聯(lián)的按鈕控件組合在一起,可以使用該控件。?
需要注意的是,ControlsFX目前只支持JavaFX 8.0 b87(捆綁在JDK8 b87版本中)及更高版本,如果你使用的是JDK 8早期版本,則需要升級。JavaFX 2.x及之前版本不受支持。
介紹內(nèi)容來自?iteye
--------------------------------------------------------------------------------
出處:https://bitbucket.org/controlsfx/controlsfx/
ControlsFX is an?open source project?for JavaFX that aims to provide really high quality UI controls and other tools to complement the core JavaFX distribution. It has been developed for JavaFX 8.0 and beyond, and has a guiding principle of only accepting new controls / features when all existing code is at an acceptably high level, including thankless jobs like having high quality javadoc documentation. This ensure a high quality release is available at all times, with all experimental work being done in branches of the main code base.
Important note:?ControlsFX will only work on JavaFX 8.0 b118 or later. If you are running on earlier versions of JDK 8, please?upgrade. If you are still using JavaFX 2.x then unfortunately this library will not work for you.
Getting Started
If you want to?play with?the ControlsFX sample application, either clone the ControlsFX repo from bitbucket and then run the?org.controlsfx.HelloControlsFX?application that resides within thesrc/samples/java?directory, or run the samples jar file from the command line with the following command (or a variation depending on your operating system):
java -cp controlsfx-8.0.3.jar:controlsfx-8.0.3-samples.jar org.controlsfx.HelloControlsFX
If you think you have a feature?you can contribute, a bug you want to fix, or have a bug youd like to file, please direct it to the?issue tracker over at the ControlsFX bitbucket website.
If you?want to use?ControlsFX, then youre probably wondering how to use the API that weve slaved over for hours! In your case, the best and definitive location for help is definitely?our javadocs. Fear not, these are not a barren wasteland of undescribed functionality weve poured our hearts into making these javadocs full to the brim of examples, commentary and explanation. If anything is unclear to you,?file a bug in our issue tracker?and well do our best to update the documentation straight away!
If you?have questions, you should join the the?mailing list.
Another great place to explore is our?sample code, all located in the?src/samples directory?of our?code repository. Weve put a bunch of effort into making these examples something you can learn from.
Release Versioning
ControlsFX has a slightly different approach to version numbers than other projects. We use the fairly traditional x.y.z numbering system, except in the case of ControlsFX, the x.y portion is used to represent the base JavaFX version required. In other words, ControlsFX 8.0.0 is the first release of ControlsFX to work on JavaFX 8.0 and above. ControlsFX 8.1.5 (if we ever release that version) is used to represent that the release will work on JavaFX 8.1 (and not JavaFX 8.0), and is the 6th release (remember: real programmers count from zero??).
In other words, we do not differentiate between bug fix and feature releases we will clarify what the release contains on a per-release basis. Also, we will always aim to require the minimal version of JavaFX possible, but we are also not going to hold back features / bug fixes / etc if we can resolve them by moving to a newer release. Prior to moving up to a new JavaFX version we will always tag therepository?and make available a download of the source and compiled code for the earlier version, for people who are unable to move to the newer JavaFX release.
Downloads
The library can be downloaded from from?ControlsFX website. It is possible to download the current release (8.0.3), or also current development snapshots from Maven Central using the following dependency settings:
Maven
<dependency><groupId>org.controlsfx</groupId><artifactId>controlsfx</artifactId><version>8.0.3</version> </dependency>Gradle
dependencies {runtime 'org.controlsfx:controlsfx:8.0.3' }Ivy
<dependency org="org.controlsfx" name="controlsfx" rev="8.0.3"/>Sbt
libraryDependencies += "org.controlsfx" % "controlsfx" % "8.0.3"License
ControlsFX is licensed under the?3-Clause BSD license. We are not lawyers, but our interpretation of this license suggests to us that it is business friendly, requiring only the redistribution of the?3-clause BSD license we distribute with ControlsFX. As always, I suggest you review the license with the appropriate people, rather than take the advice of software engineers. If this license is not suitable, please contact?Jonathan Giles?to discuss an alternative license.
--------------------------------------------------------------------------------
Useful links:
- ControlsFX homepage:?http://controlsfx.org
- BitBucket repo:?http://code.controlsfx.org
- Issue tracker:?http://issues.controlsfx.org
- Contributor license agreement:?http://cla.controlsfx.org
- This Google group:?http://groups.controlsfx.org
- JavaFX 應(yīng)用博客:?http://www.javafxblogs.com
轉(zhuǎn)載于:https://www.cnblogs.com/leonxyzh/p/7289043.html
總結(jié)
以上是生活随笔為你收集整理的JavaFX 的 UI 控件集 ControlsFX的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件工程概述
- 下一篇: ajax请求web服务返回json格式