Sha256: e199130ff565833f32747713f8355a8de3e0d970eb0628ea7fc5c4067dbee8cd
Contents?: true
Size: 464 Bytes
Versions: 10
Compression:
Stored size: 464 Bytes
Contents
require 'clevic/swing/delegate' module Clevic class BooleanDelegate < Delegate def init_component( cell_editor ) editor.selected = attribute_value end def editor @editor ||= javax.swing.JCheckBox.new.tap do |e| # TODO this is common to all delegates e.horizontal_alignment = field.swing_alignment end end def value editor.selected end def native java.lang.Boolean end end end
Version data entries
10 entries across 10 versions & 1 rubygems