Jump to content
Wikipedia The Free Encyclopedia

Apache Pivot

From Wikipedia, the free encyclopedia
Open-source platform for building applications in Java
This article relies largely or entirely on a single source . Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.
Find sources: "Apache Pivot" – news · newspapers · books · scholar · JSTOR
(February 2012)
Apache Pivot
Pivot logo
Developer Apache Software Foundation
Stable release
2.0.5 / July 8, 2017; 8 years ago (2017年07月08日)
Repository Pivot Repository
Written inJava
Operating system Cross-platform
Platform Java
Size 20 MB (archived)
Type Rich web application toolkit
License Apache License 2.0
Websitepivot.apache.org

Apache Pivot is an open-source platform for building rich web applications in Java or any JVM-compatible language. It is released under the Apache License version 2.0.

Architecture

[edit ]

Its classes are divided in the following categories:[1]

  • Core classes that enable the classes in the other categories to function
  • WTK classes that provide user interface elements such as buttons and lists. These are built according to the model-view-controller architecture. Most of Pivot's classes are included in the WTK category.
  • Web classes that enable communication with remote computers
  • Charts that allow the software engineer to build interactive charts
  • Tools that provide utility functionality

WTK

[edit ]

WTK or widgets toolkit are the graphical components of Apache Pivot. There are more widgets than in other Java GUI libraries like JFC/Swing, SWT or JavaFX. The components are based on Java2D and are completely skinnable and support color schemes. The demos "Kitchen Sink" and "Component Explorer" give a complete overview and show the possibilities of interaction.[2] Additionally, it is easy to add and use self-made components because of the open structure. Also part of WTK are the so-called decorators which add graphical effects and even animations to the components.

BXML

[edit ]

In Apache Pivot, the GUI usually is designed using BXML files. BXML is an XML-based markup language for simplifying the construction of Java object hierarchies. While it is most often used to define the user interface of an Apache Pivot application, it is not limited to user interface construction, and can actually be used to create hierarchies of any object type. In the case of Apache Pivot the designer can place the WTK-components and set their properties without writing a single line of Java code. In more complex projects there usually is one class file for each BXML file to hold the logic, though there are other possibilities.

Scripting

[edit ]

Apache Pivot supports all JSR 223 scripting languages to script the BXML files. It is even possible to create an entire Pivot application without any compiled code at all.[3] The script fragments can either be placed inside certain tags directly inside a BXML file, or in external files which get included during runtime.

Non-GUI features

[edit ]

The WTK is just one part of Pivot, but it is a complete rich web application framework. Pivot has its own Collection API (to ease synchronizing the contents to the GUI) and APIs for accessing REST web services and parsing RSS, JSON and XML.

References

[edit ]
  1. ^ "Platform Overview | Apache Pivot". pivot.apache.org. Retrieved 2025年09月15日.
  2. ^ "Apache Pivot brings Java into RIA world". SD Times. 2010年01月21日. Retrieved 2022年09月27日.
  3. ^ "Table Row Editing in Apache Pivot". Web Advice. 24 September 2016.
[edit ]
Top-level
projects
Commons
Incubator
Other projects
Attic
Licenses

AltStyle によって変換されたページ (->オリジナル) /