Class: FxmlBuilderBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/jrubyfx-fxmlloader.rb

Overview

the builder builder (builds builders)

Constant Summary collapse

@@bf =
Java::javafx.fxml.JavaFXBuilderFactory.new(JRuby.runtime.jruby_class_loader)

Class Method Summary collapse

Class Method Details

.new(arg_map, builder_type) ⇒ Object



223
224
225
226
227
228
229
# File 'lib/jrubyfx-fxmlloader.rb', line 223

def self.new(arg_map, builder_type)
  builder = @@bf.getBuilder(builder_type)
  arg_map.each do |k, v|
    builder.put(k, v) # DON't use []= or we have to wrap it
  end
  builder.build
end