Directory

← Back

Array Container

A collection of utility containers including the ArrayContainer wrapper over Java arrays

Author

Rating

Popularity

<100

ArrayContainer is a simple wrapper for Java object arrays to allow using them in Table and Select components easily. Currently read-only and only one-dimensional arrays are supported. The LazyContainer allows generating the content dynamically through a callback interface.

Sample code

    // An array
    Integer[] numbers = {4, 8, 15, 16, 23, 42};
    
    // The wrapper
    ArrayContainer<Integer> numberCtn = new ArrayContainer<Integer> (numbers);

    // The column property ID is used by Table as the default for
    // column header. It is by default "0".
    numberCtn.setColumnPropertyId("Number");

    // Use the wrapper as the data source for the table
    Table numbersTbl = new Table("Integers", numberCtn);
    mainWindow.addComponent(numbersTbl);

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

Released
2010-02-22
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.2+
Browser
Internet Explorer
Internet Explorer
Internet Explorer
Firefox
Opera
Safari

Array Container - Vaadin Add-on Directory

A collection of utility containers including the ArrayContainer wrapper over Java arrays Array Container - Vaadin Add-on Directory
ArrayContainer is a simple wrapper for Java object arrays to allow using them in Table and Select components easily. Currently read-only and only one-dimensional arrays are supported. The LazyContainer allows generating the content dynamically through a callback interface.
Online