Sha256: 792957ea74d76a21368b71b9cc5a2efa33263e5fd9e2857a370ca346f5da8a80

Contents?: true

Size: 634 Bytes

Versions: 11

Compression:

Stored size: 634 Bytes

Contents

require 'glimmer/dsl/static_expression'

module Glimmer
  module DSL
    # 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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
glimmer-0.5.11 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.10 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.9 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.8 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.7 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.6 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.5 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.4 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.3 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.2 lib/glimmer/dsl/column_properties_expression.rb
glimmer-0.5.0 lib/glimmer/dsl/column_properties_expression.rb