Class: Java::JavafxSceneControl::ToggleButton

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

#accessible_role=(rbenum) ⇒ Object



827
828
829
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 827

def accessible_role=(rbenum)
  java_send "setAccessibleRole", [Java::JavafxScene::AccessibleRole], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleRole)
end

#alignment=(rbenum) ⇒ Object



809
810
811
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 809

def alignment=(rbenum)
  java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
end

#blend_mode=(rbenum) ⇒ Object



821
822
823
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 821

def blend_mode=(rbenum)
  java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
end

#cache_hint=(rbenum) ⇒ Object



824
825
826
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 824

def cache_hint=(rbenum)
  java_send "setCacheHint", [Java::JavafxScene::CacheHint], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::CacheHint)
end

#content_display=(rbenum) ⇒ Object



818
819
820
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 818

def content_display=(rbenum)
  java_send "setContentDisplay", [Java::JavafxSceneControl::ContentDisplay], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ContentDisplay)
end

#depth_test=(rbenum) ⇒ Object



833
834
835
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 833

def depth_test=(rbenum)
  java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
end

#node_orientation=(rbenum) ⇒ Object



836
837
838
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 836

def node_orientation=(rbenum)
  java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
end

#notify_accessible_attribute_changed=(rbenum) ⇒ Object



830
831
832
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 830

def notify_accessible_attribute_changed=(rbenum)
  java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
end

#on_action(&block) ⇒ Object



842
843
844
845
846
847
848
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 842

def on_action(&block)
  if block_given?
    setOnAction block
  else
    getOnAction
  end
end

#on_context_menu_requested(&block) ⇒ Object



849
850
851
852
853
854
855
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 849

def on_context_menu_requested(&block)
  if block_given?
    setOnContextMenuRequested block
  else
    getOnContextMenuRequested
  end
end

#on_drag_detected(&block) ⇒ Object



905
906
907
908
909
910
911
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 905

def on_drag_detected(&block)
  if block_given?
    setOnDragDetected block
  else
    getOnDragDetected
  end
end

#on_drag_done(&block) ⇒ Object



1087
1088
1089
1090
1091
1092
1093
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1087

def on_drag_done(&block)
  if block_given?
    setOnDragDone block
  else
    getOnDragDone
  end
end

#on_drag_dropped(&block) ⇒ Object



1080
1081
1082
1083
1084
1085
1086
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1080

def on_drag_dropped(&block)
  if block_given?
    setOnDragDropped block
  else
    getOnDragDropped
  end
end

#on_drag_entered(&block) ⇒ Object



1059
1060
1061
1062
1063
1064
1065
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1059

def on_drag_entered(&block)
  if block_given?
    setOnDragEntered block
  else
    getOnDragEntered
  end
end

#on_drag_exited(&block) ⇒ Object



1066
1067
1068
1069
1070
1071
1072
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1066

def on_drag_exited(&block)
  if block_given?
    setOnDragExited block
  else
    getOnDragExited
  end
end

#on_drag_over(&block) ⇒ Object



1073
1074
1075
1076
1077
1078
1079
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1073

def on_drag_over(&block)
  if block_given?
    setOnDragOver block
  else
    getOnDragOver
  end
end

#on_input_method_text_changed(&block) ⇒ Object



1115
1116
1117
1118
1119
1120
1121
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1115

def on_input_method_text_changed(&block)
  if block_given?
    setOnInputMethodTextChanged block
  else
    getOnInputMethodTextChanged
  end
end

#on_key_pressed(&block) ⇒ Object



1094
1095
1096
1097
1098
1099
1100
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1094

def on_key_pressed(&block)
  if block_given?
    setOnKeyPressed block
  else
    getOnKeyPressed
  end
end

#on_key_released(&block) ⇒ Object



1101
1102
1103
1104
1105
1106
1107
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1101

def on_key_released(&block)
  if block_given?
    setOnKeyReleased block
  else
    getOnKeyReleased
  end
end

#on_key_typed(&block) ⇒ Object



1108
1109
1110
1111
1112
1113
1114
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1108

def on_key_typed(&block)
  if block_given?
    setOnKeyTyped block
  else
    getOnKeyTyped
  end
end

#on_mouse_clicked(&block) ⇒ Object



856
857
858
859
860
861
862
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 856

def on_mouse_clicked(&block)
  if block_given?
    setOnMouseClicked block
  else
    getOnMouseClicked
  end
end

#on_mouse_drag_entered(&block) ⇒ Object



926
927
928
929
930
931
932
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 926

def on_mouse_drag_entered(&block)
  if block_given?
    setOnMouseDragEntered block
  else
    getOnMouseDragEntered
  end
end

#on_mouse_drag_exited(&block) ⇒ Object



933
934
935
936
937
938
939
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 933

def on_mouse_drag_exited(&block)
  if block_given?
    setOnMouseDragExited block
  else
    getOnMouseDragExited
  end
end

#on_mouse_drag_over(&block) ⇒ Object



912
913
914
915
916
917
918
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 912

def on_mouse_drag_over(&block)
  if block_given?
    setOnMouseDragOver block
  else
    getOnMouseDragOver
  end
end

#on_mouse_drag_released(&block) ⇒ Object



919
920
921
922
923
924
925
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 919

def on_mouse_drag_released(&block)
  if block_given?
    setOnMouseDragReleased block
  else
    getOnMouseDragReleased
  end
end

#on_mouse_dragged(&block) ⇒ Object



863
864
865
866
867
868
869
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 863

def on_mouse_dragged(&block)
  if block_given?
    setOnMouseDragged block
  else
    getOnMouseDragged
  end
