Class: Java::JavafxSceneControl::TableView

Inherits:
Object
  • Object
show all
Includes:
JRubyFX::DSL
Defined in:
lib/jrubyfx/core_ext/precompiled.rb

Overview

TODO: logical_child(content)

Constant Summary

Constants included from JRubyFX::DSL

JRubyFX::DSL::NAME_TO_CLASSES, JRubyFX::DSL::NAME_TO_CLASS_NAME

Constants included from JRubyFX::FXImports

JRubyFX::FXImports::JFX_CLASS_HIERARCHY, JRubyFX::FXImports::LOCAL_NAME_MAP

Constants included from JRubyFX

JRubyFX::VERSION

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, write_event_method

Methods included from JRubyFX::FXImports

#const_missing

Methods included from JRubyFX

#build, included, load_fx, #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



1635
1636
1637
1638
1639
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1635

def method_missing(name, *args, &block)
  super(name, *args, &block).tap do |obj|
    add(obj) if obj.kind_of?(Java::JavafxSceneControl::TableColumn) && !name.to_s.end_with?('!')
  end
end

Instance Method Details

#add(value) ⇒ Object



1640
1641
1642
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1640

def add(value)
  get_columns() << value
end

#on_scroll_to(&block) ⇒ Object



1614
1615
1616
1617
1618
1619
1620
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1614

def on_scroll_to(&block)
  if block_given?
    setOnScrollTo block
  else
    getOnScrollTo
  end
end

#on_scroll_to_column(&block) ⇒ Object



1628
1629
1630
1631
1632
1633
1634
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1628

def on_scroll_to_column(&block)
  if block_given?
    setOnScrollToColumn block
  else
    getOnScrollToColumn
  end
end

#on_sort(&block) ⇒ Object



1621
1622
1623
1624
1625
1626
1627
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1621

def on_sort(&block)
  if block_given?
    setOnSort block
  else
    getOnSort
  end
end