Sha256: 2c8a4c6f6d697f94485a1298b2ca13eac38ce69be0304f2c25fd5f71af4d1b0b

Contents?: true

Size: 722 Bytes

Versions: 11

Compression:

Stored size: 722 Bytes

Contents

require 'glimmer/dsl/static_expression'
require 'glimmer/data_binding/model_binding'
require 'glimmer/data_binding/tree_items_binding'

module Glimmer
  module DSL
    # Responsible for providing a readable keyword (command symbol) to capture
    # and return tree properties for use in TreeItemsDataBindingCommandHandler
    class TreePropertiesExpression < StaticExpression
      include_package 'org.eclipse.swt.widgets'

      def can_interpret?(parent, keyword, *args, &block)
        keyword == "tree_properties" and
          block.nil? and
          widget?(parent) and
          parent.swt_widget.is_a?(Tree)
      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/tree_properties_expression.rb
glimmer-0.5.10 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.9 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.8 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.7 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.6 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.5 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.4 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.3 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.2 lib/glimmer/dsl/tree_properties_expression.rb
glimmer-0.5.0 lib/glimmer/dsl/tree_properties_expression.rb