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


1567
1568
1569
1570
1571
1572
1573
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1567

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

#on_error(&block) ⇒ Object


1560
1561
1562
1563
1564
1565
1566
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1560

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

#on_halted(&block) ⇒ Object


1574
1575
1576
1577
1578
1579
1580
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1574

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

#on_marker(&block) ⇒ Object


1581
1582
1583
1584
1585
1586
1587
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1581

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

#on_paused(&block) ⇒ Object


1588
1589
1590
1591
1592
1593
1594
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1588

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

#on_playing(&block) ⇒ Object


1595
1596
1597
1598
1599
1600
1601
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1595

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

#on_ready(&block) ⇒ Object


1553
1554
1555
1556
1557
1558
1559
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1553

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

#on_repeat(&block) ⇒ Object


1602
1603
1604
1605
1606
1607
1608
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1602

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

#on_stalled(&block) ⇒ Object


1609
1610
1611
1612
1613
1614
1615
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1609

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

#on_stopped(&block) ⇒ Object


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

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