Add-on Directory

← Back

GridTree

A Grid extension that allows to visualize a hierarchy of its Items

Author

Rating

Popularity

<100

A Grid extension that allows to visualize a hierarchical container. This is an experimental add-on, because I do not know what will be its value for the end-user. Right now it has minimal set of features - basically just showing the tree structure in a grid. I would like to figure out do people need it and if yes continue developing and fixing bugs. Please try it out and comment.

Known issues that are not supported:

  • Sorting does not take into account the hierarchical structure. Just plain sorting.
  • Hiding the column with expand button, does not create the expand button for the next first visible column.

Sample code

HierarchicalContainer hc= createContainer();

//Create grid tree container
GridTreeContainer treeContainer=new GridTreeContainer(hc);

//Second parameter in the constructor is an propertyId of the container 
// of the first visible column
GridTree gridTree= new GridTree(treeContainer,"id");

//add grid tree to layout

layout.addComponent(gridTree);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Use maven instead of Ivy as a project build tool

Released
2015-09-07
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.5+
Browser
Firefox
Google Chrome

ResetButtonForTextField - Vaadin Add-on Directory

Extension that adds a reset button to any TextField component ResetButtonForTextField - Vaadin Add-on Directory
Adds a reset button to a text field, allowing users to clear the value of the field with one click. The reset button is drawn using SVG images in supported browsers. With IE8 PNG versions of those are used. Also an example project for a blog post [Extending components in Vaadin 7](https://vaadin.com/blog/-/blogs/extending-components-in-vaadin-7). ## Usage ## Either add Maven org.vaadin resetbuttonfortextfield 1.2.1 or Ivy dependency or just add the JAR to your project, compile the widgetset and then extend any TextField: TextField tf = new TextField(); ResetButtonForTextField.extend(tf);
Online Demo
Issue Tracker
Source Code
Blog post

ResetButtonForTextField version 1.1.1
- Fixed NPE if reset button was clicked and no listeners were set

ResetButtonForTextField version 1.2.1
* Fix errors in pom.xml

Online