Description
Provides integration with GlazedLists.
Installation
The current version of griffon-glazedlists-plugin is 0.8.3
To install just issue the following command
Usage
The following nodes will become available on a View script upon installing this plugin
Node |
Property |
Type |
Default |
Required |
Bindable |
Notes |
|---|---|---|---|---|---|---|
defaultTableFormat |
columnNames |
List |
|
|
||
|
columns |
List<Map<String, ?>> |
|
either define this property or |
||
|
columns.name |
String |
|
column's name |
||
|
columns.title |
String |
|
column's title (will use the name if not provided) |
||
|
columns.read |
Closure |
|
column specific closure used to read properties from an element |
||
|
read |
Closure |
|
default closure used to read properties from an element |
||
defaultAdvancedTableFormat |
columns |
List<Map<String, ?>> |
|
|
||
|
columns.name |
String |
|
column's name |
||
|
columns.title |
String |
|
column's title (will use the name if not provided) |
||
|
columns.class |
Class |
Object |
column's class |
||
|
columns.comparator |
Comparator |
{a, b -> a <=> b } |
column's comparator |
||
|
columns.read |
Closure |
|
column specific closure used to read properties from an element |
||
|
read |
Closure |
|
default closure used to read properties from an element |
||
defaultWritableTableFormat |
columns |
List<Map<String, ?>> |
|
|
||
|
columns.name |
String |
|
column's name |
||
|
columns.title |
String |
|
column's title (will use the name if not provided) |
||
|
columns.class |
Class |
Object |
column's class |
||
|
columns.comparator |
Comparator |
{a, b -> a <=> b } |
column's comparator |
||
|
columns.read |
Closure |
|
column specific closure used to read properties from an element |
||
|
columns.write |
Closure |
|
column specific closure used to write properties to an element |
||
|
columns.editable |
Closure |
|
is this column editable? |
||
|
read |
Closure |
|
default closure used to read properties from an element |
||
|
write |
Closure |
|
default closure used to write properties to an element |
||
|
editable |
Closure |
|
default closure evaluating if a column is editable |
||
eventComboBoxModel |
source |
EventList |
|
|
||
eventListModel |
source |
EventList |
|
|
||
eventTableModel |
source |
EventList |
|
|
||
|
format |
TableFormat |
|
|
||
eventTreeModel |
source |
TreeList |
|
|
||
eventJXTableModel |
source |
EventList |
|
|
||
|
format |
TableFormat |
|
|
The following methods become available as well
- installTableComparatorChooser(Map args) - install a TableComparatorChooser on a target JTable
Argument
Type
Default
target
JTable
builder's
currentnodesource
EventList
strategy
Object
AbstractTableComparatorChooser.SINGLE_COLUMN
- installTTreeTableSupport(Map args) - install a TableComparatorChooser on a target JTable
Argument
Type
Default
target
JTable
builder's
currentnodesource
TreeList
index
int
1
- installComboBoxAutoCompleteSupport(Map args) - install a TableComparatorChooser on a target JTable
Argument
Type
Default
target
JComboBox
builder's
currentnodeitems
EventList
textFilterator
TextFilterator
format
Format
- installEventSelectionModel(Map args) - install an EventSelectionModel on a target JTable
Argument
Type
Default
target
JComboBox
builder's
currentnodesource
EventList
selectionMode
int
ListSelectionModel.SINGLE_SELECTION
- installJXTableSorting(Map args) - using a JXTables native sorting system instead of glazedlists
Argument
Type
Default
target
JComboBox
builder's
currentnodesource
SortedList
multiple
boolean
false
The following Model and View scripts shows a basic usage.
History
Version |
Date |
Notes |
|---|---|---|
0.8.3 |
10-21-11 |
Release sync with Griffon 0.9.4 |
0.8.2 |
03-15-11 |
Fine tune GRIFFON-333 |
0.8.1 |
03-14-11 |
Fix GRIFFON-333 and GRIFFON-334 |
0.8 |
03-01-11 |
Added column specific read closure |
0.7 |
02-10-11 |
Release sync with Griffon 0.9.2 |
0.6 |
11-29-10 |
GRIFFON-275 adds a title: property for columns |
0.5 |
11-02-10 |
GRIFFON-253 adds WritableTableFormat, fixes EventTree support (thanks @saschaklein!) |
0.4 |
07-22-10 |
Release sync with Griffon 0.9 |
0.3 |
03-01-10 |
Upgraded to Griffon 0.3 |
0.2 |
12-26-09 |
fixed a bug in DefaultAdvancedTableFormat |
0.1 |
12-16-09 |
first release |


