Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Table of Contents
maxLevel3
indent0px

(Automatically generated from BeanInfo)

Generated Object

A groovy.model.DefaultTableColumn is returned, unless the user passes in a subclass of DefaultTableColumn as the value argument, in which case the value argument is returned.

Attributes

Declared in groovy.model.DefaultTableColumn

  • type <Class>
  • valueModel <ValueModel>

Declared in javax.swing.table.TableColumn

  • cellEditor <TableCellEditor>
  • cellRenderer <TableCellRenderer>
  • headerRenderer <TableCellRenderer>
  • headerValue <Object>
  • identifier <Object>
  • maxWidth <int>
  • minWidth <int>
  • modelIndex <int>
  • preferredWidth <int>
  • resizable <boolean>
  • width <int>

Events

Declared in javax.swing.table.TableColumn

  • propertyChange (PropertyChangeEvent) - part of PropertyChangeListener

Content

Usage

Examples

Access to properties by propertyName name
Code Block
data = [[first:'qwer', last:'asdf'],
        [first:'zxcv', last:'tyui'],
        [first:'ghjk', last:'bnm']]

swing = new SwingBuilder()
frame = swing.frame(title:'table test'){
  scrollPane {
    table {
        tableModel( list : data ) {
            propertyColumn(header:'First Name', propertyName:'first')
            propertyColumn(header:'Last Name', propertyName:'last')
        }
    }
  }
}
frame.pack()
frame.show()
Access to properties by closure

Observable Attributes

  • cellEditor
  • cellRenderer
  • headerRenderer
  • headerValue
  • identifier
  • maxWidth
  • minWidth
  • modelIndex
  • preferredWidth
  • propertyChangeListeners
  • resizable
  • type
  • valueModel
  • width