JavaFX 的 UI 控件集 ControlsFX

转载 2013年12月05日 12:55:56

出处:http://www.oschina.net/p/controlsfx


JavaFX 的 UI 控件集 ControlsFX

ControlsFX 开源项目旨在为 JavaFX 开发提供更多的 UI 控件和其他工具。 



该项目主要针对JavaFX 8.0(捆绑在JDK 8中),考虑到JavaFX中已经包含了一些控件,ControlsFX只会包含新的控件和功能,并且还有一个完善的javadoc文档。 

ControlsFX包含的主要特性如下: 

1.  按钮栏 

这是一个按钮容器,可以自动根据底层操作系统来将按钮放置到正确的位置,开发者只需标注按钮的类型,该容器会自动完成剩余工作。 



2.  对话框 

一个预建的模态对话框集合,提供了一个简单但强大的API。支持所有预建对话框类型,还可以轻松创建自定义对话框。 



3.  GridView 

一个快速、虚拟化的网格容器,类似于ListView。对于图像显示来说,该控件非常实用。 



4.  范围滑块 

如果你希望用户指定一个范围,可以使用该控件。用户只需在两端输入数字或拖动滑块即可。 



5.  评分控件 

一个简单的评分控件,允许用户在范围内指定一个分数。 



6.  SegmentedButton(分段按钮) 

如果你希望将一些有关联的按钮控件组合在一起,可以使用该控件。 



需要注意的是,ControlsFX目前只支持JavaFX 8.0 b87(捆绑在JDK8 b87版本中)及更高版本,如果你使用的是JDK 8早期版本,则需要升级。JavaFX 2.x及之前版本不受支持。

介绍内容来自 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:

相关文章推荐

JavaFX的扩展控件库ControlsFX介绍

ControlsFX 是JavaFX的一个扩展控件库。是对JavaFX内置的控件的一个补充。   下面是ControlsFX的示例程序:      大家可以看到,Cont...

JavaFx控件org.controlsfx.control.CheckComboBox缺陷说明

CheckComboBox是增强版的ComboBox,支持多选

关于JavaFX拓展控件库ControlsFx的AutoCompletionBinding的使用

首先是API文档    controlsfx官方 然后,选择  HomePage 这里有两个版本,部分控件在两个版本存在新的功能方法。如AutoCompletionBinding抽象类,在8.4版...

JavaFX的扩展控件库ControlsFX介绍

声明:   本博客文章原创类别的均为个人原创,版权所有。转载请注明出处: http://blog.csdn.net/ml3947,另外本人的个人博客:http://www.wjfxgame.com。 ...
  • ml3947
  • ml3947
  • 2013年07月11日 14:03
  • 3931

JavaFX:用CSS来美化你的UI控件

这个主题讲述了:怎样在JavaFX中使用CSS来给你的应用程序创建自定义的外观样式表包含了关于UI元素的外观样式定义。在JavaFX中使用CSS和在HTML使用css类似。JavaFX中的css是基于...
  • zavens
  • zavens
  • 2015年02月06日 10:12
  • 9671

JavaFX - UI控件 - 标签

本章主要介绍如何使用标签(Label),该类位于JavaFX API的javafx.scene.control包中,用于显示一个文本元素。 接下来会介绍如何让文本元素自动换行来适应受限空间,添加一个图...
  • alanzyy
  • alanzyy
  • 2014年06月19日 01:17
  • 2070

第六回 JavaFX2.0 UI 控件

原文地址http://download.oracle.com/javafx/2.0/ui_controls/overview.htm     JavaFX控件是通过API在场景图形中...

JavaFX2.0 UI控件教程 之 控件概览

JavaFX内建UI控件     本篇教程内容覆盖JavaFX内建的有效图形界面控件(UI控件),包括如下章节内容: ·        JavaFX UI Controls ·       ...
  • s_ghost
  • s_ghost
  • 2012年04月18日 15:48
  • 5566

Java学习笔记(16)JavaFX UI Controls and Multimedia JavaFX UI控件和多媒体

javafx2 日期控件

  • 2013年04月07日 09:12
  • 17KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:JavaFX 的 UI 控件集 ControlsFX
举报原因:
原因补充:

(最多只允许输入30个字)