end

#on_mouse_entered(&block) ⇒ Object



870
871
872
873
874
875
876
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 870

def on_mouse_entered(&block)
  if block_given?
    setOnMouseEntered block
  else
    getOnMouseEntered
  end
end

#on_mouse_exited(&block) ⇒ Object



877
878
879
880
881
882
883
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 877

def on_mouse_exited(&block)
  if block_given?
    setOnMouseExited block
  else
    getOnMouseExited
  end
end

#on_mouse_moved(&block) ⇒ Object



884
885
886
887
888
889
890
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 884

def on_mouse_moved(&block)
  if block_given?
    setOnMouseMoved block
  else
    getOnMouseMoved
  end
end

#on_mouse_pressed(&block) ⇒ Object



891
892
893
894
895
896
897
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 891

def on_mouse_pressed(&block)
  if block_given?
    setOnMousePressed block
  else
    getOnMousePressed
  end
end

#on_mouse_released(&block) ⇒ Object



898
899
900
901
902
903
904
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 898

def on_mouse_released(&block)
  if block_given?
    setOnMouseReleased block
  else
    getOnMouseReleased
  end
end

#on_rotate(&block) ⇒ Object



968
969
970
971
972
973
974
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 968

def on_rotate(&block)
  if block_given?
    setOnRotate block
  else
    getOnRotate
  end
end

#on_rotation_finished(&block) ⇒ Object



975
976
977
978
979
980
981
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 975

def on_rotation_finished(&block)
  if block_given?
    setOnRotationFinished block
  else
    getOnRotationFinished
  end
end

#on_rotation_started(&block) ⇒ Object



961
962
963
964
965
966
967
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 961

def on_rotation_started(&block)
  if block_given?
    setOnRotationStarted block
  else
    getOnRotationStarted
  end
end

#on_scroll(&block) ⇒ Object



947
948
949
950
951
952
953
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 947

def on_scroll(&block)
  if block_given?
    setOnScroll block
  else
    getOnScroll
  end
end

#on_scroll_finished(&block) ⇒ Object



954
955
956
957
958
959
960
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 954

def on_scroll_finished(&block)
  if block_given?
    setOnScrollFinished block
  else
    getOnScrollFinished
  end
end

#on_scroll_started(&block) ⇒ Object



940
941
942
943
944
945
946
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 940

def on_scroll_started(&block)
  if block_given?
    setOnScrollStarted block
  else
    getOnScrollStarted
  end
end

#on_swipe_down(&block) ⇒ Object



1010
1011
1012
1013
1014
1015
1016
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1010

def on_swipe_down(&block)
  if block_given?
    setOnSwipeDown block
  else
    getOnSwipeDown
  end
end

#on_swipe_left(&block) ⇒ Object



1017
1018
1019
1020
1021
1022
1023
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1017

def on_swipe_left(&block)
  if block_given?
    setOnSwipeLeft block
  else
    getOnSwipeLeft
  end
end

#on_swipe_right(&block) ⇒ Object



1024
1025
1026
1027
1028
1029
1030
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1024

def on_swipe_right(&block)
  if block_given?
    setOnSwipeRight block
  else
    getOnSwipeRight
  end
end

#on_swipe_up(&block) ⇒ Object



1003
1004
1005
1006
1007
1008
1009
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1003

def on_swipe_up(&block)
  if block_given?
    setOnSwipeUp block
  else
    getOnSwipeUp
  end
end

#on_touch_moved(&block) ⇒ Object



1038
1039
1040
1041
1042
1043
1044
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1038

def on_touch_moved(&block)
  if block_given?
    setOnTouchMoved block
  else
    getOnTouchMoved
  end
end

#on_touch_pressed(&block) ⇒ Object



1031
1032
1033
1034
1035
1036
1037
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1031

def on_touch_pressed(&block)
  if block_given?
    setOnTouchPressed block
  else
    getOnTouchPressed
  end
end

#on_touch_released(&block) ⇒ Object



1045
1046
1047
1048
1049
1050
1051
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1045

def on_touch_released(&block)
  if block_given?
    setOnTouchReleased block
  else
    getOnTouchReleased
  end
end

#on_touch_stationary(&block) ⇒ Object



1052
1053
1054
1055
1056
1057
1058
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 1052

def on_touch_stationary(&block)
  if block_given?
    setOnTouchStationary block
  else
    getOnTouchStationary
  end
end

#on_zoom(&block) ⇒ Object



989
990
991
992
993
994
995
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 989

def on_zoom(&block)
  if block_given?
    setOnZoom block
  else
    getOnZoom
  end
end

#on_zoom_finished(&block) ⇒ Object



996
997
998
999
1000
1001
1002
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 996

def on_zoom_finished(&block)
  if block_given?
    setOnZoomFinished block
  else
    getOnZoomFinished
  end
end

#on_zoom_started(&block) ⇒ Object



982
983
984
985
986
987
988
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 982

def on_zoom_started(&block)
  if block_given?
    setOnZoomStarted block
  else
    getOnZoomStarted
  end
end

#text_alignment=(rbenum) ⇒ Object



812
813
814
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 812

def text_alignment=(rbenum)
  java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
end

#text_fill=(value) ⇒ Object



839
840
841
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 839

def text_fill=(value)
  setTextFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
end

#text_overrun=(rbenum) ⇒ Object



815
816
817
# File 'lib/jrubyfx/core_ext/precompiled.rb', line 815

def text_overrun=(rbenum)
  java_send "setTextOverrun", [Java::JavafxSceneControl::OverrunStyle], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::OverrunStyle)
end