Hi,
   Below is what I created based on your reply. How do I use the method 
getListSize(id) to get the 
number of 'li' elements in that List? What is 'id' is it an int / String? Your 
help and work is greatly
appreciated.

Regards,

Manoj

----------------------------------  Groovy file -----------------
public void defineUi() {
         ui.Container(uid:"modulartab", colocator:[tag:"div",class:"tabs"])
         List(uid: "menu", clocator: [tag: "ul", id: 
"modular-tab-menu"],separator: "li"){
               UrlLink(uid: "all", clocator: [:])
         }
     }

public int getSize(String id){
   return getListSize(id);
}





----- Original Message ----
> From: John <[email protected]>
> To: tellurium-users <[email protected]>
> Sent: Wednesday, May 27, 2009 2:16:44 PM
> Subject: Re: TrUMP Generated DSL.
> 
> 
> You can use a List to represent the li elements. For example,
> 
> List(uid: "menu", clocator: [tag: "ul", id: "modular-tab-menu"],
> separator: "li"){
>    UrlLink(uid: "all", clocator: [:])
> }
> 
> Then you can use menu[1], menu[2],... to access each links. Here I
> ignored other div and ul tags,
> you can use Container to represent them if you need them.
> 
> Future Trump version will support UI templates and will automatically
> create List or Table for you.
> Please be patient.
> 
> Thanks,
> 
> Jian
> 
> On May 27, 4:50 pm, poweroftesting wrote:
> > Hi,
> >
> >   Below is my structure that I captured using the TrUMP plugin and the
> > resultant
> > generated DSL code. How do I modify to be able to access individual
> > Tabs?
> > Any help is greatly appreciated.
> >
> > Manoj
> >
> > -------------------  HTML Source 
> > ------------------------------
> >
> > 

> >        

> >        

> >        

> >                

> >                        
        * 
> >                                French Open1
> >                        
> >                        
        * 
> >                                French Open2
> >                        
> >                        
        * 
> >                                French Open3
> >                        
> >                        
        * 
> >                                French Open4
> >                        
> >                        
        * 
> >                                French Open5
> >                        
> >                        
        * 
> >                                French Open6
> >                        
> >                        
        * 
> >                                French Open7
> >                        
> >                        
        * 
> >                                French Open8
> >                        
> >                
> >        
> >        
> >        
> > 
> >
> > ----------------------- Generated DSL using TrUMP plugin
> > -------------------------
> >
> > Container(uid: "div0", clocator: [tag: "div", class: "brui-tabs-nav-
> > container"]){
> >         TextBox(uid: "ul1", clocator: [tag: "ul", class: "brui-tabs-nav"])
> >
> > }
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to