Right now, I am working on refactoring Table and List to support name
and alias as well
as the position index. One example is as follows.
ui.GenericTable(uid: "table", clocator: [tag: "div", id:
"table"]){
Header(uid: "header", clocator: [tag: "div"], rtag: "div",
ctag: ""){
TextBox(uid: "header: 1 as data", clocator: [tag: "div",
text: "Data"])
TextBox(uid: "bc", clocator: [tag: "div", text:
"Bezeichnung"])
TextBox(uid: "header: 3 as type", clocator: [tag: "div",
text: "Type"])
}
Body(uid: "tbody: 1 as client", clocator: [tag: "div", id:
"client-area"], rtag: "div", ctag: "div"){
UrlLink(uid: "(row: 1, column: data) as server", clocator:
[:])
Image(uid: "(row: 1 as first, column: 2) as image",
clocator: [alt: "IMG"])
Span(uid: "row: first, column: 3 as features", clocator:
[id: "features"])
TextBox(uid: "all")
}
Foot(uid: "foot", clocator: [tag: "div"], rtag: "div", ctag:
""){
TextBox(uid: "foot: 1", clocator: [tag: "div", text:
"Data"])
TextBox(uid: "foot: 2", clocator: [tag: "div", text:
"Bezeichnung"])
TextBox(uid: "foot: 3", clocator: [tag: "div", text:
"Type"])
}
}
Then we can use
table.header[data] or table.header[1]
table.header.bc
table.header[type] or table.header[3]
table[client].server or table[client][1][data] or table[1].server or
table[1][1][data] or table[1][1][1]
table[client].image or table[client][first][2] or table[client][1][2]
or table[1][1][2]
table[client][first][features] or table[client][first][3] or table[1]
[1][3]
as UI element references.
The above is much more complicated then the current Table and List
implementation.
I am working on the design of the UID parser and the routing scheme
from
uid to the runtime object mapping. Should take a while.
But once it is done, the List and Table will become much more
flexible. Be aware that we can define the table header to be dynamic.
Any different opinions?
Thanks,
Jian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---