jrubyfx-master 1.1.1.brakemanpro1-java → 1.1.1.brakemanpro3-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: 612242e98c185c05c764773b0a8fb956ad7a5567
4
- data.tar.gz: c0d4f6d4070b8947835d6c76471c97fa4c07c32a
3
+ metadata.gz: 065c5d25414e32b1aed20258363516ebaaee5ecf
4
+ data.tar.gz: 0dfdddc93b4b886d0d4df8da3c1249f22c7417d7
5
5
  SHA512:
6
- metadata.gz: f81a076b5b6ce292e8a0bf6d3bdaf473e2279f8ffb4f10c449dd2f42ec04896078ef2bf3c8ef80cd65ae13812ac3f9627be2d32bd2ed9719bbf371cbcf6e2c07
7
- data.tar.gz: 54567ba7d42a0381a9fc3b552d72d503bc787e899b04e24159a1cdb095075c3f14ef91a9212ab9cc81f076ab3b2a7b4fe1c84058adad273114611108a42fdbcf
6
+ metadata.gz: 0e456d2994ea704d2258a3269feb9f0c21afe4ad8feefc35a7024fe37161da1aa550fbf3d7a33a4f9663ea7f4d47238549c9c3ea55e853d6b600a4ae833ca356
7
+ data.tar.gz: 4b1a9878c0c1cad9928221c874eb654b597ddef2874bd3e7f5bc7dedd059fbd0083e446833d43ed1eeb0687e4e032d3833bbf5c541afd9670d27645323cccf50
@@ -6,12 +6,12 @@ class Java::JavafxAnimation::PathTransition
6
6
  end
7
7
  class Java::JavafxScene::Node
8
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
9
  def node_orientation=(rbenum)
13
10
  java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
14
11
  end
12
+ def depth_test=(rbenum)
13
+ java_send "setDepthTest", [Java::JavafxScene::DepthTest], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxScene::DepthTest)
14
+ end
15
15
  def blend_mode=(rbenum)
16
16
  java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
17
17
  end
@@ -298,7 +298,7 @@ class Java::JavafxScene::Node
298
298
  end
299
299
  end
300
300
  def rotate(*args)
301
- transforms << build(Rotate, *args)
301
+ transforms << build(Java::JavafxSceneTransform::Rotate, *args)
302
302
  end
303
303
  def effect(*r)
304
304
  if r.length > 0
@@ -678,18 +678,18 @@ class Java::JavafxSceneControl::PopupControl
678
678
  getOnAutoHide
679
679
  end
680
680
  end
681
- def on_hidden(&block)
681
+ def on_close_request(&block)
682
682
  if block_given?
683
- setOnHidden block
683
+ setOnCloseRequest block
684
684
  else
685
- getOnHidden
685
+ getOnCloseRequest
686
686
  end
687
687
  end
688
- def on_hiding(&block)
688
+ def on_showing(&block)
689
689
  if block_given?
690
- setOnHiding block
690
+ setOnShowing block
691
691
  else
692
- getOnHiding
692
+ getOnShowing
693
693
  end
694
694
  end
695
695
  def on_shown(&block)
@@ -699,18 +699,18 @@ class Java::JavafxSceneControl::PopupControl
699
699
  getOnShown
700
700
  end
701
701
  end
702
- def on_showing(&block)
702
+ def on_hiding(&block)
703
703
  if block_given?
704
- setOnShowing block
704
+ setOnHiding block
705
705
  else
706
- getOnShowing
706
+ getOnHiding
707
707
  end
708
708
  end
709
- def on_close_request(&block)
709
+ def on_hidden(&block)
710
710
  if block_given?
711
- setOnCloseRequest block
711
+ setOnHidden block
712
712
  else
713
- getOnCloseRequest
713
+ getOnHidden
714
714
  end
715
715
  end
716
716
  end
@@ -732,15 +732,15 @@ class Java::JavafxSceneControl::ScrollPane
732
732
  end
