Sha256: 74cff60932b050bb788471cc57d736b797a08b4a810d6264e72d036342520ec8
Contents?: true
Size: 971 Bytes
Versions: 24
Compression:
Stored size: 971 Bytes
Contents
require 'glimmer/dsl/expression' require 'glimmer/data_binding/model_binding' require 'glimmer/data_binding/table_items_binding' require 'glimmer/swt/table_proxy' module Glimmer module DSL module Opal #Depends on BindCommandHandler and TableColumnPropertiesDataBindingCommandHandler class TableItemsDataBindingExpression < Expression def can_interpret?(parent, keyword, *args, &block) keyword == "items" and block.nil? and parent.is_a?(Glimmer::SWT::TableProxy) and args.size == 2 and args[0].is_a?(DataBinding::ModelBinding) and args[0].evaluate_property.is_a?(Array) and args[1].is_a?(Array) end def interpret(parent, keyword, *args, &block) model_binding = args[0] column_properties = args[1] DataBinding::TableItemsBinding.new(parent, model_binding, column_properties) end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems