Skip to end of metadata
Go to start of metadata

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
[DefaultTableFormat]

columnNames

List

 

(tick)

(error)

 

 

columns

List<Map<String, ?>>

 

(tick)

(error)

either define this property or columnNames

 

columns.name

String

 

(tick)

(error)

column's name

 

columns.title

String

 

(error)

(error)

column's title (will use the name if not provided)

 

columns.read

Closure

 

(error)

(error)

column specific closure used to read properties from an element

 

read

Closure

 

(error)

(error)

default closure used to read properties from an element

defaultAdvancedTableFormat
[DefaultAdvancedTableFormat]

columns

List<Map<String, ?>>

 

(tick)

(error)

 

 

columns.name

String

 

(tick)

(error)

column's name

 

columns.title

String

 

(error)

(error)

column's title (will use the name if not provided)

 

columns.class

Class

Object

(error)

(error)

column's class

 

columns.comparator

Comparator

{a, b -> a <=> b }

(error)

(error)

column's comparator

 

columns.read

Closure

 

(error)

(error)

column specific closure used to read properties from an element

 

read

Closure

 

(error)

(error)

default closure used to read properties from an element

defaultWritableTableFormat
[DefaultWritableTableFormat]

columns

List<Map<String, ?>>

 

(tick)

(error)

 

 

columns.name

String

 

(tick)

(error)

column's name

 

columns.title

String

 

(error)

(error)

column's title (will use the name if not provided)

 

columns.class

Class

Object

(error)

(error)

column's class

 

columns.comparator

Comparator

{a, b -> a <=> b }

(error)

(error)

column's comparator

 

columns.read

Closure

 

(error)

(error)

column specific closure used to read properties from an element

 

columns.write

Closure

 

(error)

(error)

column specific closure used to write properties to an element

 

columns.editable

Closure
or using asBoolean()

 

(error)

(error)

is this column editable?

 

read

Closure

 

(error)

(error)

default closure used to read properties from an element

 

write

Closure

 

(error)

(error)

default closure used to write properties to an element

 

editable

Closure

 

(error)

(error)

default closure evaluating if a column is editable

eventComboBoxModel
[EventComboBoxModel]

source

EventList

 

(tick)

(error)

 

eventListModel
[EventListModel]

source

EventList

 

(tick)

(error)

 

eventTableModel
[EventTableModel]

source

EventList

 

(tick)

(error)

 

 

format

TableFormat

 

(tick)

(error)

 

eventTreeModel
[EventTreeModel]

source

TreeList

 

(tick)

(error)

 

eventJXTableModel
[EventJXTableModel]

source

EventList

 

(tick)

(error)

 

 

format

TableFormat

 

(tick)

(error)

 

The following methods become available as well

  • installTableComparatorChooser(Map args) - install a TableComparatorChooser on a target JTable

    Argument

    Type

    Default

    target

    JTable

    builder's current node

    source

    EventList

     

    strategy

    Object

    AbstractTableComparatorChooser.SINGLE_COLUMN

  • installTTreeTableSupport(Map args) - install a TableComparatorChooser on a target JTable

    Argument

    Type

    Default

    target

    JTable

    builder's current node

    source

    TreeList

     

    index

    int

    1

  • installComboBoxAutoCompleteSupport(Map args) - install a TableComparatorChooser on a target JTable

    Argument

    Type

    Default

    target

    JComboBox

    builder's current node

    items

    EventList

     

    textFilterator

    TextFilterator

     

    format

    Format

     

  • installEventSelectionModel(Map args) - install an EventSelectionModel on a target JTable

    Argument

    Type

    Default

    target

    JComboBox

    builder's current node

    source

    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 current node

    source

    SortedList

     

    multiple

    boolean

    false

The following Model and View scripts shows a basic usage.

SampleModel.groovy
SampleView.groovy

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

  • No labels

0 Comments