lib/clevic/swing/text_delegate.rb in clevic-0.13.0.b9 vs lib/clevic/swing/text_delegate.rb in clevic-0.13.0.b10

- old
+ new

@@ -6,24 +6,24 @@ # TODO check that VK_ENTER stops editing def init_component( cell_editor ) editor.text = edit_value editor.select_all end - + def editor @editor ||= javax.swing.JTextField.new.tap do |e| e.horizontal_alignment = field.swing_alignment end end - + def value editor.text end - + def minimal_edit editor.select_all end - + def needs_pre_selection? true end end