733
733
  class Java::JavafxSceneControl::Separator
734
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
735
738
  def halignment=(rbenum)
736
739
  java_send "setHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
737
740
  end
738
741
  def valignment=(rbenum)
739
742
  java_send "setValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
740
743
  end
741
- def orientation=(rbenum)
742
- java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
743
- end
744
744
  end
745
745
  class Java::JavafxSceneControl::Slider
746
746
  include JRubyFX::DSL
@@ -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
@@ -806,6 +806,9 @@ class Java::JavafxSceneControl::TextField
806
806
  end
807
807
  class Java::JavafxSceneControl::ToggleButton
808
808
  include JRubyFX::DSL
809
+ def alignment=(rbenum)
810
+ java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
811
+ end
809
812
  def text_alignment=(rbenum)
810
813
  java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
811
814
  end
@@ -815,15 +818,12 @@ class Java::JavafxSceneControl::ToggleButton
815
818
  def content_display=(rbenum)
816
819
  java_send "setContentDisplay", [Java::JavafxSceneControl::ContentDisplay], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneControl::ContentDisplay)
817
820
  end
818
- def alignment=(rbenum)
819
- java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
821
+ def node_orientation=(rbenum)
822
+ java_send "setNodeOrientation", [Java::JavafxGeometry::NodeOrientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::NodeOrientation)
820
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
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
827
  def blend_mode=(rbenum)
828
828
  java_send "setBlendMode", [Java::JavafxSceneEffect::BlendMode], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneEffect::BlendMode)
829
829
  end
@@ -1173,21 +1173,21 @@ class Java::JavafxSceneEffect::Shadow
1173
1173
  end
1174
1174
  class Java::JavafxSceneLayout::ColumnConstraints
1175
1175
  include JRubyFX::DSL
1176
- def halignment=(rbenum)
1177
- java_send "setHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
1178
- end
1179
1176
  def hgrow=(rbenum)
1180
1177
  java_send "setHgrow", [Java::JavafxSceneLayout::Priority], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneLayout::Priority)
1181
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
1182
  end
1183
1183
  class Java::JavafxSceneLayout::FlowPane
1184
1184
  include JRubyFX::DSL
1185
- def alignment=(rbenum)
1186
- java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1187
- end
1188
1185
  def orientation=(rbenum)
1189
1186
  java_send "setOrientation", [Java::JavafxGeometry::Orientation], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Orientation)
1190
1187
  end
1188
+ def alignment=(rbenum)
1189
+ java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1190
+ end
1191
1191
  def column_halignment=(rbenum)
1192
1192
  java_send "setColumnHalignment", [Java::JavafxGeometry::HPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::HPos)
1193
1193
  end
@@ -1209,12 +1209,12 @@ class Java::JavafxSceneLayout::HBox
1209
1209
  end
1210
1210
  class Java::JavafxSceneLayout::RowConstraints
1211
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
1212
  def vgrow=(rbenum)
1216
1213
  java_send "setVgrow", [Java::JavafxSceneLayout::Priority], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneLayout::Priority)
1217
1214
  end
1215
+ def valignment=(rbenum)
1216
+ java_send "setValignment", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
1217
+ end
1218
1218
  end
1219
1219
  class Java::JavafxSceneLayout::StackPane
1220
1220
  include JRubyFX::DSL
@@ -1224,15 +1224,15 @@ class Java::JavafxSceneLayout::StackPane
1224
1224
  end
1225
1225
  class Java::JavafxSceneLayout::TilePane
1226
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
1227
1230
  def alignment=(rbenum)
1228
1231
  java_send "setAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1229
1232
  end
1230
1233
  def tile_alignment=(rbenum)
1231
1234
  java_send "setTileAlignment", [Java::JavafxGeometry::Pos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::Pos)
1232
1235
  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
@@ -1255,7 +1255,7 @@ class Java::JavafxSceneShape::Path
1255
1255
  elements() << value
1256
1256
  end
