Class: Java::JavafxConcurrent::Task

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_cancelled(&block) ⇒ Object



1391
1392
1393
1394
1395
1396
1397
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1391

def on_cancelled(&block)
  if block_given?
    setOnCancelled block
  else
    getOnCancelled
  end
end

#on_failed(&block) ⇒ Object



1398
1399
1400
1401
1402
1403
1404
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1398

def on_failed(&block)
  if block_given?
    setOnFailed block
  else
    getOnFailed
  end
end

#on_running(&block) ⇒ Object



1377
1378
1379
1380
1381
1382
1383
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1377

def on_running(&block)
  if block_given?
    setOnRunning block
  else
    getOnRunning
  end
end

#on_scheduled(&block) ⇒ Object



1405
1406
1407
1408
1409
1410
1411
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1405

def on_scheduled(&block)
  if block_given?
    setOnScheduled block
  else
    getOnScheduled
  end
end

#on_succeeded(&block) ⇒ Object



1384
1385
1386
1387
1388
1389
1390
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1384

def on_succeeded(&block)
  if block_given?
    setOnSucceeded block
  else
    getOnSucceeded
  end
end