Pular para o conteúdo principal

Postagens

Mostrando postagens de janeiro, 2012

A JavaFX App For The GateIn Navigation REST API

GateIn is a JBoss project that consists in a portal that goes beyond a simple portlet container. GateIn is the union of JBoss Portal and eXo Platform, so with GateIn you will have more than a JSR 168/286 implementation. Recently in the new GateIn 3.2, efforts for a public API has been done. The navigation REST API, for example, is complete in "read-only" part which means you can access all your page nodes and iterate through them. For more information about the GateIn REST API you can look at this article . To consume this API I decided to create a JavaFX application that would allow me to explore some of the new JavaFX features, like the cool embedded Browser and the TreeView control . In this post I want to show you this application, and try to share some of my experiences during the coding. Consuming the GateIn Management API To consume the Management API, specifically the navigation part, I created a separated Eclipse project, and was used the RESTEasy client A...

Show data in JavaFX is made easy by DataFX project

A friend of mine, Teles Maciel , was scrapping a page that contains all the Islam formal prayers schedule for 2012 for who lives in São Paulo. He aims to create an app for mobile. While checking his sample XML I decided to use DataFX project to show these data, and I created an app in less than 5 minutes! The DataFX project It's divided in two main parts: Cell Factories and Data Sources and there is the RedFX integration. Data Sources objective is to facilitate the access to XML/JDBC/CSV/JSON data and show in JavaFX. For example, you can read an XML file and visualize the data in a JavaFX table with a few lines of code. Talking in code, you basically need to know the following Interfaces to use DataFX: - DataSourceReader : Responsile for reading a source of data. Two classes that implements this interface are NetworkSource and FileSource ; - DataSource : Responsible for create the JavaFX(e.g. TableColumn, ObsevableLists) stuffs from the DataSourceReader. From this ...

The GateIn Management/Navigation API

Consuming popular APIs is very interesting and cool. You can in a few minutes seek in the web some how-to, or a sample application and create yours. After create a lot of these kind of applications I got myself bored and no motivation to keep posting. For example, a Twitter app will be only another twitter app and there's a lot of API needing clients or needing to be explored. So I started to look new APIs to explore. One of these not well recognized, but very well designed in REST terms is GateIn Management API. GateIn is the JBoss Java Portal an it is a great tool with a big community behind it. The GateIn 3.2 API is not hard to understand and you can learn more about it in this great documentation . Basically we have the base resource called... Resource. The Resource contains all the possible operations and their children. You can navigate by the children and find more operations. You will notice that the more notable feature of this API is the presence of HATEOAS . The API ...