1257
1257
  def rotate(*args)
1258
- transforms << build(Rotate, *args)
1258
+ transforms << build(Java::JavafxSceneTransform::Rotate, *args)
1259
1259
  end
1260
1260
  end
1261
1261
  class Java::JavafxSceneShape::Shape
@@ -1291,18 +1291,18 @@ class Java::JavafxSceneShape::SVGPath
1291
1291
  end
1292
1292
  class Java::JavafxSceneText::Text
1293
1293
  include JRubyFX::DSL
1294
+ def font_smoothing_type=(rbenum)
1295
+ java_send "setFontSmoothingType", [Java::JavafxSceneText::FontSmoothingType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::FontSmoothingType)
1296
+ end
1297
+ def text_alignment=(rbenum)
1298
+ java_send "setTextAlignment", [Java::JavafxSceneText::TextAlignment], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextAlignment)
1299
+ end
1294
1300
  def text_origin=(rbenum)
1295
1301
  java_send "setTextOrigin", [Java::JavafxGeometry::VPos], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxGeometry::VPos)
1296
1302
  end
1297
1303
  def bounds_type=(rbenum)
1298
1304
  java_send "setBoundsType", [Java::JavafxSceneText::TextBoundsType], JRubyFX::Utils::CommonConverters.parse_ruby_symbols(rbenum, Java::JavafxSceneText::TextBoundsType)
1299
1305
  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
- 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
1306
  end
1307
1307
  class Java::JavafxSceneWeb::WebView
1308
1308
  include JRubyFX::DSL
@@ -1464,32 +1464,32 @@ class Java::JavafxSceneControl::ChoiceBox
1464
1464
  getOnAction
1465
1465
  end
1466
1466
  end
1467
- def on_hidden(&block)
1467
+ def on_showing(&block)
1468
1468
  if block_given?
1469
- setOnHidden block
1469
+ setOnShowing block
1470
1470
  else
1471
- getOnHidden
1471
+ getOnShowing
1472
1472
  end
1473
1473
  end
1474
- def on_hiding(&block)
1474
+ def on_shown(&block)
1475
1475
  if block_given?
1476
- setOnHiding block
1476
+ setOnShown block
1477
1477
  else
1478
- getOnHiding
1478
+ getOnShown
1479
1479
  end
1480
1480
  end
1481
- def on_shown(&block)
1481
+ def on_hiding(&block)
1482
1482
  if block_given?
1483
- setOnShown block
1483
+ setOnHiding block
1484
1484
  else
1485
- getOnShown
1485
+ getOnHiding
1486
1486
  end
1487
1487
  end
1488
- def on_showing(&block)
1488
+ def on_hidden(&block)
1489
1489
  if block_given?
1490
- setOnShowing block
1490
+ setOnHidden block
1491
1491
  else
1492
- getOnShowing
1492
+ getOnHidden
1493
1493
  end
1494
1494
  end
1495
1495
  end
@@ -1513,32 +1513,32 @@ class Java::JavafxSceneControl::ContextMenu
1513
1513
  end
1514
1514
  class Java::JavafxSceneControl::Menu
1515
1515
  include JRubyFX::DSL
1516
- def on_hidden(&block)
1516
+ def on_showing(&block)
1517
1517
  if block_given?
1518
- setOnHidden block
1518
+ setOnShowing block
1519
1519
  else
1520
- getOnHidden
1520
+ getOnShowing
1521
1521
  end
1522
1522
  end
1523
- def on_hiding(&block)
1523
+ def on_shown(&block)
1524
1524
  if block_given?
1525
- setOnHiding block
1525
+ setOnShown block
1526
1526
  else
1527
- getOnHiding
1527
+ getOnShown
1528
1528
  end
1529
1529
  end
1530
- def on_shown(&block)
1530
+ def on_hiding(&block)
1531
1531
  if block_given?
1532
- setOnShown block
1532
+ setOnHiding block
1533
1533
  else
