class MyCellRendererToggle

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)

Public Class Methods

new(column) click to toggle source
Calls superclass method
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 6
      def initialize(column)
              super()
              signal_connect("editing-started"){|cell, editable, path|
                      false
              }
              signal_connect("toggled"){|me,path|
                      @column.list.list_model.change_value_of_path(path,@column.header['data'],!active?)
              }
end

Public Instance Methods

data() click to toggle source
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 27
def data
        header["data"]
end
set_column(column) click to toggle source
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 16
def set_column(column)
        @column=column
        set_activatable(@column.header['editable'])
end
set_font(font) click to toggle source
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 31
def set_font(font)
        #doing nothing here
end
set_wrap_width(width) click to toggle source
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 24
def set_wrap_width(width)
        #we don't wrap this :)
end
text() click to toggle source
# File lib/ListHolder/EditableList/CellRenderers/Toggle.rb, line 21
def text
        active
end