:: Forum >>

Combo external model get/setSelected(), get/setState()

Can anyone tell me what these mthods are meant to do? Doesn't seem to make any difference whether I implement these or just stub them, but perhaps I'm making a mistake. It would be easier if I knew what I was looking for.
Monday, February 6, 2006
I have found that not all methods in all controls work. It seems that there is a 'set' of methods that all controls seem to share. In some of the controls, that method or property doesn't make sense and calling it does nothing. I found that looking in the documentation on the web site (under the 3rd and 4th menu items on the right) that controls like the Checkbox do use and support State but not Selected, and controls like ListBox might support and use Selected but not State.
I have mixed feelings on controls sharing methods. On one hand, it's good to know the 'standard set' of methods since they are the same on most controls. But on the other hand, it is odd that calling a method on a control does nothing. One would think that if it does nothing then why have it. But at the end of the day, I do like having the same base methods on all controls and having special methods specific to one control limited to that control only. I know this doesn't fully answer your question, but it might enlighten you a little...
Jim Hunter (www.FriendsOfAW.com)
Tuesday, February 7, 2006
I think we all should consider the based events in JS when we talk about AW controls :) this will bring up more logic to the question, I guess.
Tuesday, February 7, 2006

This topic is archived.

Back to support forum

Forum search