1534
- getOnShown
1534
+ getOnHiding
1535
1535
  end
1536
1536
  end
1537
- def on_showing(&block)
1537
+ def on_hidden(&block)
1538
1538
  if block_given?
1539
- setOnShowing block
1539
+ setOnHidden block
1540
1540
  else
1541
- getOnShowing
1541
+ getOnHidden
1542
1542
  end
1543
1543
  end
1544
1544
  def method_missing(name, *args, &block)
@@ -1586,13 +1586,6 @@ class Java::JavafxSceneControl::RadioMenuItem
1586
1586
  end
1587
1587
  class Java::JavafxSceneControl::Tab
1588
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
1589
  def on_selection_changed(&block)
1597
1590
  if block_given?
1598
1591
  setOnSelectionChanged block
@@ -1607,17 +1600,17 @@ class Java::JavafxSceneControl::Tab
1607
1600
  getOnClosed
1608
1601
  end
1609
1602
  end
1610
- #TODO: logical_child(content)
1611
- end
1612
- class Java::JavafxSceneControl::TableView
1613
- include JRubyFX::DSL
1614
- def on_scroll_to(&block)
1603
+ def on_close_request(&block)
1615
1604
  if block_given?
1616
- setOnScrollTo block
1605
+ setOnCloseRequest block
1617
1606
  else
1618
- getOnScrollTo
1607
+ getOnCloseRequest
1619
1608
  end
1620
1609
  end
1610
+ #TODO: logical_child(content)
1611
+ end
1612
+ class Java::JavafxSceneControl::TableView
1613
+ include JRubyFX::DSL
1621
1614
  def on_sort(&block)
1622
1615
  if block_given?
1623
1616
  setOnSort block
@@ -1632,6 +1625,13 @@ class Java::JavafxSceneControl::TableView
1632
1625
  getOnScrollToColumn
1633
1626
  end
1634
1627
  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?('!')
@@ -1691,13 +1691,6 @@ class Java::JavafxSceneMedia::MediaPlayer
1691
1691
  getOnReady
1692
1692
  end
1693
1693
  end
1694
- def on_error(&block)
1695
- if block_given?
1696
- setOnError block
1697
- else
1698
- getOnError
1699
- end
1700
- end
1701
1694
  def on_marker(&block)
1702
1695
  if block_given?
1703
1696
  setOnMarker block
@@ -1754,6 +1747,13 @@ class Java::JavafxSceneMedia::MediaPlayer
1754
1747
  getOnStalled
1755
1748
  end
1756
1749
  end
1750
+ def on_error(&block)
1751
+ if block_given?
1752
+ setOnError block
1753
+ else
1754
+ getOnError
1755
+ end
1756
+ end
1757
1757
  end
1758
1758
  class Java::JavafxSceneMedia::MediaView
1759
1759
  include JRubyFX::DSL
@@ -1767,18 +1767,18 @@ class Java::JavafxSceneMedia::MediaView
1767
1767
  end
1768
1768
  class Java::JavafxStage::Window
1769
1769
  include JRubyFX::DSL
1770
- def on_hidden(&block)
1770
+ def on_close_request(&block)
1771
1771
  if block_given?
1772
- setOnHidden block
1772
+ setOnCloseRequest block
1773
1773
  else
1774
- getOnHidden
1774
+ getOnCloseRequest
1775
1775
  end
1776
1776
  end
1777
- def on_hiding(&block)
1777
+ def on_showing(&block)
1778
1778
  if block_given?
1779
- setOnHiding block
1779
+ setOnShowing block
1780
1780
  else
1781
- getOnHiding
1781
+ getOnShowing
1782
1782
  end
1783
1783
  end
1784
1784
  def on_shown(&block)
@@ -1788,18 +1788,18 @@ class Java::JavafxStage::Window
1788
1788
  getOnShown
1789
1789
  end
1790
1790
  end
1791
- def on_showing(&block)
1791
+ def on_hiding(&block)
1792
1792
  if block_given?
