|Re: different icons in outline tree [message #1017998 is a reply to message #1017745]
||Tue, 12 March 2013 23:42
| Lukas Huser
Registered: March 2010
Your screenshot matches very well with an outline based application. I think it should be straight forward to create a similar application with Scout
In a Scout application, the "Schema" (and possibly "Database") nodes become node pages, the "Object Classes" (and possibly "Attributes") nodes become table pages (See pages for more info).
Icons for tree nodes and table rows are easily configured in the Scout SDK (or by overriding the corresponding getConfiguredXXX() methods). There are three different places where you want to define an icon:
- Icon for a node page (e.g. the tree node icon for the "Schema" node): Override getConfiguredIconId() on your node page (e.g. SchemaNodePage). See  in example below.
- Icon for a table page (e.g. the tree node icon for the "Object Classes" node): Override getConfiguredIconId() on your table page (e.g. ObjectClassesTablePage). See  and  in example below.
- Icon for each row in a table page (e.g. the row icon for each object in the object table): Override getConfiguredDefaultIconId() on the table (inner class) of your table page. See  in example below.
- If you want to display different icons for different rows within a table, you need to provide the iconId for each row and explicitly set it on the row. See  in example below (It uses an invisible icon column which is filled for each row, the icon is then explicitly set on each row in the execDecorateCell() method).
To make an icon available to your application, see the corresponding howto.
Here is an example of what the structure of your application could look like:
With the corresponding screenshots (using somewhat arbitrary icons ):
[Updated on: Tue, 12 March 2013 23:49]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.13670 seconds