Hi Peter, Maybe I did not understand your question clearly. Could you show me some html source to help me to understand your question?
Thanks, Jian On Fri, Aug 28, 2009 at 10:14 AM, Peter <[email protected]> wrote: > > Hi Jian, > > thank you for your quick answer! > > No, Trump is not the problem... The problem is that I have to write my > own UI object, which can be used to define a UI template. > I know only three Tellurium objects that can define templates, > "StandardTable", "Table" and "List", and all these objects are not > suitable for the table mentioned above. Or did I get it completely > wrong? > > So I need some hints how to write a new UI object and how to > incorporate it into tellurium... > > Thanks! > Peter > > > On 28 Aug., 15:32, John <[email protected]> wrote: > > Hi Peter, > > > > You are talking about the UI modules generated by Trump, right? > > Trump 0.1.0 does not support UI module yet because it requires > > an inference engine. We have the plan to add the engine to Trump, but > > because of limited resources and time, we haven't worked on that > > yet. Most likely, that will be included in Trump 0.3.0. > > > > For the time being, please manually create the UI templates, which > > is really simple for web developers. More guides could be found here > > > > http://code.google.com/p/aost/wiki/UserGuide?tm=6#UI_Templates > > > > Thanks, > > > > Jian > > > > On Aug 28, 9:19 am, Peter <[email protected]> wrote: > > > > > Hi all, > > > > > has anybody an idea how to handle a dynamic table that uses HTML divs > > > to render its cells? > > > > > E.g. if the the table has <m> rows and <n> columns, the UI module > > > could look like this: > > > > > Container(uid: "Table", clocator: [tag: "div", id: "table"], group: > > > "true") > > > { > > > Container(uid: "Header", clocator: [tag: "div", direct: "true"]) > > > { > > > Div(uid: "Head1", clocator: [tag: "div", direct: "true", id: > > > "name"]) > > > Div(uid: "Head2", clocator: [tag: "div", direct: "true", id: > > > "shortname"]) > > > Div(uid: "Head3", clocator: [tag: "div", direct: "true", id: > > > "type"]) > > > ... > > > Div(uid: "Head<n>", clocator: [tag: "div", direct: "true", id: > > > "type"]) > > > } > > > Container(uid: "Content", clocator: [tag: "div", id: "client- > > > area", direct: "true"]) > > > { > > > Container(uid: "Row1", clocator: [tag: "div", direct: "true", > > > position: "1"]) > > > { > > > Div(uid: "Value1", clocator: [tag: "div", position: "1", > > > direct: "true"]) > > > Div(uid: "Value2", clocator: [tag: "div", position: "2", > > > direct: "true"]) > > > Div(uid: "Value3", clocator: [tag: "div", position: "3", > > > direct: "true"]) > > > ... > > > Div(uid: "Value<n>", clocator: [tag: "div", position: > > > "<n>", direct: "true"]) > > > } > > > > > Container(uid: "Row2", clocator: [tag: "div", direct: "true", > > > position: "2"]) > > > { > > > Div(uid: "Value1", clocator: [tag: "div", position: "1", > > > direct: "true"]) > > > Div(uid: "Value2", clocator: [tag: "div", position: "2", > > > direct: "true"]) > > > Div(uid: "Value3", clocator: [tag: "div", position: "3", > > > direct: "true"]) > > > ... > > > Div(uid: "Value<n>", clocator: [tag: "div", position: > > > "<n>", direct: "true"]) > > > } > > > ... > > > Container(uid: "Row<m>", clocator: [tag: "div", direct: > > > "true", position: "<m>"]) > > > { > > > Div(uid: "Value1", clocator: [tag: "div", position: "1", > > > direct: "true"]) > > > Div(uid: "Value2", clocator: [tag: "div", position: "2", > > > direct: "true"]) > > > Div(uid: "Value3", clocator: [tag: "div", position: "3", > > > direct: "true"]) > > > ... > > > Div(uid: "Value<n>", clocator: [tag: "div", position: > > > "<n>", direct: "true"]) > > > } > > > } > > > > > } > > > > > But how to handle tables with variable size? The predefined UI Object > > > "Table" is not able to handle such special tables. So I have to create > > > a UI template, which can handle such tables in an easy way, e.g. with > > > the same methods like "Table" and the same way to access table > > > elements via indices. > > > > > Is anybody out there who already did such a job or who can give me > > > some advice? > > > > > Thanks in advance & best regards! > > > Peter > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