1793
- setOnShowing block
1793
+ setOnHiding block
1794
1794
  else
1795
- getOnShowing
1795
+ getOnHiding
1796
1796
  end
1797
1797
  end
1798
- def on_close_request(&block)
1798
+ def on_hidden(&block)
1799
1799
  if block_given?
1800
- setOnCloseRequest block
1800
+ setOnHidden block
1801
1801
  else
1802
- getOnCloseRequest
1802
+ getOnHidden
1803
1803
  end
1804
1804
  end
1805
1805
  end
@@ -72,7 +72,7 @@ class Java::javafx::stage::Stage
72
72
  #
73
73
  def layout_scene(*args, &code)
74
74
  root = code.arity == 1 ? code[node] : instance_eval(&code)
75
- build(Scene, root, *args).tap { |scene| set_scene scene }
75
+ build(Java::JavafxScene::Scene, root, *args).tap { |scene| set_scene scene }
76
76
  end
77
77
 
78
78
  def fxml(source, options={})
data/lib/jrubyfx/dsl.rb CHANGED
@@ -48,7 +48,7 @@ module JRubyFX
48
48
  # of built-in components.
49
49
  #
50
50
  def register_type(type=self, name=nil)
51
- name = type.name.snake_case unless name
51
+ name = type.name.snake_case(true) unless name
52
52
  JRubyFX::DSL::NAME_TO_CLASSES[name.to_s] = type
53
53
  end
54
54
  module_function :register_type
@@ -196,7 +196,7 @@ module JRubyFX
196
196
  },
