Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 6:29 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Oct 19, 2012 12:30 pm 
Offline
User avatar

Joined: Thu Jun 14, 2012 12:33 am
Posts: 17
Hello, MatthiasM!

Can you make an example, which will have all the components?
Or example table.

I need Tree Node component, I did not find it.

I found TreePathDisplay, but I don't know how I can use it.
Can I get an example?

Thank u!

P.S.
Excuse me, Are you going to develop GUI Builder?


Attachments:
File comment: Tree Node for example
dpc_tree.png
dpc_tree.png [ 8.07 KiB | Viewed 304 times ]
File comment: Example Table
comps.png
comps.png [ 4.66 KiB | Viewed 304 times ]


Last edited by SofiaSun on Fri Oct 19, 2012 6:53 pm, edited 1 time in total.
Top
 Profile  
 
PostPosted: Fri Oct 19, 2012 6:00 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1189
First it's "you" and not "u".

There is no tree node component - the TreeTable and Table use plugable cell renderers (see TableBase) which can potentially use any type of widget to render a cell. Or you can place a widget into a cell if you need an interactive widget (like a check box or a combo box etc).

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Fri Oct 19, 2012 9:57 pm 
Offline
User avatar

Joined: Thu Jun 14, 2012 12:33 am
Posts: 17
MatthiasM wrote:
There is no tree node component - the TreeTable and Table use plugable cell renderers (see TableBase) which can potentially use any type of widget to render a cell. Or you can place a widget into a cell if you need an interactive widget (like a check box or a combo box etc).


I understand, but I'm still a beginner. I understand, than TWL uses MVC.
But, Excuse me, May I ask you to show me an example. Simple example (Leaf renderer, Node renderer, String Model), please.

I understand, than the TreeTableModel can be more difficult. It can have different components (for example - different file type).
I'm sorry, if I spend your time.


Top
 Profile  
 
PostPosted: Fri Oct 19, 2012 10:42 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1189
This is a Table demo which contains a ComboBox as one of it's cells.
This is a TreeTable demo which shows column spanning cells, and an EditField in on of the cells.

In addition to these 2 demos the TreeTable and Table are also used inside the FileSelector widget which is quite large.
And it is also used a lot inside the TWL Theme Editor, which also demonstrates different text colors per cells and icons inside the tree.

The source of all this can be found via the TWL website.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
PostPosted: Sun Oct 21, 2012 6:35 pm 
Offline
Oldbie

Joined: Thu Mar 15, 2012 12:38 am
Posts: 269
There are some Samples/Examples of various UI demos in the main zip file (could be in other ones, haven't checked). They are VERY helpful and you should check them out. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group