Class: Java::JavafxSceneControl::TreeItem
- Inherits:
-
Object
- Object
- Java::JavafxSceneControl::TreeItem
- Includes:
- JRubyFX::DSL
- Defined in:
- lib/jrubyfx/core_ext/precompiled.rb
Constant Summary
Constants included from JRubyFX::DSL
Constants included from JRubyFX
Constants included from JRubyFX::FXImports
JRubyFX::FXImports::JFX_CLASS_HIERARCHY
Instance Method Summary collapse
Methods included from JRubyFX::DSL
compile_dsl, included, load_dsl, #logical_lookup, #self_test_lookup, write_color_method_converter, write_enum_converter, write_enum_method_converter
Methods included from JRubyFX
#build, included, #run_later, #with
Methods included from JRubyFX::Utils::CommonUtils
#attempt_conversion, #populate_properties, #split_args_from_properties
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
404 405 406 407 408 |
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 404 def method_missing(name, *args, &block) super(name, *args, &block).tap do |obj| add(obj) if obj.kind_of?(Java::JavafxSceneControl::TreeItem) && !name.to_s.end_with?('!') end end |
Instance Method Details
#add(value) ⇒ Object
409 410 411 |
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 409 def add(value) get_children() << value end |