Class: Java::JavafxSceneMedia::MediaPlayer

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

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, #method_missing, #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 in the class JRubyFX::DSL

Instance Method Details

#on_end_of_media(&block) ⇒ Object



1708
1709
1710
1711
1712
1713
1714
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1708

def on_end_of_media(&block)
  if block_given?
    setOnEndOfMedia block
  else
    getOnEndOfMedia
  end
end

#on_error(&block) ⇒ Object



1694
1695
1696
1697
1698
1699
1700
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1694

def on_error(&block)
  if block_given?
    setOnError block
  else
    getOnError
  end
end

#on_halted(&block) ⇒ Object



1736
1737
1738
1739
1740
1741
1742
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1736

def on_halted(&block)
  if block_given?
    setOnHalted block
  else
    getOnHalted
  end
end

#on_marker(&block) ⇒ Object



1701
1702
1703
1704
1705
1706
1707
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1701

def on_marker(&block)
  if block_given?
    setOnMarker block
  else
    getOnMarker
  end
end

#on_paused(&block) ⇒ Object



1722
1723
1724
1725
1726
1727
1728
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1722

def on_paused(&block)
  if block_given?
    setOnPaused block
  else
    getOnPaused
  end
end

#on_playing(&block) ⇒ Object



1715
1716
1717
1718
1719
1720
1721
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1715

def on_playing(&block)
  if block_given?
    setOnPlaying block
  else
    getOnPlaying
  end
end

#on_ready(&block) ⇒ Object



1687
1688
1689
1690
1691
1692
1693
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1687

def on_ready(&block)
  if block_given?
    setOnReady block
  else
    getOnReady
  end
end

#on_repeat(&block) ⇒ Object



1743
1744
1745
1746
1747
1748
1749
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1743

def on_repeat(&block)
  if block_given?
    setOnRepeat block
  else
    getOnRepeat
  end
end

#on_stalled(&block) ⇒ Object



1750
1751
1752
1753
1754
1755
1756
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1750

def on_stalled(&block)
  if block_given?
    setOnStalled block
  else
    getOnStalled
  end
end

#on_stopped(&block) ⇒ Object



1729
1730
1731
1732
1733
1734
1735
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1729

def on_stopped(&block)
  if block_given?
    setOnStopped block
  else
    getOnStopped
  end
end