Sha256: 4299c8247648819a48e5e54302edcd34d1d04b075cb07b4f16cd7eb82f9d1005

Contents?: true

Size: 689 Bytes

Versions: 13

Compression:

Stored size: 689 Bytes

Contents

require 'glimmer/dsl/static_expression'

module Glimmer
  module DSL
    module SWT
      # Responsible for providing a readable keyword (command symbol) to capture
      # and return column properties for use in TreeItemsDataBindingCommandHandler
      class ColumnPropertiesExpression < StaticExpression
        include_package 'org.eclipse.swt.widgets'
  
        def can_interpret?(parent, keyword, *args, &block)
          keyword == 'column_properties' and
            block.nil? and
            widget?(parent) and
            parent.swt_widget.is_a?(Table)
        end
  
        def interpret(parent, keyword, *args, &block)
          args
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
glimmer-0.8.2 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.8.1 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.8.0 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.8 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.7 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.6 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.5 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.4 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.3 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.2 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.1 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.7.0 lib/glimmer/dsl/swt/column_properties_expression.rb
glimmer-0.6.0 lib/glimmer/dsl/swt/column_properties_expression.rb