197
197
  rotate: ->(on){
198
198
  " def rotate(*args)
199
- transforms << build(Rotate, *args)
199
+ transforms << build(#{JRubyFX::DSL::NAME_TO_CLASS_NAME['rotate']}, *args)
200
200
  end\n"
201
201
  },
202
202
  method_missing: ->(on, type) {
@@ -312,8 +312,8 @@ ENDNAIVE
312
312
  # this file, but not inside this file, or it requires itself twice.
313
313
  def self.load_dsl
314
314
  unless File.size? "#{File.dirname(__FILE__)}/core_ext/precompiled.rb"
315
- puts "Please run `rake reflect` to generate the converters"
316
- exit -1
315
+ puts "Please run `rake reflect` to generate the converters: #{File.dirname(__FILE__)}/core_ext/precompiled.rb"
316
+ # exit -1
317
317
  end
318
318
  rt = "#{File.dirname(__FILE__)}/core_ext".sub /\Ajar:/, ""
319
319
  Dir.glob("#{rt}/*.rb") do |file|
data/lib/jrubyfx/utils.rb CHANGED
@@ -40,14 +40,24 @@ end
40
40
  # Standard ruby String class extensions
41
41
  class String
42
42
  # call-seq:
43
- # snake_case() => string
43
+ # snake_case(ignore_prefix_namespace=false) => string
44
44
  #
45
45
  # Converts a CamelCaseString to a snake_case_string
46
46
  #
47
47
  # "JavaFX".snake_case #=> "java_fx"
48
48
  #
49
- def snake_case
50
- self.gsub(/::/, '/').
49
+ # If ignore_prefix_namespace is specified it will strip
50
+ # any preceding modules/classes off front of string before
51
+ # snake casing:
52
+ # Foo::BigBar #=> "big_bar"
53
+ #
54
+ # By default it will separate modules with a "/":
55
+ # Foo::BigBar #=> "foo/big_bar"
56
+ #
57
+ def snake_case(ignore_prefix_namespace=false)
58
+ base = ignore_prefix_namespace ?
59
+ self.gsub(/.*::/, '') : self.gsub(/::/, '/')
60
+ base.
51
61
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
52
62
  gsub(/([a-z\d])([A-Z])/,'\1_\2').
53
63
  tr("-", "_").
@@ -1,4 +1,4 @@
1
1
  module JRubyFX
2
2
  # Current gem version. Used in rake task.
3
- VERSION='1.1.1.brakemanpro1'
3
+ VERSION='1.1.1.brakemanpro3'
4
4
  end
data/lib/jrubyfx.rb CHANGED
@@ -25,11 +25,10 @@ end
25
25
 
26
26
  require 'java' # for java_import
27
27
  require 'jruby/core_ext' # for the become_java!
28
+ f = "#{File.dirname(__FILE__)}/jrubyfx/imports.rb"
29
+
30
+ puts "looking for #{f}:#{File.size?(f)}"
28
31
 
29
- unless File.size? "#{File.dirname(__FILE__)}/jrubyfx/imports.rb"
30
- puts "Please run `rake reflect` to generate the imports"
31
- exit -1
32
- end
33
32
  # JRubyFX includes
34
33
  require_relative 'jrubyfx/imports'
35
34
  require_relative 'jrubyfx/module'
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.brakemanpro1
4
+ version: 1.1.1.brakemanpro3
5
5
  platform: java
6
6
  authors:
7
7
  - Patrick Plenefisch
@@ -12,12 +12,12 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-10-05 00:00:00.000000000 Z
15
+ date: 2016-08-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  name: rake
@@ -25,13 +25,13 @@ dependencies:
25
25
  type: :development
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - '>='
28
+ - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  name: rspec
@@ -39,7 +39,7 @@ dependencies:
39
39
  type: :development
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '>='
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  - !ruby/object:Gem::Dependency
@@ -70,20 +70,15 @@ executables:
70
70
  extensions: []
71
71
  extra_rdoc_files: []
72
72
  files:
73
+ - LICENSE
74
+ - README.md
75
+ - bin/jrubyfx-compile
76
+ - bin/jrubyfx-generator
77
+ - bin/jrubyfx-jarify
73
78
  - lib/jrubyfx.rb
74
- - lib/jrubyfx_tasks.rb
75
79
  - lib/jrubyfx/application.rb
76
80
  - lib/jrubyfx/compiler_app.rb
77
81
  - 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
82
  - lib/jrubyfx/core_ext/border_pane.rb
88
83
  - lib/jrubyfx/core_ext/column_constraints.rb
89
84
  - lib/jrubyfx/core_ext/drag_event.rb
@@ -109,15 +104,20 @@ files:
109
104
  - lib/jrubyfx/core_ext/transition.rb
110
105
  - lib/jrubyfx/core_ext/tree_view.rb
111
106
  - lib/jrubyfx/core_ext/xy_chart.rb
107
+ - lib/jrubyfx/dsl.rb
108
+ - lib/jrubyfx/dsl_control.rb
109
+ - lib/jrubyfx/dsl_map.rb
110
+ - lib/jrubyfx/imports.rb
111
+ - lib/jrubyfx/java_fx_impl.rb
112
+ - lib/jrubyfx/module.rb
113
+ - lib/jrubyfx/part_imports.rb
114
+ - lib/jrubyfx/utils.rb
112
115
  - lib/jrubyfx/utils/__ignore_java_stupid_rdoc.rb
113
116
  - lib/jrubyfx/utils/common_converters.rb
114
117
  - lib/jrubyfx/utils/common_utils.rb
115
118
  - lib/jrubyfx/utils/string_utils.rb
116
- - LICENSE
117
- - README.md
118
- - bin/jrubyfx-generator
119
- - bin/jrubyfx-jarify
120
- - bin/jrubyfx-compile
119
+ - lib/jrubyfx/version.rb
120
+ - lib/jrubyfx_tasks.rb
121
121
  homepage: https://github.com/jruby/jrubyfx
122
122
  licenses:
123
123
  - Apache-2.0
@@ -128,17 +128,17 @@ require_paths:
128
128
  - lib
129
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>'
136
+ - - ">"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.3.1
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.1.9
141
+ rubygems_version: 2.6.6
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: JavaFX for JRuby with FXML