jrubyfx-master 1.1.1.brakemanpro4-java → 1.1.1.brakemanpro5-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c907949344192111b20cbe818d3ae58dd2dd31e3
4
- data.tar.gz: c1f5a5bcc9be456db41290a8252452d51c1ce9d1
3
+ metadata.gz: 0deb425d85b71adb1d439170449f4d1dddc15a56
4
+ data.tar.gz: 4257df580966faed9e69a1c358824a05b681950c
5
5
  SHA512:
6
- metadata.gz: 14e4bbe373c3ed67c4bad9ee7c3cd123c0e5dd83a39a1972b8af08f3f336d0e869196320363cee5ed4845db8eaf6843ac654f81a031c74a4fafb07c775d84746
7
- data.tar.gz: 40b729ff57ae9e9966caa8361906ca47a02f21c173e62e913b1be9a98471d48541f839c1c2604bb3d6bd9fb110f42e2a157e8413e8804bed8d7edde66262606f
6
+ metadata.gz: 594e9dc0eca84784201629b21e12adfaaf2474b7b26cf1b3f15868b0b1566cda65193238c8b8b79b0aef46193730c65d0c9de2313c3d7611af9944fee9a0f4db
7
+ data.tar.gz: 2a9c8c7fa37ea9d106509344e82b0f234b7a4be12d3f24f23ed52fa4527811666e1e10172e2ad75bf5fd63f6f59169584d07ead1141464c5ddb814dffd9e1316
@@ -27,7 +27,8 @@ class JRubyFX::Application < Java.javafx.application.Application
27
27
  # and, if jruby changes, false negatives. If you are using this, it might be a
28
28
  # very bad idea... (though it is handy)
29
29
  def self.in_jar?()
30
- $LOAD_PATH.inject(false) { |res,i| res || i.include?(".jar!/META-INF/jruby.home/lib/ruby/")}
30
+ puts "in jar? #{ENV["IN_JAR"]}"
31
+ ENV["IN_JAR"]
31
32
  end
32
33
 
33
34
  ##
@@ -6,6 +6,9 @@ class Java::JavafxAnimation::PathTransition
6
6
  end
7
7
  class Java::JavafxScene::Node
8
8
  include JRubyFX::DSL
9
+ def node_orientation=(rbenum)
10
+ java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
11
+ end
9
12
  def depth_test=(rbenum)
10
13
  java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
11
14
  end
@@ -21,9 +24,6 @@ class Java::JavafxScene::Node
21
24
  def notify_accessible_attribute_changed=(rbenum)
22
25
  java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
23
26
  end
24
- def node_orientation=(rbenum)
25
- java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
26
- end
27
27
  def on_context_menu_requested(&block)
28
28
  if block_given?
29
29
  setOnContextMenuRequested block
@@ -783,12 +783,12 @@ class Java::JavafxSceneControl::TableColumn
783
783
  end
784
784
  class Java::JavafxSceneControl::TabPane
785
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
786
  def side=(rbenum)
790
787
  java_send "setSide", [Java::JavafxGeometry::Side], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Side)
791
788
  end
789
+ def tab_closing_policy=(rbenum)
790
+ java_send "setTabClosingPolicy", [Java::JavafxSceneControl::TabPane::TabClosingPolicy], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::TabPane::TabClosingPolicy)
791
+ end
792
792
  #TODO: logical_children(tabs)
793
793
  end
794
794
  class Java::JavafxSceneControl::TextField
@@ -818,6 +818,9 @@ class Java::JavafxSceneControl::ToggleButton
818
818
  def alignment=(rbenum)
819
819
  java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
820
820
  end
821
+ def node_orientation=(rbenum)
822
+ java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
823
+ end
821
824
  def depth_test=(rbenum)
822
825
  java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
823
826
  end
@@ -833,9 +836,6 @@ class Java::JavafxSceneControl::ToggleButton
833
836
  def notify_accessible_attribute_changed=(rbenum)
834
837
  java_send "notifyAccessibleAttributeChanged", [Java::JavafxScene::AccessibleAttribute], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::AccessibleAttribute)
835
838
  end
836
- def node_orientation=(rbenum)
837
- java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
838
- end
839
839
  def text_fill=(value)
840
840
  setTextFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
841
841
  end
@@ -1188,12 +1188,12 @@ class Java::JavafxSceneLayout::FlowPane
1188
1188
  def row_valignment=(rbenum)
1189
1189
  java_send "setRowValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
1190
1190
  end
1191
- def orientation=(rbenum)
1192
- java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
1193
- end
1194
1191
  def alignment=(rbenum)
1195
1192
  java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1196
1193
  end
1194
+ def orientation=(rbenum)
1195
+ java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
1196
+ end
1197
1197
  end
1198
1198
  class Java::JavafxSceneLayout::GridPane
1199
1199
  include JRubyFX::DSL
@@ -1209,12 +1209,12 @@ class Java::JavafxSceneLayout::HBox
1209
1209
  end
1210
1210
  class Java::JavafxSceneLayout::RowConstraints
1211
1211
  include JRubyFX::DSL
1212
- def vgrow=(rbenum)
1213
- java_send "setVgrow", [Java::JavafxSceneLayout::Priority], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneLayout::Priority)
1214
- end
1215
1212
  def valignment=(rbenum)
1216
1213
  java_send "setValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
1217
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
1218
  end
1219
1219
  class Java::JavafxSceneLayout::StackPane
1220
1220
  include JRubyFX::DSL
@@ -1227,12 +1227,12 @@ class Java::JavafxSceneLayout::TilePane
1227
1227
  def tile_alignment=(rbenum)
1228
1228
  java_send "setTileAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1229
1229
  end
1230
- def orientation=(rbenum)
1231
- java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
1232
- end
1233
1230
  def alignment=(rbenum)
