Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added example for propertyColumn usage

...

  • propertyChange (PropertyChangeEvent) - part of PropertyChangeListener

Content

Usage

Examples

Property columns
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()

Observable Attributes

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