Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Howard Lewis Ship
Yes, its an enhancement to HTML that most (but not all) browsers no support. It's the right way to break a bunch of options into groups, with the options indented under the corresponding labels. On 5/29/07, Davor Hrg <[EMAIL PROTECTED]> wrote: Optiongroup is a SELECT tag feature, http://www.ht

Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Davor Hrg
Optiongroup is a SELECT tag feature, http://www.htmlhelp.com/reference/html40/forms/optgroup.html Davor Hrg On 5/29/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Great Howard! Extending the abstract worked fine, and the last explanation helped me grasp the usage. I've never dealt with "option gr

Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Daniel Jue
Great Howard! Extending the abstract worked fine, and the last explanation helped me grasp the usage. I've never dealt with "option groups" before, is that related somehow to radio groups, or is that a term for multiple selections as seen with Palette? On 5/29/07, Howard Lewis Ship <[EMAIL PROT

Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Howard Lewis Ship
I should add; this visitor interface is how Select and Palette components navigate the options and option groups in the correct render order. Moving that logic to the SelectModel removes a lot of repetitive code inside the two components. On 5/29/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Howard Lewis Ship
Hint #1: Connect to the source (that "arg0" means you haven't connected the JAR to source, so you miss out on all the Javadoc). Hint #2: I put the implementation of this into a base class you can extend from. On 5/29/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Hello all, I have a public class

Re: T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Daniel Jue
I copied this code from AbstractSelectModel into my GenericSelectionModel, and now it works again. Later on I might see if my GenericSelectionModel can just extend the Abstract one. public final void visit(SelectModelVisitor visitor) { List groups = getOptionGroups();

T5: Example usage of visit(SelectModelVisitor obj) for SelectModel interface?

2007-05-29 Thread Daniel Jue
Hello all, I have a public class GenericSelectionModel implements SelectModel { ...} That I need to add this method to: public void visit(SelectModelVisitor arg0) {...} I think Howard added this in response to some enhancements to the T5 Palette component. At the moment I can't quite wrap my