jrubyfx-master 1.1.1.brakemanpro-java → 1.1.1.8.19-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jrubyfx/part_imports.rb +7 -1
- data/lib/jrubyfx/version.rb +1 -1
- metadata +38 -43
- data/lib/jrubyfx/core_ext/precompiled.rb +0 -1883
- data/lib/jrubyfx/dsl_map.rb +0 -273
- data/lib/jrubyfx/imports.rb +0 -310
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0022638f2bd97736f9f43e96443167a736699499
|
4
|
+
data.tar.gz: c7f2f60abcd3c9e80f0bd9218c1ce0286e11e4e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 157b5b0da1931b96c64f3cffef6694212932847efa73349aabecfb86ebc9056dfd4560641a5e96b8c6e6f1a56f4fe2bdd42c13ed331e6d3495666bb056eaaadb
|
7
|
+
data.tar.gz: 19e2c453f91e5be02cdc983fb78d299c0a8739d4f4dd1ad49bb5326ffdc7f3f4bcbe8127f01ca6eec0d5fdfa9ea4ecf17561116469b2e9270b4c89a64e66ae8a
|
data/lib/jrubyfx/part_imports.rb
CHANGED
@@ -32,10 +32,16 @@ begin
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# Java 8 (after ea-b75) and above has JavaFX as part of the normal distib, only require it if we are 7 or below
|
36
|
+
jre = ENV_JAVA["java.runtime.version"].match %r{^(?<version>(?<major>\d+)\.(?<minor>\d+))\.(?<patch>\d+)(_\d+)?-?(?<release>ea|u\d)?(-?b(?<build>\d+))?}
|
37
|
+
require 'jfxrt.jar' if ENV['JFX_DIR'] or
|
38
|
+
jre[:version].to_f < 1.8 or
|
39
|
+
(jre[:version].to_f == 1.8 and jre[:release] == 'ea' and jre[:build].to_i < 75)
|
40
|
+
|
35
41
|
# Java 8 at some point requires explicit toolkit/platform initialization
|
36
42
|
# before any controls can be loaded.
|
37
43
|
JRubyFX.load_fx
|
38
|
-
|
44
|
+
|
39
45
|
# Attempt to load a javafx class
|
40
46
|
Java.javafx.application.Application
|
41
47
|
rescue LoadError, NameError
|
data/lib/jrubyfx/version.rb
CHANGED
metadata
CHANGED
@@ -1,68 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jrubyfx-master
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.1.
|
4
|
+
version: 1.1.1.8.19
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Patrick Plenefisch
|
8
8
|
- Thomas E Enebo
|
9
9
|
- Hiroshi Nakamura
|
10
10
|
- Hiro Asari
|
11
|
-
|
12
|
-
autorequire:
|
11
|
+
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date: 2015-
|
14
|
+
date: 2015-08-19 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
17
|
+
name: rake
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0'
|
23
|
-
name: rake
|
24
|
-
prerelease: false
|
25
23
|
type: :development
|
24
|
+
prerelease: false
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
27
26
|
requirements:
|
28
|
-
- -
|
27
|
+
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
29
|
version: '0'
|
31
30
|
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '0'
|
37
|
-
name: rspec
|
38
|
-
prerelease: false
|
39
37
|
type: :development
|
38
|
+
prerelease: false
|
40
39
|
version_requirements: !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
|
-
- -
|
41
|
+
- - ">="
|
43
42
|
- !ruby/object:Gem::Version
|
44
43
|
version: '0'
|
45
44
|
- !ruby/object:Gem::Dependency
|
45
|
+
name: jrubyfx-fxmlloader
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 0.4
|
51
|
-
name: jrubyfx-fxmlloader
|
52
|
-
prerelease: false
|
50
|
+
version: '0.4'
|
53
51
|
type: :runtime
|
52
|
+
prerelease: false
|
54
53
|
version_requirements: !ruby/object:Gem::Requirement
|
55
54
|
requirements:
|
56
|
-
- -
|
55
|
+
- - ">="
|
57
56
|
- !ruby/object:Gem::Version
|
58
|
-
version: 0.4
|
59
|
-
description: Enables JavaFX with FXML controllers and application in pure ruby
|
57
|
+
version: '0.4'
|
58
|
+
description: Enables JavaFX with FXML controllers and application in pure ruby
|
60
59
|
email:
|
61
60
|
- simonpatp@gmail.com
|
62
61
|
- tom.enebo@gmail.com
|
63
62
|
- nahi@ruby-lang.org
|
64
63
|
- asari.ruby@gmail.com
|
65
|
-
- neil.matatall@gmail.com
|
66
64
|
executables:
|
67
65
|
- jrubyfx-generator
|
68
66
|
- jrubyfx-jarify
|
@@ -70,20 +68,15 @@ executables:
|
|
70
68
|
extensions: []
|
71
69
|
extra_rdoc_files: []
|
72
70
|
files:
|
71
|
+
- LICENSE
|
72
|
+
- README.md
|
73
|
+
- bin/jrubyfx-compile
|
74
|
+
- bin/jrubyfx-generator
|
75
|
+
- bin/jrubyfx-jarify
|
73
76
|
- lib/jrubyfx.rb
|
74
|
-
- lib/jrubyfx_tasks.rb
|
75
77
|
- lib/jrubyfx/application.rb
|
76
78
|
- lib/jrubyfx/compiler_app.rb
|
77
79
|
- lib/jrubyfx/controller.rb
|
78
|
-
- lib/jrubyfx/dsl.rb
|
79
|
-
- lib/jrubyfx/dsl_control.rb
|
80
|
-
- lib/jrubyfx/dsl_map.rb
|
81
|
-
- lib/jrubyfx/imports.rb
|
82
|
-
- lib/jrubyfx/java_fx_impl.rb
|
83
|
-
- lib/jrubyfx/module.rb
|
84
|
-
- lib/jrubyfx/part_imports.rb
|
85
|
-
- lib/jrubyfx/utils.rb
|
86
|
-
- lib/jrubyfx/version.rb
|
87
80
|
- lib/jrubyfx/core_ext/border_pane.rb
|
88
81
|
- lib/jrubyfx/core_ext/column_constraints.rb
|
89
82
|
- lib/jrubyfx/core_ext/drag_event.rb
|
@@ -98,7 +91,6 @@ files:
|
|
98
91
|
- lib/jrubyfx/core_ext/observable_value.rb
|
99
92
|
- lib/jrubyfx/core_ext/pagination.rb
|
100
93
|
- lib/jrubyfx/core_ext/path.rb
|
101
|
-
- lib/jrubyfx/core_ext/precompiled.rb
|
102
94
|
- lib/jrubyfx/core_ext/progress_indicator.rb
|
103
95
|
- lib/jrubyfx/core_ext/radial_gradient.rb
|
104
96
|
- lib/jrubyfx/core_ext/region.rb
|
@@ -109,37 +101,40 @@ files:
|
|
109
101
|
- lib/jrubyfx/core_ext/transition.rb
|
110
102
|
- lib/jrubyfx/core_ext/tree_view.rb
|
111
103
|
- lib/jrubyfx/core_ext/xy_chart.rb
|
104
|
+
- lib/jrubyfx/dsl.rb
|
105
|
+
- lib/jrubyfx/dsl_control.rb
|
106
|
+
- lib/jrubyfx/java_fx_impl.rb
|
107
|
+
- lib/jrubyfx/module.rb
|
108
|
+
- lib/jrubyfx/part_imports.rb
|
109
|
+
- lib/jrubyfx/utils.rb
|
112
110
|
- lib/jrubyfx/utils/__ignore_java_stupid_rdoc.rb
|
113
111
|
- lib/jrubyfx/utils/common_converters.rb
|
114
112
|
- lib/jrubyfx/utils/common_utils.rb
|
115
113
|
- lib/jrubyfx/utils/string_utils.rb
|
116
|
-
-
|
117
|
-
-
|
118
|
-
- bin/jrubyfx-generator
|
119
|
-
- bin/jrubyfx-jarify
|
120
|
-
- bin/jrubyfx-compile
|
114
|
+
- lib/jrubyfx/version.rb
|
115
|
+
- lib/jrubyfx_tasks.rb
|
121
116
|
homepage: https://github.com/jruby/jrubyfx
|
122
117
|
licenses:
|
123
118
|
- Apache-2.0
|
124
119
|
metadata: {}
|
125
|
-
post_install_message:
|
120
|
+
post_install_message:
|
126
121
|
rdoc_options: []
|
127
122
|
require_paths:
|
128
123
|
- lib
|
129
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
130
125
|
requirements:
|
131
|
-
- -
|
126
|
+
- - ">="
|
132
127
|
- !ruby/object:Gem::Version
|
133
128
|
version: '0'
|
134
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
130
|
requirements:
|
136
|
-
- -
|
131
|
+
- - ">="
|
137
132
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
133
|
+
version: '0'
|
139
134
|
requirements: []
|
140
|
-
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
142
|
-
signing_key:
|
135
|
+
rubyforge_project: jrubyfx
|
136
|
+
rubygems_version: 2.2.2
|
137
|
+
signing_key:
|
143
138
|
specification_version: 4
|
144
139
|
summary: JavaFX for JRuby with FXML
|
145
140
|
test_files: []
|
@@ -1,1883 +0,0 @@
|
|
1
|
-
class Java::JavafxAnimation::PathTransition
|
2
|
-
include JRubyFX::DSL
|
3
|
-
def orientation=(rbenum)
|
4
|
-
java_send "setOrientation", [Java::JavafxAnimation::PathTransition::OrientationType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxAnimation::PathTransition::OrientationType)
|
5
|
-
end
|
6
|
-
end
|
7
|
-
class Java::JavafxScene::Node
|
8
|
-
include JRubyFX::DSL
|
9
|
-
def depth_test=(rbenum)
|
10
|
-
java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
|
11
|
-
end
|
12
|
-
def node_orientation=(rbenum)
|
13
|
-
java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
|
14
|
-
end
|
15
|
-
def blend_mode=(rbenum)
|
16
|
-
java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
|
17
|
-
end
|
18
|
-
def cache_hint=(rbenum)
|
19
|
-
java_send "setCacheHint", [Java::JavafxScene::CacheHint], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::CacheHint)
|
20
|
-
end
|
21
|
-
def accessible_role=(rbenum)
|
22
|
-
java_send "setAccessibleRole", [Java::JavafxScene::AccessibleRole], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleRole)
|
23
|
-
end
|
24
|
-
def notify_accessible_attribute_changed=(rbenum)
|
25
|
-
java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
|
26
|
-
end
|
27
|
-
def on_context_menu_requested(&block)
|
28
|
-
if block_given?
|
29
|
-
setOnContextMenuRequested block
|
30
|
-
else
|
31
|
-
getOnContextMenuRequested
|
32
|
-
end
|
33
|
-
end
|
34
|
-
def on_mouse_clicked(&block)
|
35
|
-
if block_given?
|
36
|
-
setOnMouseClicked block
|
37
|
-
else
|
38
|
-
getOnMouseClicked
|
39
|
-
end
|
40
|
-
end
|
41
|
-
def on_mouse_dragged(&block)
|
42
|
-
if block_given?
|
43
|
-
setOnMouseDragged block
|
44
|
-
else
|
45
|
-
getOnMouseDragged
|
46
|
-
end
|
47
|
-
end
|
48
|
-
def on_mouse_entered(&block)
|
49
|
-
if block_given?
|
50
|
-
setOnMouseEntered block
|
51
|
-
else
|
52
|
-
getOnMouseEntered
|
53
|
-
end
|
54
|
-
end
|
55
|
-
def on_mouse_exited(&block)
|
56
|
-
if block_given?
|
57
|
-
setOnMouseExited block
|
58
|
-
else
|
59
|
-
getOnMouseExited
|
60
|
-
end
|
61
|
-
end
|
62
|
-
def on_mouse_moved(&block)
|
63
|
-
if block_given?
|
64
|
-
setOnMouseMoved block
|
65
|
-
else
|
66
|
-
getOnMouseMoved
|
67
|
-
end
|
68
|
-
end
|
69
|
-
def on_mouse_pressed(&block)
|
70
|
-
if block_given?
|
71
|
-
setOnMousePressed block
|
72
|
-
else
|
73
|
-
getOnMousePressed
|
74
|
-
end
|
75
|
-
end
|
76
|
-
def on_mouse_released(&block)
|
77
|
-
if block_given?
|
78
|
-
setOnMouseReleased block
|
79
|
-
else
|
80
|
-
getOnMouseReleased
|
81
|
-
end
|
82
|
-
end
|
83
|
-
def on_drag_detected(&block)
|
84
|
-
if block_given?
|
85
|
-
setOnDragDetected block
|
86
|
-
else
|
87
|
-
getOnDragDetected
|
88
|
-
end
|
89
|
-
end
|
90
|
-
def on_mouse_drag_over(&block)
|
91
|
-
if block_given?
|
92
|
-
setOnMouseDragOver block
|
93
|
-
else
|
94
|
-
getOnMouseDragOver
|
95
|
-
end
|
96
|
-
end
|
97
|
-
def on_mouse_drag_released(&block)
|
98
|
-
if block_given?
|
99
|
-
setOnMouseDragReleased block
|
100
|
-
else
|
101
|
-
getOnMouseDragReleased
|
102
|
-
end
|
103
|
-
end
|
104
|
-
def on_mouse_drag_entered(&block)
|
105
|
-
if block_given?
|
106
|
-
setOnMouseDragEntered block
|
107
|
-
else
|
108
|
-
getOnMouseDragEntered
|
109
|
-
end
|
110
|
-
end
|
111
|
-
def on_mouse_drag_exited(&block)
|
112
|
-
if block_given?
|
113
|
-
setOnMouseDragExited block
|
114
|
-
else
|
115
|
-
getOnMouseDragExited
|
116
|
-
end
|
117
|
-
end
|
118
|
-
def on_scroll_started(&block)
|
119
|
-
if block_given?
|
120
|
-
setOnScrollStarted block
|
121
|
-
else
|
122
|
-
getOnScrollStarted
|
123
|
-
end
|
124
|
-
end
|
125
|
-
def on_scroll(&block)
|
126
|
-
if block_given?
|
127
|
-
setOnScroll block
|
128
|
-
else
|
129
|
-
getOnScroll
|
130
|
-
end
|
131
|
-
end
|
132
|
-
def on_scroll_finished(&block)
|
133
|
-
if block_given?
|
134
|
-
setOnScrollFinished block
|
135
|
-
else
|
136
|
-
getOnScrollFinished
|
137
|
-
end
|
138
|
-
end
|
139
|
-
def on_rotation_started(&block)
|
140
|
-
if block_given?
|
141
|
-
setOnRotationStarted block
|
142
|
-
else
|
143
|
-
getOnRotationStarted
|
144
|
-
end
|
145
|
-
end
|
146
|
-
def on_rotate(&block)
|
147
|
-
if block_given?
|
148
|
-
setOnRotate block
|
149
|
-
else
|
150
|
-
getOnRotate
|
151
|
-
end
|
152
|
-
end
|
153
|
-
def on_rotation_finished(&block)
|
154
|
-
if block_given?
|
155
|
-
setOnRotationFinished block
|
156
|
-
else
|
157
|
-
getOnRotationFinished
|
158
|
-
end
|
159
|
-
end
|
160
|
-
def on_zoom_started(&block)
|
161
|
-
if block_given?
|
162
|
-
setOnZoomStarted block
|
163
|
-
else
|
164
|
-
getOnZoomStarted
|
165
|
-
end
|
166
|
-
end
|
167
|
-
def on_zoom(&block)
|
168
|
-
if block_given?
|
169
|
-
setOnZoom block
|
170
|
-
else
|
171
|
-
getOnZoom
|
172
|
-
end
|
173
|
-
end
|
174
|
-
def on_zoom_finished(&block)
|
175
|
-
if block_given?
|
176
|
-
setOnZoomFinished block
|
177
|
-
else
|
178
|
-
getOnZoomFinished
|
179
|
-
end
|
180
|
-
end
|
181
|
-
def on_swipe_up(&block)
|
182
|
-
if block_given?
|
183
|
-
setOnSwipeUp block
|
184
|
-
else
|
185
|
-
getOnSwipeUp
|
186
|
-
end
|
187
|
-
end
|
188
|
-
def on_swipe_down(&block)
|
189
|
-
if block_given?
|
190
|
-
setOnSwipeDown block
|
191
|
-
else
|
192
|
-
getOnSwipeDown
|
193
|
-
end
|
194
|
-
end
|
195
|
-
def on_swipe_left(&block)
|
196
|
-
if block_given?
|
197
|
-
setOnSwipeLeft block
|
198
|
-
else
|
199
|
-
getOnSwipeLeft
|
200
|
-
end
|
201
|
-
end
|
202
|
-
def on_swipe_right(&block)
|
203
|
-
if block_given?
|
204
|
-
setOnSwipeRight block
|
205
|
-
else
|
206
|
-
getOnSwipeRight
|
207
|
-
end
|
208
|
-
end
|
209
|
-
def on_touch_pressed(&block)
|
210
|
-
if block_given?
|
211
|
-
setOnTouchPressed block
|
212
|
-
else
|
213
|
-
getOnTouchPressed
|
214
|
-
end
|
215
|
-
end
|
216
|
-
def on_touch_moved(&block)
|
217
|
-
if block_given?
|
218
|
-
setOnTouchMoved block
|
219
|
-
else
|
220
|
-
getOnTouchMoved
|
221
|
-
end
|
222
|
-
end
|
223
|
-
def on_touch_released(&block)
|
224
|
-
if block_given?
|
225
|
-
setOnTouchReleased block
|
226
|
-
else
|
227
|
-
getOnTouchReleased
|
228
|
-
end
|
229
|
-
end
|
230
|
-
def on_touch_stationary(&block)
|
231
|
-
if block_given?
|
232
|
-
setOnTouchStationary block
|
233
|
-
else
|
234
|
-
getOnTouchStationary
|
235
|
-
end
|
236
|
-
end
|
237
|
-
def on_drag_entered(&block)
|
238
|
-
if block_given?
|
239
|
-
setOnDragEntered block
|
240
|
-
else
|
241
|
-
getOnDragEntered
|
242
|
-
end
|
243
|
-
end
|
244
|
-
def on_drag_exited(&block)
|
245
|
-
if block_given?
|
246
|
-
setOnDragExited block
|
247
|
-
else
|
248
|
-
getOnDragExited
|
249
|
-
end
|
250
|
-
end
|
251
|
-
def on_drag_over(&block)
|
252
|
-
if block_given?
|
253
|
-
setOnDragOver block
|
254
|
-
else
|
255
|
-
getOnDragOver
|
256
|
-
end
|
257
|
-
end
|
258
|
-
def on_drag_dropped(&block)
|
259
|
-
if block_given?
|
260
|
-
setOnDragDropped block
|
261
|
-
else
|
262
|
-
getOnDragDropped
|
263
|
-
end
|
264
|
-
end
|
265
|
-
def on_drag_done(&block)
|
266
|
-
if block_given?
|
267
|
-
setOnDragDone block
|
268
|
-
else
|
269
|
-
getOnDragDone
|
270
|
-
end
|
271
|
-
end
|
272
|
-
def on_key_pressed(&block)
|
273
|
-
if block_given?
|
274
|
-
setOnKeyPressed block
|
275
|
-
else
|
276
|
-
getOnKeyPressed
|
277
|
-
end
|
278
|
-
end
|
279
|
-
def on_key_released(&block)
|
280
|
-
if block_given?
|
281
|
-
setOnKeyReleased block
|
282
|
-
else
|
283
|
-
getOnKeyReleased
|
284
|
-
end
|
285
|
-
end
|
286
|
-
def on_key_typed(&block)
|
287
|
-
if block_given?
|
288
|
-
setOnKeyTyped block
|
289
|
-
else
|
290
|
-
getOnKeyTyped
|
291
|
-
end
|
292
|
-
end
|
293
|
-
def on_input_method_text_changed(&block)
|
294
|
-
if block_given?
|
295
|
-
setOnInputMethodTextChanged block
|
296
|
-
else
|
297
|
-
getOnInputMethodTextChanged
|
298
|
-
end
|
299
|
-
end
|
300
|
-
def rotate(*args)
|
301
|
-
transforms << build(Rotate, *args)
|
302
|
-
end
|
303
|
-
def effect(*r)
|
304
|
-
if r.length > 0
|
305
|
-
self.effect = r[0]
|
306
|
-
else
|
307
|
-
get_effect
|
308
|
-
end
|
309
|
-
end
|
310
|
-
end
|
311
|
-
class Java::JavafxScene::Scene
|
312
|
-
include JRubyFX::DSL
|
313
|
-
def node_orientation=(rbenum)
|
314
|
-
java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
|
315
|
-
end
|
316
|
-
def fill=(value)
|
317
|
-
setFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
318
|
-
end
|
319
|
-
def on_context_menu_requested(&block)
|
320
|
-
if block_given?
|
321
|
-
setOnContextMenuRequested block
|
322
|
-
else
|
323
|
-
getOnContextMenuRequested
|
324
|
-
end
|
325
|
-
end
|
326
|
-
def on_mouse_clicked(&block)
|
327
|
-
if block_given?
|
328
|
-
setOnMouseClicked block
|
329
|
-
else
|
330
|
-
getOnMouseClicked
|
331
|
-
end
|
332
|
-
end
|
333
|
-
def on_mouse_dragged(&block)
|
334
|
-
if block_given?
|
335
|
-
setOnMouseDragged block
|
336
|
-
else
|
337
|
-
getOnMouseDragged
|
338
|
-
end
|
339
|
-
end
|
340
|
-
def on_mouse_entered(&block)
|
341
|
-
if block_given?
|
342
|
-
setOnMouseEntered block
|
343
|
-
else
|
344
|
-
getOnMouseEntered
|
345
|
-
end
|
346
|
-
end
|
347
|
-
def on_mouse_exited(&block)
|
348
|
-
if block_given?
|
349
|
-
setOnMouseExited block
|
350
|
-
else
|
351
|
-
getOnMouseExited
|
352
|
-
end
|
353
|
-
end
|
354
|
-
def on_mouse_moved(&block)
|
355
|
-
if block_given?
|
356
|
-
setOnMouseMoved block
|
357
|
-
else
|
358
|
-
getOnMouseMoved
|
359
|
-
end
|
360
|
-
end
|
361
|
-
def on_mouse_pressed(&block)
|
362
|
-
if block_given?
|
363
|
-
setOnMousePressed block
|
364
|
-
else
|
365
|
-
getOnMousePressed
|
366
|
-
end
|
367
|
-
end
|
368
|
-
def on_mouse_released(&block)
|
369
|
-
if block_given?
|
370
|
-
setOnMouseReleased block
|
371
|
-
else
|
372
|
-
getOnMouseReleased
|
373
|
-
end
|
374
|
-
end
|
375
|
-
def on_drag_detected(&block)
|
376
|
-
if block_given?
|
377
|
-
setOnDragDetected block
|
378
|
-
else
|
379
|
-
getOnDragDetected
|
380
|
-
end
|
381
|
-
end
|
382
|
-
def on_mouse_drag_over(&block)
|
383
|
-
if block_given?
|
384
|
-
setOnMouseDragOver block
|
385
|
-
else
|
386
|
-
getOnMouseDragOver
|
387
|
-
end
|
388
|
-
end
|
389
|
-
def on_mouse_drag_released(&block)
|
390
|
-
if block_given?
|
391
|
-
setOnMouseDragReleased block
|
392
|
-
else
|
393
|
-
getOnMouseDragReleased
|
394
|
-
end
|
395
|
-
end
|
396
|
-
def on_mouse_drag_entered(&block)
|
397
|
-
if block_given?
|
398
|
-
setOnMouseDragEntered block
|
399
|
-
else
|
400
|
-
getOnMouseDragEntered
|
401
|
-
end
|
402
|
-
end
|
403
|
-
def on_mouse_drag_exited(&block)
|
404
|
-
if block_given?
|
405
|
-
setOnMouseDragExited block
|
406
|
-
else
|
407
|
-
getOnMouseDragExited
|
408
|
-
end
|
409
|
-
end
|
410
|
-
def on_scroll_started(&block)
|
411
|
-
if block_given?
|
412
|
-
setOnScrollStarted block
|
413
|
-
else
|
414
|
-
getOnScrollStarted
|
415
|
-
end
|
416
|
-
end
|
417
|
-
def on_scroll(&block)
|
418
|
-
if block_given?
|
419
|
-
setOnScroll block
|
420
|
-
else
|
421
|
-
getOnScroll
|
422
|
-
end
|
423
|
-
end
|
424
|
-
def on_scroll_finished(&block)
|
425
|
-
if block_given?
|
426
|
-
setOnScrollFinished block
|
427
|
-
else
|
428
|
-
getOnScrollFinished
|
429
|
-
end
|
430
|
-
end
|
431
|
-
def on_rotation_started(&block)
|
432
|
-
if block_given?
|
433
|
-
setOnRotationStarted block
|
434
|
-
else
|
435
|
-
getOnRotationStarted
|
436
|
-
end
|
437
|
-
end
|
438
|
-
def on_rotate(&block)
|
439
|
-
if block_given?
|
440
|
-
setOnRotate block
|
441
|
-
else
|
442
|
-
getOnRotate
|
443
|
-
end
|
444
|
-
end
|
445
|
-
def on_rotation_finished(&block)
|
446
|
-
if block_given?
|
447
|
-
setOnRotationFinished block
|
448
|
-
else
|
449
|
-
getOnRotationFinished
|
450
|
-
end
|
451
|
-
end
|
452
|
-
def on_zoom_started(&block)
|
453
|
-
if block_given?
|
454
|
-
setOnZoomStarted block
|
455
|
-
else
|
456
|
-
getOnZoomStarted
|
457
|
-
end
|
458
|
-
end
|
459
|
-
def on_zoom(&block)
|
460
|
-
if block_given?
|
461
|
-
setOnZoom block
|
462
|
-
else
|
463
|
-
getOnZoom
|
464
|
-
end
|
465
|
-
end
|
466
|
-
def on_zoom_finished(&block)
|
467
|
-
if block_given?
|
468
|
-
setOnZoomFinished block
|
469
|
-
else
|
470
|
-
getOnZoomFinished
|
471
|
-
end
|
472
|
-
end
|
473
|
-
def on_swipe_up(&block)
|
474
|
-
if block_given?
|
475
|
-
setOnSwipeUp block
|
476
|
-
else
|
477
|
-
getOnSwipeUp
|
478
|
-
end
|
479
|
-
end
|
480
|
-
def on_swipe_down(&block)
|
481
|
-
if block_given?
|
482
|
-
setOnSwipeDown block
|
483
|
-
else
|
484
|
-
getOnSwipeDown
|
485
|
-
end
|
486
|
-
end
|
487
|
-
def on_swipe_left(&block)
|
488
|
-
if block_given?
|
489
|
-
setOnSwipeLeft block
|
490
|
-
else
|
491
|
-
getOnSwipeLeft
|
492
|
-
end
|
493
|
-
end
|
494
|
-
def on_swipe_right(&block)
|
495
|
-
if block_given?
|
496
|
-
setOnSwipeRight block
|
497
|
-
else
|
498
|
-
getOnSwipeRight
|
499
|
-
end
|
500
|
-
end
|
501
|
-
def on_touch_pressed(&block)
|
502
|
-
if block_given?
|
503
|
-
setOnTouchPressed block
|
504
|
-
else
|
505
|
-
getOnTouchPressed
|
506
|
-
end
|
507
|
-
end
|
508
|
-
def on_touch_moved(&block)
|
509
|
-
if block_given?
|
510
|
-
setOnTouchMoved block
|
511
|
-
else
|
512
|
-
getOnTouchMoved
|
513
|
-
end
|
514
|
-
end
|
515
|
-
def on_touch_released(&block)
|
516
|
-
if block_given?
|
517
|
-
setOnTouchReleased block
|
518
|
-
else
|
519
|
-
getOnTouchReleased
|
520
|
-
end
|
521
|
-
end
|
522
|
-
def on_touch_stationary(&block)
|
523
|
-
if block_given?
|
524
|
-
setOnTouchStationary block
|
525
|
-
else
|
526
|
-
getOnTouchStationary
|
527
|
-
end
|
528
|
-
end
|
529
|
-
def on_drag_entered(&block)
|
530
|
-
if block_given?
|
531
|
-
setOnDragEntered block
|
532
|
-
else
|
533
|
-
getOnDragEntered
|
534
|
-
end
|
535
|
-
end
|
536
|
-
def on_drag_exited(&block)
|
537
|
-
if block_given?
|
538
|
-
setOnDragExited block
|
539
|
-
else
|
540
|
-
getOnDragExited
|
541
|
-
end
|
542
|
-
end
|
543
|
-
def on_drag_over(&block)
|
544
|
-
if block_given?
|
545
|
-
setOnDragOver block
|
546
|
-
else
|
547
|
-
getOnDragOver
|
548
|
-
end
|
549
|
-
end
|
550
|
-
def on_drag_dropped(&block)
|
551
|
-
if block_given?
|
552
|
-
setOnDragDropped block
|
553
|
-
else
|
554
|
-
getOnDragDropped
|
555
|
-
end
|
556
|
-
end
|
557
|
-
def on_drag_done(&block)
|
558
|
-
if block_given?
|
559
|
-
setOnDragDone block
|
560
|
-
else
|
561
|
-
getOnDragDone
|
562
|
-
end
|
563
|
-
end
|
564
|
-
def on_key_pressed(&block)
|
565
|
-
if block_given?
|
566
|
-
setOnKeyPressed block
|
567
|
-
else
|
568
|
-
getOnKeyPressed
|
569
|
-
end
|
570
|
-
end
|
571
|
-
def on_key_released(&block)
|
572
|
-
if block_given?
|
573
|
-
setOnKeyReleased block
|
574
|
-
else
|
575
|
-
getOnKeyReleased
|
576
|
-
end
|
577
|
-
end
|
578
|
-
def on_key_typed(&block)
|
579
|
-
if block_given?
|
580
|
-
setOnKeyTyped block
|
581
|
-
else
|
582
|
-
getOnKeyTyped
|
583
|
-
end
|
584
|
-
end
|
585
|
-
def on_input_method_text_changed(&block)
|
586
|
-
if block_given?
|
587
|
-
setOnInputMethodTextChanged block
|
588
|
-
else
|
589
|
-
getOnInputMethodTextChanged
|
590
|
-
end
|
591
|
-
end
|
592
|
-
#TODO: logical_child(root)
|
593
|
-
def self.new(*args)
|
594
|
-
super *JRubyFX::Utils::CommonConverters.convert_args(args, [[:none], [:none, :color], [:none, :none, :none], [:none, :none, :none, :color]])
|
595
|
-
end
|
596
|
-
end
|
597
|
-
class Java::JavafxSceneChart::Axis
|
598
|
-
include JRubyFX::DSL
|
599
|
-
def side=(rbenum)
|
600
|
-
java_send "setSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
|
601
|
-
end
|
602
|
-
def tick_label_fill=(value)
|
603
|
-
setTickLabelFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
604
|
-
end
|
605
|
-
end
|
606
|
-
class Java::JavafxSceneChart::Chart
|
607
|
-
include JRubyFX::DSL
|
608
|
-
def title_side=(rbenum)
|
609
|
-
java_send "setTitleSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
|
610
|
-
end
|
611
|
-
def legend_side=(rbenum)
|
612
|
-
java_send "setLegendSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
|
613
|
-
end
|
614
|
-
end
|
615
|
-
class Java::JavafxSceneChart::LineChart
|
616
|
-
include JRubyFX::DSL
|
617
|
-
def axis_sorting_policy=(rbenum)
|
618
|
-
java_send "setAxisSortingPolicy", [Java::JavafxSceneChart::LineChart::SortingPolicy], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneChart::LineChart::SortingPolicy)
|
619
|
-
end
|
620
|
-
end
|
621
|
-
class Java::JavafxSceneControl::ListView
|
622
|
-
include JRubyFX::DSL
|
623
|
-
def orientation=(rbenum)
|
624
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
625
|
-
end
|
626
|
-
def on_edit_start(&block)
|
627
|
-
if block_given?
|
628
|
-
setOnEditStart block
|
629
|
-
else
|
630
|
-
getOnEditStart
|
631
|
-
end
|
632
|
-
end
|
633
|
-
def on_edit_commit(&block)
|
634
|
-
if block_given?
|
635
|
-
setOnEditCommit block
|
636
|
-
else
|
637
|
-
getOnEditCommit
|
638
|
-
end
|
639
|
-
end
|
640
|
-
def on_edit_cancel(&block)
|
641
|
-
if block_given?
|
642
|
-
setOnEditCancel block
|
643
|
-
else
|
644
|
-
getOnEditCancel
|
645
|
-
end
|
646
|
-
end
|
647
|
-
def on_scroll_to(&block)
|
648
|
-
if block_given?
|
649
|
-
setOnScrollTo block
|
650
|
-
else
|
651
|
-
getOnScrollTo
|
652
|
-
end
|
653
|
-
end
|
654
|
-
end
|
655
|
-
class Java::JavafxSceneControl::MenuButton
|
656
|
-
include JRubyFX::DSL
|
657
|
-
def popup_side=(rbenum)
|
658
|
-
java_send "setPopupSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
|
659
|
-
end
|
660
|
-
def method_missing(name, *args, &block)
|
661
|
-
super(name, *args, &block).tap do |obj|
|
662
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::MenuItem) && !name.to_s.end_with?('!')
|
663
|
-
end
|
664
|
-
end
|
665
|
-
def add(value)
|
666
|
-
get_items() << value
|
667
|
-
end
|
668
|
-
end
|
669
|
-
class Java::JavafxSceneControl::PopupControl
|
670
|
-
include JRubyFX::DSL
|
671
|
-
def anchor_location=(rbenum)
|
672
|
-
java_send "setAnchorLocation", [Java::JavafxStage::PopupWindow::AnchorLocation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxStage::PopupWindow::AnchorLocation)
|
673
|
-
end
|
674
|
-
def on_auto_hide(&block)
|
675
|
-
if block_given?
|
676
|
-
setOnAutoHide block
|
677
|
-
else
|
678
|
-
getOnAutoHide
|
679
|
-
end
|
680
|
-
end
|
681
|
-
def on_close_request(&block)
|
682
|
-
if block_given?
|
683
|
-
setOnCloseRequest block
|
684
|
-
else
|
685
|
-
getOnCloseRequest
|
686
|
-
end
|
687
|
-
end
|
688
|
-
def on_showing(&block)
|
689
|
-
if block_given?
|
690
|
-
setOnShowing block
|
691
|
-
else
|
692
|
-
getOnShowing
|
693
|
-
end
|
694
|
-
end
|
695
|
-
def on_shown(&block)
|
696
|
-
if block_given?
|
697
|
-
setOnShown block
|
698
|
-
else
|
699
|
-
getOnShown
|
700
|
-
end
|
701
|
-
end
|
702
|
-
def on_hiding(&block)
|
703
|
-
if block_given?
|
704
|
-
setOnHiding block
|
705
|
-
else
|
706
|
-
getOnHiding
|
707
|
-
end
|
708
|
-
end
|
709
|
-
def on_hidden(&block)
|
710
|
-
if block_given?
|
711
|
-
setOnHidden block
|
712
|
-
else
|
713
|
-
getOnHidden
|
714
|
-
end
|
715
|
-
end
|
716
|
-
end
|
717
|
-
class Java::JavafxSceneControl::ScrollBar
|
718
|
-
include JRubyFX::DSL
|
719
|
-
def orientation=(rbenum)
|
720
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
721
|
-
end
|
722
|
-
end
|
723
|
-
class Java::JavafxSceneControl::ScrollPane
|
724
|
-
include JRubyFX::DSL
|
725
|
-
def hbar_policy=(rbenum)
|
726
|
-
java_send "setHbarPolicy", [Java::JavafxSceneControl::ScrollPane::ScrollBarPolicy], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ScrollPane::ScrollBarPolicy)
|
727
|
-
end
|
728
|
-
def vbar_policy=(rbenum)
|
729
|
-
java_send "setVbarPolicy", [Java::JavafxSceneControl::ScrollPane::ScrollBarPolicy], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ScrollPane::ScrollBarPolicy)
|
730
|
-
end
|
731
|
-
#TODO: logical_child(content)
|
732
|
-
end
|
733
|
-
class Java::JavafxSceneControl::Separator
|
734
|
-
include JRubyFX::DSL
|
735
|
-
def orientation=(rbenum)
|
736
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
737
|
-
end
|
738
|
-
def halignment=(rbenum)
|
739
|
-
java_send "setHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
|
740
|
-
end
|
741
|
-
def valignment=(rbenum)
|
742
|
-
java_send "setValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
|
743
|
-
end
|
744
|
-
end
|
745
|
-
class Java::JavafxSceneControl::Slider
|
746
|
-
include JRubyFX::DSL
|
747
|
-
def orientation=(rbenum)
|
748
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
749
|
-
end
|
750
|
-
end
|
751
|
-
class Java::JavafxSceneControl::SplitPane
|
752
|
-
include JRubyFX::DSL
|
753
|
-
def orientation=(rbenum)
|
754
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
755
|
-
end
|
756
|
-
end
|
757
|
-
class Java::JavafxSceneControl::TableColumn
|
758
|
-
include JRubyFX::DSL
|
759
|
-
def sort_type=(rbenum)
|
760
|
-
java_send "setSortType", [Java::JavafxSceneControl::TableColumn::SortType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::TableColumn::SortType)
|
761
|
-
end
|
762
|
-
def on_edit_start(&block)
|
763
|
-
if block_given?
|
764
|
-
setOnEditStart block
|
765
|
-
else
|
766
|
-
getOnEditStart
|
767
|
-
end
|
768
|
-
end
|
769
|
-
def on_edit_commit(&block)
|
770
|
-
if block_given?
|
771
|
-
setOnEditCommit block
|
772
|
-
else
|
773
|
-
getOnEditCommit
|
774
|
-
end
|
775
|
-
end
|
776
|
-
def on_edit_cancel(&block)
|
777
|
-
if block_given?
|
778
|
-
setOnEditCancel block
|
779
|
-
else
|
780
|
-
getOnEditCancel
|
781
|
-
end
|
782
|
-
end
|
783
|
-
end
|
784
|
-
class Java::JavafxSceneControl::TabPane
|
785
|
-
include JRubyFX::DSL
|
786
|
-
def tab_closing_policy=(rbenum)
|
787
|
-
java_send "setTabClosingPolicy", [Java::JavafxSceneControl::TabPane::TabClosingPolicy], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::TabPane::TabClosingPolicy)
|
788
|
-
end
|
789
|
-
def side=(rbenum)
|
790
|
-
java_send "setSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
|
791
|
-
end
|
792
|
-
#TODO: logical_children(tabs)
|
793
|
-
end
|
794
|
-
class Java::JavafxSceneControl::TextField
|
795
|
-
include JRubyFX::DSL
|
796
|
-
def alignment=(rbenum)
|
797
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
798
|
-
end
|
799
|
-
def on_action(&block)
|
800
|
-
if block_given?
|
801
|
-
setOnAction block
|
802
|
-
else
|
803
|
-
getOnAction
|
804
|
-
end
|
805
|
-
end
|
806
|
-
end
|
807
|
-
class Java::JavafxSceneControl::ToggleButton
|
808
|
-
include JRubyFX::DSL
|
809
|
-
def text_alignment=(rbenum)
|
810
|
-
java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
|
811
|
-
end
|
812
|
-
def text_overrun=(rbenum)
|
813
|
-
java_send "setTextOverrun", [Java::JavafxSceneControl::OverrunStyle], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::OverrunStyle)
|
814
|
-
end
|
815
|
-
def content_display=(rbenum)
|
816
|
-
java_send "setContentDisplay", [Java::JavafxSceneControl::ContentDisplay], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ContentDisplay)
|
817
|
-
end
|
818
|
-
def alignment=(rbenum)
|
819
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
820
|
-
end
|
821
|
-
def depth_test=(rbenum)
|
822
|
-
java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
|
823
|
-
end
|
824
|
-
def node_orientation=(rbenum)
|
825
|
-
java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
|
826
|
-
end
|
827
|
-
def blend_mode=(rbenum)
|
828
|
-
java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
|
829
|
-
end
|
830
|
-
def cache_hint=(rbenum)
|
831
|
-
java_send "setCacheHint", [Java::JavafxScene::CacheHint], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::CacheHint)
|
832
|
-
end
|
833
|
-
def accessible_role=(rbenum)
|
834
|
-
java_send "setAccessibleRole", [Java::JavafxScene::AccessibleRole], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleRole)
|
835
|
-
end
|
836
|
-
def notify_accessible_attribute_changed=(rbenum)
|
837
|
-
java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
|
838
|
-
end
|
839
|
-
def text_fill=(value)
|
840
|
-
setTextFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
841
|
-
end
|
842
|
-
def on_action(&block)
|
843
|
-
if block_given?
|
844
|
-
setOnAction block
|
845
|
-
else
|
846
|
-
getOnAction
|
847
|
-
end
|
848
|
-
end
|
849
|
-
def on_context_menu_requested(&block)
|
850
|
-
if block_given?
|
851
|
-
setOnContextMenuRequested block
|
852
|
-
else
|
853
|
-
getOnContextMenuRequested
|
854
|
-
end
|
855
|
-
end
|
856
|
-
def on_mouse_clicked(&block)
|
857
|
-
if block_given?
|
858
|
-
setOnMouseClicked block
|
859
|
-
else
|
860
|
-
getOnMouseClicked
|
861
|
-
end
|
862
|
-
end
|
863
|
-
def on_mouse_dragged(&block)
|
864
|
-
if block_given?
|
865
|
-
setOnMouseDragged block
|
866
|
-
else
|
867
|
-
getOnMouseDragged
|
868
|
-
end
|
869
|
-
end
|
870
|
-
def on_mouse_entered(&block)
|
871
|
-
if block_given?
|
872
|
-
setOnMouseEntered block
|
873
|
-
else
|
874
|
-
getOnMouseEntered
|
875
|
-
end
|
876
|
-
end
|
877
|
-
def on_mouse_exited(&block)
|
878
|
-
if block_given?
|
879
|
-
setOnMouseExited block
|
880
|
-
else
|
881
|
-
getOnMouseExited
|
882
|
-
end
|
883
|
-
end
|
884
|
-
def on_mouse_moved(&block)
|
885
|
-
if block_given?
|
886
|
-
setOnMouseMoved block
|
887
|
-
else
|
888
|
-
getOnMouseMoved
|
889
|
-
end
|
890
|
-
end
|
891
|
-
def on_mouse_pressed(&block)
|
892
|
-
if block_given?
|
893
|
-
setOnMousePressed block
|
894
|
-
else
|
895
|
-
getOnMousePressed
|
896
|
-
end
|
897
|
-
end
|
898
|
-
def on_mouse_released(&block)
|
899
|
-
if block_given?
|
900
|
-
setOnMouseReleased block
|
901
|
-
else
|
902
|
-
getOnMouseReleased
|
903
|
-
end
|
904
|
-
end
|
905
|
-
def on_drag_detected(&block)
|
906
|
-
if block_given?
|
907
|
-
setOnDragDetected block
|
908
|
-
else
|
909
|
-
getOnDragDetected
|
910
|
-
end
|
911
|
-
end
|
912
|
-
def on_mouse_drag_over(&block)
|
913
|
-
if block_given?
|
914
|
-
setOnMouseDragOver block
|
915
|
-
else
|
916
|
-
getOnMouseDragOver
|
917
|
-
end
|
918
|
-
end
|
919
|
-
def on_mouse_drag_released(&block)
|
920
|
-
if block_given?
|
921
|
-
setOnMouseDragReleased block
|
922
|
-
else
|
923
|
-
getOnMouseDragReleased
|
924
|
-
end
|
925
|
-
end
|
926
|
-
def on_mouse_drag_entered(&block)
|
927
|
-
if block_given?
|
928
|
-
setOnMouseDragEntered block
|
929
|
-
else
|
930
|
-
getOnMouseDragEntered
|
931
|
-
end
|
932
|
-
end
|
933
|
-
def on_mouse_drag_exited(&block)
|
934
|
-
if block_given?
|
935
|
-
setOnMouseDragExited block
|
936
|
-
else
|
937
|
-
getOnMouseDragExited
|
938
|
-
end
|
939
|
-
end
|
940
|
-
def on_scroll_started(&block)
|
941
|
-
if block_given?
|
942
|
-
setOnScrollStarted block
|
943
|
-
else
|
944
|
-
getOnScrollStarted
|
945
|
-
end
|
946
|
-
end
|
947
|
-
def on_scroll(&block)
|
948
|
-
if block_given?
|
949
|
-
setOnScroll block
|
950
|
-
else
|
951
|
-
getOnScroll
|
952
|
-
end
|
953
|
-
end
|
954
|
-
def on_scroll_finished(&block)
|
955
|
-
if block_given?
|
956
|
-
setOnScrollFinished block
|
957
|
-
else
|
958
|
-
getOnScrollFinished
|
959
|
-
end
|
960
|
-
end
|
961
|
-
def on_rotation_started(&block)
|
962
|
-
if block_given?
|
963
|
-
setOnRotationStarted block
|
964
|
-
else
|
965
|
-
getOnRotationStarted
|
966
|
-
end
|
967
|
-
end
|
968
|
-
def on_rotate(&block)
|
969
|
-
if block_given?
|
970
|
-
setOnRotate block
|
971
|
-
else
|
972
|
-
getOnRotate
|
973
|
-
end
|
974
|
-
end
|
975
|
-
def on_rotation_finished(&block)
|
976
|
-
if block_given?
|
977
|
-
setOnRotationFinished block
|
978
|
-
else
|
979
|
-
getOnRotationFinished
|
980
|
-
end
|
981
|
-
end
|
982
|
-
def on_zoom_started(&block)
|
983
|
-
if block_given?
|
984
|
-
setOnZoomStarted block
|
985
|
-
else
|
986
|
-
getOnZoomStarted
|
987
|
-
end
|
988
|
-
end
|
989
|
-
def on_zoom(&block)
|
990
|
-
if block_given?
|
991
|
-
setOnZoom block
|
992
|
-
else
|
993
|
-
getOnZoom
|
994
|
-
end
|
995
|
-
end
|
996
|
-
def on_zoom_finished(&block)
|
997
|
-
if block_given?
|
998
|
-
setOnZoomFinished block
|
999
|
-
else
|
1000
|
-
getOnZoomFinished
|
1001
|
-
end
|
1002
|
-
end
|
1003
|
-
def on_swipe_up(&block)
|
1004
|
-
if block_given?
|
1005
|
-
setOnSwipeUp block
|
1006
|
-
else
|
1007
|
-
getOnSwipeUp
|
1008
|
-
end
|
1009
|
-
end
|
1010
|
-
def on_swipe_down(&block)
|
1011
|
-
if block_given?
|
1012
|
-
setOnSwipeDown block
|
1013
|
-
else
|
1014
|
-
getOnSwipeDown
|
1015
|
-
end
|
1016
|
-
end
|
1017
|
-
def on_swipe_left(&block)
|
1018
|
-
if block_given?
|
1019
|
-
setOnSwipeLeft block
|
1020
|
-
else
|
1021
|
-
getOnSwipeLeft
|
1022
|
-
end
|
1023
|
-
end
|
1024
|
-
def on_swipe_right(&block)
|
1025
|
-
if block_given?
|
1026
|
-
setOnSwipeRight block
|
1027
|
-
else
|
1028
|
-
getOnSwipeRight
|
1029
|
-
end
|
1030
|
-
end
|
1031
|
-
def on_touch_pressed(&block)
|
1032
|
-
if block_given?
|
1033
|
-
setOnTouchPressed block
|
1034
|
-
else
|
1035
|
-
getOnTouchPressed
|
1036
|
-
end
|
1037
|
-
end
|
1038
|
-
def on_touch_moved(&block)
|
1039
|
-
if block_given?
|
1040
|
-
setOnTouchMoved block
|
1041
|
-
else
|
1042
|
-
getOnTouchMoved
|
1043
|
-
end
|
1044
|
-
end
|
1045
|
-
def on_touch_released(&block)
|
1046
|
-
if block_given?
|
1047
|
-
setOnTouchReleased block
|
1048
|
-
else
|
1049
|
-
getOnTouchReleased
|
1050
|
-
end
|
1051
|
-
end
|
1052
|
-
def on_touch_stationary(&block)
|
1053
|
-
if block_given?
|
1054
|
-
setOnTouchStationary block
|
1055
|
-
else
|
1056
|
-
getOnTouchStationary
|
1057
|
-
end
|
1058
|
-
end
|
1059
|
-
def on_drag_entered(&block)
|
1060
|
-
if block_given?
|
1061
|
-
setOnDragEntered block
|
1062
|
-
else
|
1063
|
-
getOnDragEntered
|
1064
|
-
end
|
1065
|
-
end
|
1066
|
-
def on_drag_exited(&block)
|
1067
|
-
if block_given?
|
1068
|
-
setOnDragExited block
|
1069
|
-
else
|
1070
|
-
getOnDragExited
|
1071
|
-
end
|
1072
|
-
end
|
1073
|
-
def on_drag_over(&block)
|
1074
|
-
if block_given?
|
1075
|
-
setOnDragOver block
|
1076
|
-
else
|
1077
|
-
getOnDragOver
|
1078
|
-
end
|
1079
|
-
end
|
1080
|
-
def on_drag_dropped(&block)
|
1081
|
-
if block_given?
|
1082
|
-
setOnDragDropped block
|
1083
|
-
else
|
1084
|
-
getOnDragDropped
|
1085
|
-
end
|
1086
|
-
end
|
1087
|
-
def on_drag_done(&block)
|
1088
|
-
if block_given?
|
1089
|
-
setOnDragDone block
|
1090
|
-
else
|
1091
|
-
getOnDragDone
|
1092
|
-
end
|
1093
|
-
end
|
1094
|
-
def on_key_pressed(&block)
|
1095
|
-
if block_given?
|
1096
|
-
setOnKeyPressed block
|
1097
|
-
else
|
1098
|
-
getOnKeyPressed
|
1099
|
-
end
|
1100
|
-
end
|
1101
|
-
def on_key_released(&block)
|
1102
|
-
if block_given?
|
1103
|
-
setOnKeyReleased block
|
1104
|
-
else
|
1105
|
-
getOnKeyReleased
|
1106
|
-
end
|
1107
|
-
end
|
1108
|
-
def on_key_typed(&block)
|
1109
|
-
if block_given?
|
1110
|
-
setOnKeyTyped block
|
1111
|
-
else
|
1112
|
-
getOnKeyTyped
|
1113
|
-
end
|
1114
|
-
end
|
1115
|
-
def on_input_method_text_changed(&block)
|
1116
|
-
if block_given?
|
1117
|
-
setOnInputMethodTextChanged block
|
1118
|
-
else
|
1119
|
-
getOnInputMethodTextChanged
|
1120
|
-
end
|
1121
|
-
end
|
1122
|
-
end
|
1123
|
-
class Java::JavafxSceneControl::ToolBar
|
1124
|
-
include JRubyFX::DSL
|
1125
|
-
def orientation=(rbenum)
|
1126
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
1127
|
-
end
|
1128
|
-
end
|
1129
|
-
class Java::JavafxSceneControl::Tooltip
|
1130
|
-
include JRubyFX::DSL
|
1131
|
-
def text_alignment=(rbenum)
|
1132
|
-
java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
|
1133
|
-
end
|
1134
|
-
def text_overrun=(rbenum)
|
1135
|
-
java_send "setTextOverrun", [Java::JavafxSceneControl::OverrunStyle], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::OverrunStyle)
|
1136
|
-
end
|
1137
|
-
def content_display=(rbenum)
|
1138
|
-
java_send "setContentDisplay", [Java::JavafxSceneControl::ContentDisplay], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ContentDisplay)
|
1139
|
-
end
|
1140
|
-
end
|
1141
|
-
class Java::JavafxSceneEffect::Blend
|
1142
|
-
include JRubyFX::DSL
|
1143
|
-
def mode=(rbenum)
|
1144
|
-
java_send "setMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
|
1145
|
-
end
|
1146
|
-
end
|
1147
|
-
class Java::JavafxSceneEffect::DropShadow
|
1148
|
-
include JRubyFX::DSL
|
1149
|
-
def blur_type=(rbenum)
|
1150
|
-
java_send "setBlurType", [Java::JavafxSceneEffect::BlurType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlurType)
|
1151
|
-
end
|
1152
|
-
def color=(value)
|
1153
|
-
setColor(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1154
|
-
end
|
1155
|
-
end
|
1156
|
-
class Java::JavafxSceneEffect::InnerShadow
|
1157
|
-
include JRubyFX::DSL
|
1158
|
-
def blur_type=(rbenum)
|
1159
|
-
java_send "setBlurType", [Java::JavafxSceneEffect::BlurType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlurType)
|
1160
|
-
end
|
1161
|
-
def color=(value)
|
1162
|
-
setColor(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1163
|
-
end
|
1164
|
-
end
|
1165
|
-
class Java::JavafxSceneEffect::Shadow
|
1166
|
-
include JRubyFX::DSL
|
1167
|
-
def blur_type=(rbenum)
|
1168
|
-
java_send "setBlurType", [Java::JavafxSceneEffect::BlurType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlurType)
|
1169
|
-
end
|
1170
|
-
def color=(value)
|
1171
|
-
setColor(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1172
|
-
end
|
1173
|
-
end
|
1174
|
-
class Java::JavafxSceneLayout::ColumnConstraints
|
1175
|
-
include JRubyFX::DSL
|
1176
|
-
def hgrow=(rbenum)
|
1177
|
-
java_send "setHgrow", [Java::JavafxSceneLayout::Priority], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneLayout::Priority)
|
1178
|
-
end
|
1179
|
-
def halignment=(rbenum)
|
1180
|
-
java_send "setHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
|
1181
|
-
end
|
1182
|
-
end
|
1183
|
-
class Java::JavafxSceneLayout::FlowPane
|
1184
|
-
include JRubyFX::DSL
|
1185
|
-
def orientation=(rbenum)
|
1186
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
1187
|
-
end
|
1188
|
-
def column_halignment=(rbenum)
|
1189
|
-
java_send "setColumnHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
|
1190
|
-
end
|
1191
|
-
def row_valignment=(rbenum)
|
1192
|
-
java_send "setRowValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
|
1193
|
-
end
|
1194
|
-
def alignment=(rbenum)
|
1195
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1196
|
-
end
|
1197
|
-
end
|
1198
|
-
class Java::JavafxSceneLayout::GridPane
|
1199
|
-
include JRubyFX::DSL
|
1200
|
-
def alignment=(rbenum)
|
1201
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1202
|
-
end
|
1203
|
-
end
|
1204
|
-
class Java::JavafxSceneLayout::HBox
|
1205
|
-
include JRubyFX::DSL
|
1206
|
-
def alignment=(rbenum)
|
1207
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1208
|
-
end
|
1209
|
-
end
|
1210
|
-
class Java::JavafxSceneLayout::RowConstraints
|
1211
|
-
include JRubyFX::DSL
|
1212
|
-
def valignment=(rbenum)
|
1213
|
-
java_send "setValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
|
1214
|
-
end
|
1215
|
-
def vgrow=(rbenum)
|
1216
|
-
java_send "setVgrow", [Java::JavafxSceneLayout::Priority], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneLayout::Priority)
|
1217
|
-
end
|
1218
|
-
end
|
1219
|
-
class Java::JavafxSceneLayout::StackPane
|
1220
|
-
include JRubyFX::DSL
|
1221
|
-
def alignment=(rbenum)
|
1222
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1223
|
-
end
|
1224
|
-
end
|
1225
|
-
class Java::JavafxSceneLayout::TilePane
|
1226
|
-
include JRubyFX::DSL
|
1227
|
-
def orientation=(rbenum)
|
1228
|
-
java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
|
1229
|
-
end
|
1230
|
-
def alignment=(rbenum)
|
1231
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1232
|
-
end
|
1233
|
-
def tile_alignment=(rbenum)
|
1234
|
-
java_send "setTileAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1235
|
-
end
|
1236
|
-
end
|
1237
|
-
class Java::JavafxSceneLayout::VBox
|
1238
|
-
include JRubyFX::DSL
|
1239
|
-
def alignment=(rbenum)
|
1240
|
-
java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
|
1241
|
-
end
|
1242
|
-
end
|
1243
|
-
class Java::JavafxSceneShape::Arc
|
1244
|
-
include JRubyFX::DSL
|
1245
|
-
def type=(rbenum)
|
1246
|
-
java_send "setType", [Java::JavafxSceneShape::ArcType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::ArcType)
|
1247
|
-
end
|
1248
|
-
end
|
1249
|
-
class Java::JavafxSceneShape::Path
|
1250
|
-
include JRubyFX::DSL
|
1251
|
-
def fill_rule=(rbenum)
|
1252
|
-
java_send "setFillRule", [Java::JavafxSceneShape::FillRule], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::FillRule)
|
1253
|
-
end
|
1254
|
-
def add(value)
|
1255
|
-
elements() << value
|
1256
|
-
end
|
1257
|
-
def rotate(*args)
|
1258
|
-
transforms << build(Rotate, *args)
|
1259
|
-
end
|
1260
|
-
end
|
1261
|
-
class Java::JavafxSceneShape::Shape
|
1262
|
-
include JRubyFX::DSL
|
1263
|
-
def stroke_type=(rbenum)
|
1264
|
-
java_send "setStrokeType", [Java::JavafxSceneShape::StrokeType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeType)
|
1265
|
-
end
|
1266
|
-
def stroke_line_join=(rbenum)
|
1267
|
-
java_send "setStrokeLineJoin", [Java::JavafxSceneShape::StrokeLineJoin], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeLineJoin)
|
1268
|
-
end
|
1269
|
-
def stroke_line_cap=(rbenum)
|
1270
|
-
java_send "setStrokeLineCap", [Java::JavafxSceneShape::StrokeLineCap], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeLineCap)
|
1271
|
-
end
|
1272
|
-
def stroke=(value)
|
1273
|
-
setStroke(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1274
|
-
end
|
1275
|
-
def fill=(value)
|
1276
|
-
setFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1277
|
-
end
|
1278
|
-
def fill(*r)
|
1279
|
-
if r.length > 0
|
1280
|
-
self.fill = r[0]
|
1281
|
-
else
|
1282
|
-
get_fill
|
1283
|
-
end
|
1284
|
-
end
|
1285
|
-
end
|
1286
|
-
class Java::JavafxSceneShape::SVGPath
|
1287
|
-
include JRubyFX::DSL
|
1288
|
-
def fill_rule=(rbenum)
|
1289
|
-
java_send "setFillRule", [Java::JavafxSceneShape::FillRule], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::FillRule)
|
1290
|
-
end
|
1291
|
-
end
|
1292
|
-
class Java::JavafxSceneText::Text
|
1293
|
-
include JRubyFX::DSL
|
1294
|
-
def text_alignment=(rbenum)
|
1295
|
-
java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
|
1296
|
-
end
|
1297
|
-
def text_origin=(rbenum)
|
1298
|
-
java_send "setTextOrigin", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
|
1299
|
-
end
|
1300
|
-
def bounds_type=(rbenum)
|
1301
|
-
java_send "setBoundsType", [Java::JavafxSceneText::TextBoundsType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextBoundsType)
|
1302
|
-
end
|
1303
|
-
def font_smoothing_type=(rbenum)
|
1304
|
-
java_send "setFontSmoothingType", [Java::JavafxSceneText::FontSmoothingType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::FontSmoothingType)
|
1305
|
-
end
|
1306
|
-
end
|
1307
|
-
class Java::JavafxSceneWeb::WebView
|
1308
|
-
include JRubyFX::DSL
|
1309
|
-
def font_smoothing_type=(rbenum)
|
1310
|
-
java_send "setFontSmoothingType", [Java::JavafxSceneText::FontSmoothingType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::FontSmoothingType)
|
1311
|
-
end
|
1312
|
-
end
|
1313
|
-
class Java::JavafxStage::PopupWindow
|
1314
|
-
include JRubyFX::DSL
|
1315
|
-
def anchor_location=(rbenum)
|
1316
|
-
java_send "setAnchorLocation", [Java::JavafxStage::PopupWindow::AnchorLocation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxStage::PopupWindow::AnchorLocation)
|
1317
|
-
end
|
1318
|
-
def on_auto_hide(&block)
|
1319
|
-
if block_given?
|
1320
|
-
setOnAutoHide block
|
1321
|
-
else
|
1322
|
-
getOnAutoHide
|
1323
|
-
end
|
1324
|
-
end
|
1325
|
-
end
|
1326
|
-
class Java::JavafxStage::Stage
|
1327
|
-
include JRubyFX::DSL
|
1328
|
-
def init_style=(rbenum)
|
1329
|
-
java_send "initStyle", [Java::JavafxStage::StageStyle], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxStage::StageStyle)
|
1330
|
-
end
|
1331
|
-
def init_modality=(rbenum)
|
1332
|
-
java_send "initModality", [Java::JavafxStage::Modality], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxStage::Modality)
|
1333
|
-
end
|
1334
|
-
end
|
1335
|
-
class Java::JavafxAnimation::FillTransition
|
1336
|
-
include JRubyFX::DSL
|
1337
|
-
def from_value=(value)
|
1338
|
-
setFromValue(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1339
|
-
end
|
1340
|
-
def to_value=(value)
|
1341
|
-
setToValue(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1342
|
-
end
|
1343
|
-
end
|
1344
|
-
class Java::JavafxAnimation::StrokeTransition
|
1345
|
-
include JRubyFX::DSL
|
1346
|
-
def from_value=(value)
|
1347
|
-
setFromValue(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1348
|
-
end
|
1349
|
-
def to_value=(value)
|
1350
|
-
setToValue(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1351
|
-
end
|
1352
|
-
end
|
1353
|
-
class Java::JavafxSceneEffect::ColorInput
|
1354
|
-
include JRubyFX::DSL
|
1355
|
-
def paint=(value)
|
1356
|
-
setPaint(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1357
|
-
end
|
1358
|
-
end
|
1359
|
-
class Java::JavafxScenePaint::Color
|
1360
|
-
include JRubyFX::DSL
|
1361
|
-
def interpolate=(value)
|
1362
|
-
interpolate(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
|
1363
|
-
end
|
1364
|
-
end
|
1365
|
-
class Java::JavafxAnimation::Animation
|
1366
|
-
include JRubyFX::DSL
|
1367
|
-
def on_finished(&block)
|
1368
|
-
if block_given?
|
1369
|
-
setOnFinished block
|
1370
|
-
else
|
1371
|
-
getOnFinished
|
1372
|
-
end
|
1373
|
-
end
|
1374
|
-
end
|
1375
|
-
class Java::JavafxConcurrent::Task
|
1376
|
-
include JRubyFX::DSL
|
1377
|
-
def on_scheduled(&block)
|
1378
|
-
if block_given?
|
1379
|
-
setOnScheduled block
|
1380
|
-
else
|
1381
|
-
getOnScheduled
|
1382
|
-
end
|
1383
|
-
end
|
1384
|
-
def on_running(&block)
|
1385
|
-
if block_given?
|
1386
|
-
setOnRunning block
|
1387
|
-
else
|
1388
|
-
getOnRunning
|
1389
|
-
end
|
1390
|
-
end
|
1391
|
-
def on_succeeded(&block)
|
1392
|
-
if block_given?
|
1393
|
-
setOnSucceeded block
|
1394
|
-
else
|
1395
|
-
getOnSucceeded
|
1396
|
-
end
|
1397
|
-
end
|
1398
|
-
def on_cancelled(&block)
|
1399
|
-
if block_given?
|
1400
|
-
setOnCancelled block
|
1401
|
-
else
|
1402
|
-
getOnCancelled
|
1403
|
-
end
|
1404
|
-
end
|
1405
|
-
def on_failed(&block)
|
1406
|
-
if block_given?
|
1407
|
-
setOnFailed block
|
1408
|
-
else
|
1409
|
-
getOnFailed
|
1410
|
-
end
|
1411
|
-
end
|
1412
|
-
end
|
1413
|
-
class Java::JavafxConcurrent::Service
|
1414
|
-
include JRubyFX::DSL
|
1415
|
-
def on_scheduled(&block)
|
1416
|
-
if block_given?
|
1417
|
-
setOnScheduled block
|
1418
|
-
else
|
1419
|
-
getOnScheduled
|
1420
|
-
end
|
1421
|
-
end
|
1422
|
-
def on_running(&block)
|
1423
|
-
if block_given?
|
1424
|
-
setOnRunning block
|
1425
|
-
else
|
1426
|
-
getOnRunning
|
1427
|
-
end
|
1428
|
-
end
|
1429
|
-
def on_succeeded(&block)
|
1430
|
-
if block_given?
|
1431
|
-
setOnSucceeded block
|
1432
|
-
else
|
1433
|
-
getOnSucceeded
|
1434
|
-
end
|
1435
|
-
end
|
1436
|
-
def on_cancelled(&block)
|
1437
|
-
if block_given?
|
1438
|
-
setOnCancelled block
|
1439
|
-
else
|
1440
|
-
getOnCancelled
|
1441
|
-
end
|
1442
|
-
end
|
1443
|
-
def on_failed(&block)
|
1444
|
-
if block_given?
|
1445
|
-
setOnFailed block
|
1446
|
-
else
|
1447
|
-
getOnFailed
|
1448
|
-
end
|
1449
|
-
end
|
1450
|
-
def on_ready(&block)
|
1451
|
-
if block_given?
|
1452
|
-
setOnReady block
|
1453
|
-
else
|
1454
|
-
getOnReady
|
1455
|
-
end
|
1456
|
-
end
|
1457
|
-
end
|
1458
|
-
class Java::JavafxSceneControl::ChoiceBox
|
1459
|
-
include JRubyFX::DSL
|
1460
|
-
def on_action(&block)
|
1461
|
-
if block_given?
|
1462
|
-
setOnAction block
|
1463
|
-
else
|
1464
|
-
getOnAction
|
1465
|
-
end
|
1466
|
-
end
|
1467
|
-
def on_showing(&block)
|
1468
|
-
if block_given?
|
1469
|
-
setOnShowing block
|
1470
|
-
else
|
1471
|
-
getOnShowing
|
1472
|
-
end
|
1473
|
-
end
|
1474
|
-
def on_shown(&block)
|
1475
|
-
if block_given?
|
1476
|
-
setOnShown block
|
1477
|
-
else
|
1478
|
-
getOnShown
|
1479
|
-
end
|
1480
|
-
end
|
1481
|
-
def on_hiding(&block)
|
1482
|
-
if block_given?
|
1483
|
-
setOnHiding block
|
1484
|
-
else
|
1485
|
-
getOnHiding
|
1486
|
-
end
|
1487
|
-
end
|
1488
|
-
def on_hidden(&block)
|
1489
|
-
if block_given?
|
1490
|
-
setOnHidden block
|
1491
|
-
else
|
1492
|
-
getOnHidden
|
1493
|
-
end
|
1494
|
-
end
|
1495
|
-
end
|
1496
|
-
class Java::JavafxSceneControl::ContextMenu
|
1497
|
-
include JRubyFX::DSL
|
1498
|
-
def on_action(&block)
|
1499
|
-
if block_given?
|
1500
|
-
setOnAction block
|
1501
|
-
else
|
1502
|
-
getOnAction
|
1503
|
-
end
|
1504
|
-
end
|
1505
|
-
def method_missing(name, *args, &block)
|
1506
|
-
super(name, *args, &block).tap do |obj|
|
1507
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::MenuItem) && !name.to_s.end_with?('!')
|
1508
|
-
end
|
1509
|
-
end
|
1510
|
-
def add(value)
|
1511
|
-
get_items() << value
|
1512
|
-
end
|
1513
|
-
end
|
1514
|
-
class Java::JavafxSceneControl::Menu
|
1515
|
-
include JRubyFX::DSL
|
1516
|
-
def on_showing(&block)
|
1517
|
-
if block_given?
|
1518
|
-
setOnShowing block
|
1519
|
-
else
|
1520
|
-
getOnShowing
|
1521
|
-
end
|
1522
|
-
end
|
1523
|
-
def on_shown(&block)
|
1524
|
-
if block_given?
|
1525
|
-
setOnShown block
|
1526
|
-
else
|
1527
|
-
getOnShown
|
1528
|
-
end
|
1529
|
-
end
|
1530
|
-
def on_hiding(&block)
|
1531
|
-
if block_given?
|
1532
|
-
setOnHiding block
|
1533
|
-
else
|
1534
|
-
getOnHiding
|
1535
|
-
end
|
1536
|
-
end
|
1537
|
-
def on_hidden(&block)
|
1538
|
-
if block_given?
|
1539
|
-
setOnHidden block
|
1540
|
-
else
|
1541
|
-
getOnHidden
|
1542
|
-
end
|
1543
|
-
end
|
1544
|
-
def method_missing(name, *args, &block)
|
1545
|
-
super(name, *args, &block).tap do |obj|
|
1546
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::MenuItem) && !name.to_s.end_with?('!')
|
1547
|
-
end
|
1548
|
-
end
|
1549
|
-
def add(value)
|
1550
|
-
get_items() << value
|
1551
|
-
end
|
1552
|
-
end
|
1553
|
-
class Java::JavafxSceneControl::MenuItem
|
1554
|
-
include JRubyFX::DSL
|
1555
|
-
def on_action(&block)
|
1556
|
-
if block_given?
|
1557
|
-
setOnAction block
|
1558
|
-
else
|
1559
|
-
getOnAction
|
1560
|
-
end
|
1561
|
-
end
|
1562
|
-
def on_menu_validation(&block)
|
1563
|
-
if block_given?
|
1564
|
-
setOnMenuValidation block
|
1565
|
-
else
|
1566
|
-
getOnMenuValidation
|
1567
|
-
end
|
1568
|
-
end
|
1569
|
-
end
|
1570
|
-
class Java::JavafxSceneControl::RadioMenuItem
|
1571
|
-
include JRubyFX::DSL
|
1572
|
-
def on_action(&block)
|
1573
|
-
if block_given?
|
1574
|
-
setOnAction block
|
1575
|
-
else
|
1576
|
-
getOnAction
|
1577
|
-
end
|
1578
|
-
end
|
1579
|
-
def on_menu_validation(&block)
|
1580
|
-
if block_given?
|
1581
|
-
setOnMenuValidation block
|
1582
|
-
else
|
1583
|
-
getOnMenuValidation
|
1584
|
-
end
|
1585
|
-
end
|
1586
|
-
end
|
1587
|
-
class Java::JavafxSceneControl::Tab
|
1588
|
-
include JRubyFX::DSL
|
1589
|
-
def on_close_request(&block)
|
1590
|
-
if block_given?
|
1591
|
-
setOnCloseRequest block
|
1592
|
-
else
|
1593
|
-
getOnCloseRequest
|
1594
|
-
end
|
1595
|
-
end
|
1596
|
-
def on_selection_changed(&block)
|
1597
|
-
if block_given?
|
1598
|
-
setOnSelectionChanged block
|
1599
|
-
else
|
1600
|
-
getOnSelectionChanged
|
1601
|
-
end
|
1602
|
-
end
|
1603
|
-
def on_closed(&block)
|
1604
|
-
if block_given?
|
1605
|
-
setOnClosed block
|
1606
|
-
else
|
1607
|
-
getOnClosed
|
1608
|
-
end
|
1609
|
-
end
|
1610
|
-
#TODO: logical_child(content)
|
1611
|
-
end
|
1612
|
-
class Java::JavafxSceneControl::TableView
|
1613
|
-
include JRubyFX::DSL
|
1614
|
-
def on_scroll_to(&block)
|
1615
|
-
if block_given?
|
1616
|
-
setOnScrollTo block
|
1617
|
-
else
|
1618
|
-
getOnScrollTo
|
1619
|
-
end
|
1620
|
-
end
|
1621
|
-
def on_sort(&block)
|
1622
|
-
if block_given?
|
1623
|
-
setOnSort block
|
1624
|
-
else
|
1625
|
-
getOnSort
|
1626
|
-
end
|
1627
|
-
end
|
1628
|
-
def on_scroll_to_column(&block)
|
1629
|
-
if block_given?
|
1630
|
-
setOnScrollToColumn block
|
1631
|
-
else
|
1632
|
-
getOnScrollToColumn
|
1633
|
-
end
|
1634
|
-
end
|
1635
|
-
def method_missing(name, *args, &block)
|
1636
|
-
super(name, *args, &block).tap do |obj|
|
1637
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::TableColumn) && !name.to_s.end_with?('!')
|
1638
|
-
end
|
1639
|
-
end
|
1640
|
-
def add(value)
|
1641
|
-
get_columns() << value
|
1642
|
-
end
|
1643
|
-
end
|
1644
|
-
class Java::JavafxSceneControl::TreeView
|
1645
|
-
include JRubyFX::DSL
|
1646
|
-
def on_edit_start(&block)
|
1647
|
-
if block_given?
|
1648
|
-
setOnEditStart block
|
1649
|
-
else
|
1650
|
-
getOnEditStart
|
1651
|
-
end
|
1652
|
-
end
|
1653
|
-
def on_edit_commit(&block)
|
1654
|
-
if block_given?
|
1655
|
-
setOnEditCommit block
|
1656
|
-
else
|
1657
|
-
getOnEditCommit
|
1658
|
-
end
|
1659
|
-
end
|
1660
|
-
def on_edit_cancel(&block)
|
1661
|
-
if block_given?
|
1662
|
-
setOnEditCancel block
|
1663
|
-
else
|
1664
|
-
getOnEditCancel
|
1665
|
-
end
|
1666
|
-
end
|
1667
|
-
def on_scroll_to(&block)
|
1668
|
-
if block_given?
|
1669
|
-
setOnScrollTo block
|
1670
|
-
else
|
1671
|
-
getOnScrollTo
|
1672
|
-
end
|
1673
|
-
end
|
1674
|
-
end
|
1675
|
-
class Java::JavafxSceneMedia::Media
|
1676
|
-
include JRubyFX::DSL
|
1677
|
-
def on_error(&block)
|
1678
|
-
if block_given?
|
1679
|
-
setOnError block
|
1680
|
-
else
|
1681
|
-
getOnError
|
1682
|
-
end
|
1683
|
-
end
|
1684
|
-
end
|
1685
|
-
class Java::JavafxSceneMedia::MediaPlayer
|
1686
|
-
include JRubyFX::DSL
|
1687
|
-
def on_ready(&block)
|
1688
|
-
if block_given?
|
1689
|
-
setOnReady block
|
1690
|
-
else
|
1691
|
-
getOnReady
|
1692
|
-
end
|
1693
|
-
end
|
1694
|
-
def on_error(&block)
|
1695
|
-
if block_given?
|
1696
|
-
setOnError block
|
1697
|
-
else
|
1698
|
-
getOnError
|
1699
|
-
end
|
1700
|
-
end
|
1701
|
-
def on_marker(&block)
|
1702
|
-
if block_given?
|
1703
|
-
setOnMarker block
|
1704
|
-
else
|
1705
|
-
getOnMarker
|
1706
|
-
end
|
1707
|
-
end
|
1708
|
-
def on_end_of_media(&block)
|
1709
|
-
if block_given?
|
1710
|
-
setOnEndOfMedia block
|
1711
|
-
else
|
1712
|
-
getOnEndOfMedia
|
1713
|
-
end
|
1714
|
-
end
|
1715
|
-
def on_playing(&block)
|
1716
|
-
if block_given?
|
1717
|
-
setOnPlaying block
|
1718
|
-
else
|
1719
|
-
getOnPlaying
|
1720
|
-
end
|
1721
|
-
end
|
1722
|
-
def on_paused(&block)
|
1723
|
-
if block_given?
|
1724
|
-
setOnPaused block
|
1725
|
-
else
|
1726
|
-
getOnPaused
|
1727
|
-
end
|
1728
|
-
end
|
1729
|
-
def on_stopped(&block)
|
1730
|
-
if block_given?
|
1731
|
-
setOnStopped block
|
1732
|
-
else
|
1733
|
-
getOnStopped
|
1734
|
-
end
|
1735
|
-
end
|
1736
|
-
def on_halted(&block)
|
1737
|
-
if block_given?
|
1738
|
-
setOnHalted block
|
1739
|
-
else
|
1740
|
-
getOnHalted
|
1741
|
-
end
|
1742
|
-
end
|
1743
|
-
def on_repeat(&block)
|
1744
|
-
if block_given?
|
1745
|
-
setOnRepeat block
|
1746
|
-
else
|
1747
|
-
getOnRepeat
|
1748
|
-
end
|
1749
|
-
end
|
1750
|
-
def on_stalled(&block)
|
1751
|
-
if block_given?
|
1752
|
-
setOnStalled block
|
1753
|
-
else
|
1754
|
-
getOnStalled
|
1755
|
-
end
|
1756
|
-
end
|
1757
|
-
end
|
1758
|
-
class Java::JavafxSceneMedia::MediaView
|
1759
|
-
include JRubyFX::DSL
|
1760
|
-
def on_error(&block)
|
1761
|
-
if block_given?
|
1762
|
-
setOnError block
|
1763
|
-
else
|
1764
|
-
getOnError
|
1765
|
-
end
|
1766
|
-
end
|
1767
|
-
end
|
1768
|
-
class Java::JavafxStage::Window
|
1769
|
-
include JRubyFX::DSL
|
1770
|
-
def on_close_request(&block)
|
1771
|
-
if block_given?
|
1772
|
-
setOnCloseRequest block
|
1773
|
-
else
|
1774
|
-
getOnCloseRequest
|
1775
|
-
end
|
1776
|
-
end
|
1777
|
-
def on_showing(&block)
|
1778
|
-
if block_given?
|
1779
|
-
setOnShowing block
|
1780
|
-
else
|
1781
|
-
getOnShowing
|
1782
|
-
end
|
1783
|
-
end
|
1784
|
-
def on_shown(&block)
|
1785
|
-
if block_given?
|
1786
|
-
setOnShown block
|
1787
|
-
else
|
1788
|
-
getOnShown
|
1789
|
-
end
|
1790
|
-
end
|
1791
|
-
def on_hiding(&block)
|
1792
|
-
if block_given?
|
1793
|
-
setOnHiding block
|
1794
|
-
else
|
1795
|
-
getOnHiding
|
1796
|
-
end
|
1797
|
-
end
|
1798
|
-
def on_hidden(&block)
|
1799
|
-
if block_given?
|
1800
|
-
setOnHidden block
|
1801
|
-
else
|
1802
|
-
getOnHidden
|
1803
|
-
end
|
1804
|
-
end
|
1805
|
-
end
|
1806
|
-
class Java::JavafxScene::Parent
|
1807
|
-
include JRubyFX::DSL
|
1808
|
-
def method_missing(name, *args, &block)
|
1809
|
-
super(name, *args, &block).tap do |obj|
|
1810
|
-
add(obj) if obj.kind_of?(Java::JavafxScene::Node) && !name.to_s.end_with?('!')
|
1811
|
-
end
|
1812
|
-
end
|
1813
|
-
def add(value)
|
1814
|
-
get_children() << value
|
1815
|
-
end
|
1816
|
-
end
|
1817
|
-
class Java::JavafxSceneControl::TreeItem
|
1818
|
-
include JRubyFX::DSL
|
1819
|
-
def method_missing(name, *args, &block)
|
1820
|
-
super(name, *args, &block).tap do |obj|
|
1821
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::TreeItem) && !name.to_s.end_with?('!')
|
1822
|
-
end
|
1823
|
-
end
|
1824
|
-
def add(value)
|
1825
|
-
get_children() << value
|
1826
|
-
end
|
1827
|
-
end
|
1828
|
-
class Java::JavafxAnimation::ParallelTransition
|
1829
|
-
include JRubyFX::DSL
|
1830
|
-
def method_missing(name, *args, &block)
|
1831
|
-
super(name, *args, &block).tap do |obj|
|
1832
|
-
add(obj) if obj.kind_of?(Java::JavafxAnimation::Animation) && !name.to_s.end_with?('!')
|
1833
|
-
end
|
1834
|
-
end
|
1835
|
-
def add(value)
|
1836
|
-
get_children() << value
|
1837
|
-
end
|
1838
|
-
end
|
1839
|
-
class Java::JavafxSceneControl::MenuBar
|
1840
|
-
include JRubyFX::DSL
|
1841
|
-
def method_missing(name, *args, &block)
|
1842
|
-
super(name, *args, &block).tap do |obj|
|
1843
|
-
add(obj) if obj.kind_of?(Java::JavafxSceneControl::Menu) && !name.to_s.end_with?('!')
|
1844
|
-
end
|
1845
|
-
end
|
1846
|
-
def add(value)
|
1847
|
-
get_menus() << value
|
1848
|
-
end
|
1849
|
-
end
|
1850
|
-
class Java::JavafxAnimation::Timeline
|
1851
|
-
include JRubyFX::DSL
|
1852
|
-
def method_missing(name, *args, &block)
|
1853
|
-
super(name, *args, &block).tap do |obj|
|
1854
|
-
add(obj) if obj.kind_of?(Java::JavafxAnimation::KeyFrame) && !name.to_s.end_with?('!')
|
1855
|
-
end
|
1856
|
-
end
|
1857
|
-
def add(value)
|
1858
|
-
key_frames() << value
|
1859
|
-
end
|
1860
|
-
end
|
1861
|
-
class Java::JavafxSceneControl::TitledPane
|
1862
|
-
include JRubyFX::DSL
|
1863
|
-
#TODO: logical_child(content)
|
1864
|
-
end
|
1865
|
-
class Java::JavafxSceneControl::Accordion
|
1866
|
-
include JRubyFX::DSL
|
1867
|
-
def add(value)
|
1868
|
-
panes() << value
|
1869
|
-
end
|
1870
|
-
#TODO: logical_children(panes)
|
1871
|
-
end
|
1872
|
-
class Java::JavafxSceneShape::Circle
|
1873
|
-
include JRubyFX::DSL
|
1874
|
-
def self.new(*args)
|
1875
|
-
super *JRubyFX::Utils::CommonConverters.convert_args(args, [[], [:none], [:none, :color], [:none, :none, :none], [:none, :none, :none, :color]])
|
1876
|
-
end
|
1877
|
-
end
|
1878
|
-
class Java::JavafxScenePaint::Stop
|
1879
|
-
include JRubyFX::DSL
|
1880
|
-
def self.new(*args)
|
1881
|
-
super *JRubyFX::Utils::CommonConverters.convert_args(args, [[:none, :color]])
|
1882
|
-
end
|
1883
|
-
end
|