1234
1231
  java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1235
1232
  end
1233
+ def orientation=(rbenum)
1234
+ java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
1235
+ end
1236
1236
  end
1237
1237
  class Java::JavafxSceneLayout::VBox
1238
1238
  include JRubyFX::DSL
@@ -1269,12 +1269,12 @@ class Java::JavafxSceneShape::Shape
1269
1269
  def stroke_line_cap=(rbenum)
1270
1270
  java_send "setStrokeLineCap", [Java::JavafxSceneShape::StrokeLineCap], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneShape::StrokeLineCap)
1271
1271
  end
1272
- def stroke=(value)
1273
- setStroke(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
1274
- end
1275
1272
  def fill=(value)
1276
1273
  setFill(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
1277
1274
  end
1275
+ def stroke=(value)
1276
+ setStroke(JRubyFX::Utils::CommonConverters::CONVERTERS[:color].call(value))
1277
+ end
1278
1278
  def fill(*r)
1279
1279
  if r.length > 0
1280
1280
  self.fill = r[0]
@@ -1291,15 +1291,15 @@ class Java::JavafxSceneShape::SVGPath
1291
1291
  end
1292
1292
  class Java::JavafxSceneText::Text
1293
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
1294
1297
  def text_origin=(rbenum)
1295
1298
  java_send "setTextOrigin", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
1296
1299
  end
1297
1300
  def bounds_type=(rbenum)
1298
1301
  java_send "setBoundsType", [Java::JavafxSceneText::TextBoundsType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextBoundsType)
1299
1302
  end
1300
- def text_alignment=(rbenum)
1301
- java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
1302
- end
1303
1303
  def font_smoothing_type=(rbenum)
1304
1304
  java_send "setFontSmoothingType", [Java::JavafxSceneText::FontSmoothingType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::FontSmoothingType)
1305
1305
  end
@@ -1552,6 +1552,13 @@ class Java::JavafxSceneControl::Menu
1552
1552
  end
1553
1553
  class Java::JavafxSceneControl::MenuItem
1554
1554
  include JRubyFX::DSL
1555
+ def on_action(&block)
1556
+ if block_given?
1557
+ setOnAction block
1558
+ else
1559
+ getOnAction
1560
+ end
1561
+ end
1555
1562
  def on_menu_validation(&block)
1556
1563
  if block_given?
1557
1564
  setOnMenuValidation block
@@ -1559,6 +1566,9 @@ class Java::JavafxSceneControl::MenuItem
1559
1566
  getOnMenuValidation
1560
1567
  end
1561
1568
  end
1569
+ end
1570
+ class Java::JavafxSceneControl::RadioMenuItem
1571
+ include JRubyFX::DSL
1562
1572
  def on_action(&block)
1563
1573
  if block_given?
1564
1574
  setOnAction block
@@ -1566,9 +1576,6 @@ class Java::JavafxSceneControl::MenuItem
1566
1576
  getOnAction
1567
1577
  end
1568
1578
  end
1569
- end
1570
- class Java::JavafxSceneControl::RadioMenuItem
1571
- include JRubyFX::DSL
1572
1579
  def on_menu_validation(&block)
1573
1580
  if block_given?
1574
1581
  setOnMenuValidation block
@@ -1576,16 +1583,16 @@ class Java::JavafxSceneControl::RadioMenuItem
1576
1583
  getOnMenuValidation
1577
1584
  end
1578
1585
  end
1579
- def on_action(&block)
1586
+ end
1587
+ class Java::JavafxSceneControl::Tab
1588
+ include JRubyFX::DSL
1589
+ def on_close_request(&block)
1580
1590
  if block_given?
1581
- setOnAction block
1591
+ setOnCloseRequest block
1582
1592
  else
1583
- getOnAction
1593
+ getOnCloseRequest
1584
1594
  end
1585
1595
  end
1586
- end
1587
- class Java::JavafxSceneControl::Tab
1588
- include JRubyFX::DSL
1589
1596
  def on_selection_changed(&block)
1590
1597
  if block_given?
1591
1598
  setOnSelectionChanged block
@@ -1600,17 +1607,17 @@ class Java::JavafxSceneControl::Tab
1600
1607
  getOnClosed
1601
1608
  end
1602
1609
  end
1603
- def on_close_request(&block)
1604
- if block_given?
1605
- setOnCloseRequest block
1606
- else
1607
- getOnCloseRequest
1608
- end
1609
- end
1610
1610
  #TODO: logical_child(content)
1611
1611
  end
1612
1612
  class Java::JavafxSceneControl::TableView
1613
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
1614
1621
  def on_sort(&block)
1615
1622
  if block_given?
1616
1623
  setOnSort block
@@ -1625,13 +1632,6 @@ class Java::JavafxSceneControl::TableView
1625
1632
  getOnScrollToColumn
1626
1633
  end
1627
1634
  end
1628
- def on_scroll_to(&block)
1629
- if block_given?
1630
- setOnScrollTo block
1631
- else
1632
- getOnScrollTo
1633
- end
1634
- end
1635
1635
  def method_missing(name, *args, &block)
1636
1636
  super(name, *args, &block).tap do |obj|
1637
1637
  add(obj) if obj.kind_of?(Java::JavafxSceneControl::TableColumn) && !name.to_s.end_with?('!')
@@ -1,4 +1,4 @@
1
1
  module JRubyFX
2
2
  # Current gem version. Used in rake task.
3
- VERSION='1.1.1.brakemanpro4'
3
+ VERSION='1.1.1.brakemanpro5'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrubyfx-master
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.brakemanpro4
4
+ version: 1.1.1.brakemanpro5
5
5
  platform: java
6
6
  authors:
7
7
  - Patrick Plenefisch