|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| Option<K,V> | Each option is identified by a key (unique or not) and a value that is to be displayed. |
| OptionFormatter | Implement this interface to be able to process yourself each Option. |
| OptionProvider<K,V> | Simple interface implemented by all the classes that can provide a list of options. |
| TreeProvider<K,V> | Provide nodes for the Tree. |
| Class Summary | |
|---|---|
| BasicDBOptionList | A simple option list builder having string keys and values. |
| BasicDBTreeProvider | Simple tree provider, having integer keys and string values. |
| DBOptionList<K,V> | Get a list of option based on a simple query. |
| DBTreeProvider<K,V> | Implementation of TreeProvider that takes a database query as argument. |
| Select<K,V> | Build the options for a select HTML tag. |
| Tree<K,V> | Generic tree object. |
This package is a collection of useful HTML helper objects.
Here is a sample implementation for building a tree:
// Make sure one of the root entries is first here! DBFunctions db = new DBFunctions(dbProp, "SELECT id,parent,name FROM tree ORDER BY id ASC;"); Set<Integer> selected = new HashSet<Integer>(); selected.add(1); Select<Integer, String> select = new Select<Integer, String>(Tree.getDefaultTree(db).getOptions(), selected);
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||