Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • keyPressed (KeyEvent) - part of KeyListener
  • keyReleased (KeyEvent) - part of KeyListener
  • keyTyped (KeyEvent) - part of KeyListener
  • componentHidden (ComponentEvent) - part of ComponentListener
  • componentMoved (ComponentEvent) - part of ComponentListener
  • componentResized (ComponentEvent) - part of ComponentListener
  • componentShown (ComponentEvent) - part of ComponentListener
  • hierarchyChanged (HierarchyEvent) - part of HierarchyListener
  • mouseClicked (MouseEvent) - part of MouseListener
  • mouseEntered (MouseEvent) - part of MouseListener
  • mouseExited (MouseEvent) - part of MouseListener
  • mousePressed (MouseEvent) - part of MouseListener
  • mouseReleased (MouseEvent) - part of MouseListener
  • mouseDragged (MouseEvent) - part of MouseMotionListener
  • mouseMoved (MouseEvent) - part of MouseMotionListener
  • propertyChange (PropertyChangeEvent) - part of PropertyChangeListener
  • ancestorMoved (HierarchyEvent) - part of HierarchyBoundsListener
  • ancestorResized (HierarchyEvent) - part of HierarchyBoundsListener
  • focusGained (FocusEvent) - part of FocusListener
  • focusLost (FocusEvent) - part of FocusListener
  • mouseWheelMoved (MouseWheelEvent) - part of MouseWheelListener
  • caretPositionChanged (InputMethodEvent) - part of InputMethodListener
  • inputMethodTextChanged (InputMethodEvent) - part of InputMethodListener

Content

Usage

Examples

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

Code Block

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

  • UI
  • accelerator
  • action
  • alignmentX
  • alignmentY
  • background
  • border
  • borderPainted
  • componentCount
  • componentPopupMenu
  • components
  • containerListeners
  • contentAreaFilled
  • disabledIcon
  • disabledSelectedIcon
  • displayedMnemonicIndex
  • enabled
  • focusCycleRoot
  • focusPainted
  • focusTraversalKeys
  • focusTraversalPolicy
  • focusTraversalPolicyProvider
  • focusTraversalPolicySet
  • focusable
  • font
  • foreground
  • horizontalAlignment
  • horizontalTextPosition
  • icon
  • iconTextGap
  • inheritsPopupMenu
  • inputVerifier
  • insets
  • label
  • layout
  • margin
  • maximumSize
  • minimumSize
  • mnemonic
  • model
  • opaque
  • preferredSize
  • pressedIcon
  • rolloverEnabled
  • rolloverIcon
  • rolloverSelectedIcon
  • selectedIcon
  • text
  • transferHandler
  • verifyInputWhenFocusTarget
  • verticalAlignment
  • verticalTextPosition