pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
ankitr has joined #jruby
ankitr is now known as atm0sphere
thedarkone2 has quit [Quit: thedarkone2]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #jruby
knu_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
cFire has quit [Quit: brb]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 256 seconds]
atm0sphere has quit [Quit: Leaving]
ankitr has joined #jruby
ankitr has quit [Ping timeout: 240 seconds]
ankitr has joined #jruby
knu has joined #jruby
pawnbox has joined #jruby
ankitr has quit [Ping timeout: 260 seconds]
ankitr has joined #jruby
shellac has joined #jruby
ankitr has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
nowhereFast has joined #jruby
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
<nowhereFast>
Hi, I'm trying JRubyFX out, creating a custom control as: class MainMenuItem < TreeItem works fine until I try bind to what is selected on the TreeView: Bindings.select_string(menu.get_selection_model.selected_item_property, "x")
pawnbox has joined #jruby
<nowhereFast>
this seems to go directly to the control's parent TreeItem and so does not let me access any property attributes defined at MainMenuItem level (x in this case)
<nowhereFast>
is there a way of getting it to return the MainMenuItem instead of the TreeItem?
pawnbox_ has joined #jruby
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox_ has quit [Remote host closed the connection]
bbrowning_away is now known as bbrowning
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
<headius>
nowhereFast: enebo should be online soon and he'd be a good one to ask
<nowhereFast>
thanks headius, will do
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 268 seconds]
tcrawley-away is now known as tcrawley
pawnbox has joined #jruby
pawnbox has quit [Remote host closed the connection]
<GitHub164>
jruby/master dcd060d Thomas E. Enebo: Going to put out 9.1.9.0 before 9.2.0.0 after all to give 2.4 more time to settle into the Ruby community.
<nowhereFast>
^this is what I'm trying to get working, but in JRubyFX it looks like binding goes straight to the proxy object which does not have the property attributes.. java.lang.NoSuchMethodException: org.jruby.proxy.javafx.scene.control.TreeItem$Proxy4.getPlats()
<nowhereFast>
if anybody has a min to point out what that gist should look like in JRubyFX it'd be appreciated
jimbaker has quit [Quit: Coyote finally caught me]
jimbaker has joined #jruby
jimbaker is now known as Guest67010
Guest67010 is now known as jimbaker
jimbaker has joined #jruby
jimbaker has quit [Changing host]
alex0ptr has joined #jruby
alex0ptr has quit [Ping timeout: 240 seconds]
enebo has joined #jruby
<enebo>
bah it did not reconnect me
<enebo>
nowhereFast: do you have the jrubyfx code you were using?
<nowhereFast>
give me a min to put together and post it
<enebo>
nowhereFast: I do know the answer already more or less though
<enebo>
nowhereFast: that bind is using Java reflection but no doubt your Ruby version of MainItem has no Java method call getPlats since it is written in Ruby
<nowhereFast>
the MainItem Ruby class itself does have that method, tried initally with property_accessor as per the wiki, but them created the method itself
<enebo>
nowhereFast: yeah it has it as a Ruby method but Ruby methods are not visible to Java unless they implement a Java interface
<nowhereFast>
ahh okay.. probably why getPlats worked when using a listener
<enebo>
and the bind is using Java reflection APIs to look for getPlats but there is none
<enebo>
nowhereFast: I have not looked at bindings in a while so I would need to explore to see if there is another mechanism
<enebo>
nowhereFast: of course with a little bit of Java for an interface you can do this
<nowhereFast>
it would be nice :-) I've resorted to using listeners for now to test the rest of JRubyFX out for this project
<nowhereFast>
but binding is a nice convencience, more so with JRubyFX for the conciseness of it
<enebo>
nowhereFast: you see our examples on properties in samples they all use *Property classes so I don't how applicable they are
thedarkone2 has joined #jruby
bbrowning is now known as bbrowning_away
camlow325 has joined #jruby
<enebo>
nowhereFast: I am thinking you could make your own Binding implementation which getValue() will ask for a ruby method. It would be a great addition to JRubyFX as well