lib/glimmer/libui/text_column_proxy.rb in glimmer-dsl-libui-0.0.20 vs lib/glimmer/libui/text_column_proxy.rb in glimmer-dsl-libui-0.0.21
- old
+ new
@@ -27,26 +27,15 @@
# Proxy for LibUI text column objects
#
# Follows the Proxy Design Pattern
class TextColumnProxy < ControlProxy
include Column
+ include EditableColumn
- def editable(value = nil)
- if value.nil?
- @editable
- else
- @editable = !!value
- end
- end
- alias editable= editable
- alias set_editable editable
- alias editable? editable
-
private
def build_control
- @parent_proxy.append_text_column(name, next_column_index, @parent_proxy.editable? || editable? ? -2 : -1)
- super
+ @parent_proxy.append_text_column(name, column_index, editable_value)
end
end
end
end