Regarding the Toggle button and the CheckBox selected property

62 views
Skip to first unread message

Shiv Kumar Ganesh

unread,
Jul 16, 2012, 8:35:54 AM7/16/12
to visag...@googlegroups.com
My question is related to the UI coding while using VisageFX. The situation is explained below.

I went through the code of ToggleButton and found the property selected which is type Boolean.So according to this if my code is something like mentioned below then the ToggleButton should be in a selected state.

ToggleButton{
    text: "Option"
    selected: true
}	

So now the option should be by default be selected right? 
But actually this is not happening. There is no effect of any value I provide to the select variable.
Now same kind of bindings I did make for the CheckBox too(I have committed the code) but I see the same problem there too. Since CheckBox element has three properties namely:-
  • allowIndeterminate
  • indeterminate
  • selected
And all the three properties are Boolean and when I supply them with values they dont work, None of them. The Checkbox appears on the screen but neither allowIndeterminate works nor selected:true. Since none of the Boolean properties related to both the components are working I would like to ask am I doing something wrong because I can see the components on the screen but they do not behave in the way required. Or are there some other implementations that I am missing. I have attached two links below for the output samples from the Oracle website itself. Please guide me if I am doing something wrong. Please have a look at the CheckBox.visage for the code.


Please consider just the image outputs for the above links. Hope I have explained myself above. Please let me know for any clarification.

William Antônio Siqueira

unread,
Jul 16, 2012, 9:17:31 AM7/16/12
to visag...@googlegroups.com
Hello Shiv,

Did you noticed the same behavior for the ToggleButton?

I did noy test it with JavaFX 2.1, but I'll do soon.


--
William Antônio Siqueira
Java Support Analyst




2012/7/16 Shiv Kumar Ganesh <gshi...@gmail.com>

Shiv Kumar Ganesh

unread,
Jul 16, 2012, 10:30:39 AM7/16/12
to visag...@googlegroups.com
Yeah I did. If I use the above code for the Toggle Button It doesnt work It only displays the Toggle Button. On the other hand the toggle Button appears well and even performs when clicked but does not. I have attached the file above. Hope this file would be helpful.You can directly run it after setting up the dependencies. Just place it in Visage.javafx-tests project.
--
Regards,
Shiv Kumar Ganesh
Mob:+918144043528
twitter:shivkumarganesh
CheckBoxDemo.visage

William Antônio Siqueira

unread,
Jul 16, 2012, 10:34:30 AM7/16/12
to visag...@googlegroups.com
That's really strange, I need to check JavaFX 2.1 change logs and then correct this button.

Thanks for pointing this out, let's work to solve this :)

Shiv Kumar Ganesh

unread,
Jul 16, 2012, 11:17:17 AM7/16/12
to visag...@googlegroups.com, william....@gmail.com
Sure I am all ready for it. Could you please point me out how to start. As in should I too see the change log ?

Shiv Kumar Ganesh

unread,
Jul 16, 2012, 1:52:17 PM7/16/12
to visag...@googlegroups.com, william....@gmail.com
I am actually using 2.2.0 beta . Thought of informing you. :)


On Monday, July 16, 2012 8:04:30 PM UTC+5:30, William Antônio Siqueira wrote:

William Antônio Siqueira

unread,
Jul 16, 2012, 2:24:24 PM7/16/12
to Shiv Kumar Ganesh, visag...@googlegroups.com
Ah ok,

it makes more sense test it with 2.2, maybe be we can have a visage GA for JavaFX 2.2 :-)

Shiv Kumar Ganesh

unread,
Jul 17, 2012, 3:07:20 AM7/17/12
to visag...@googlegroups.com, Shiv Kumar Ganesh, william....@gmail.com
Sounds good. And even we would have a stable version of the above.Even the Changes would become easier. So were you able to find out where the problem was :) ?
Reply all
Reply to author
Forward
0 new messages