• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controlling the front end layout through xml

 
sai kishan singh thakur
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have some xml files which will store the data that has to be populated on to the front end. I am using this data from the xml and laying out in to the horizontal and vertical sections making changes in the java code.
My question is: Can we do this layout control in xml itself ?. The end customer using this tool should be given the flexibility to decide his own layout (through xml modifications by some tool) instead of modifying source code.

Thanks
Sk
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, why not? You just have to do some architecting and design so that the layout can be described in an understandable way in XML, before you start coding.
 
sai kishan singh thakur
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Thanks for the prompt response.
Can you please show it through some example please ?.

Thanks
Saiki
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, as I said there's a fair amount of design for you to do. A GUI is a complicated thing. That implies that me just dreaming up a short example for you isn't going to be practical. Not for a forum post, anyway.

But it really isn't hard. Start by figuring out what features you want in your GUI. (Have you done that yet?) Then design an XML document which can hold specifications of those features. Those are the easy parts. The hard part is to write code which parses the XML and interfaces with the GUI-generating code to format the GUI accordingly.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try a search for "user interface design in XML" - a number of people have experimented with this sort of thing.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic