Sha256: 19c26a9e0915a8dedb07d46fc5051da90df887514d891ee811d3a2ba5b4ee482
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
require 'glimmer/swt/widget_proxy' module Glimmer module SWT class TableColumnProxy < Glimmer::SWT::WidgetProxy attr_reader :no_sort, :sort_property alias no_sort? no_sort attr_accessor :sort_block, :sort_by_block def initialize(underscored_widget_name, parent, args) @no_sort = args.delete(:no_sort) super on_widget_selected do |event| parent.sort_by_column(self) end unless no_sort? end def sort_property=(args) @sort_property = args unless args.empty? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glimmer-dsl-swt-0.3.0 | lib/glimmer/swt/table_column_proxy.rb |