(Automatically generated from BeanInfo)

Generated Object

A javax.swing.JCheckBoxMenuItem is returned, unless the user passes in a subclass of JCheckBoxMenuItem as the value argument, in which case the value argument is returned.

Attributes

Declared in javax.swing.JCheckBoxMenuItem

Declared in javax.swing.JMenuItem

Declared in javax.swing.AbstractButton

Declared in javax.swing.JComponent

Declared in java.awt.Container

Declared in java.awt.Component

Events

Declared in javax.swing.JMenuItem

Declared in javax.swing.AbstractButton

Declared in javax.swing.JComponent

Declared in java.awt.Container

Declared in java.awt.Component

Content

Usage

Examples

An example of binding a checkBox state with a model. This is a one way binding (checkBox -> model).

def cbiMerge = checkBoxMenuItem(setMergeData) //setMergeData is an action
bind(source: cbiMerge, sourceProperty:'selected', target:model, targetProperty:'isMergeData') 
//model class
class Model {
  //...
  @Bindable boolean isMergeData
}

Observable Attributes