Sha256: dce8dcf45509d7bb6b6a6db0024de941ddf8521a3db4e2f3ffe4124250a3ed10
Contents?: true
Size: 476 Bytes
Versions: 6
Compression:
Stored size: 476 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
6 entries across 6 versions & 1 rubygems