Jump to: navigation, search

Difference between revisions of "Scout/Concepts/TablePage"

(Events: add child page and virtual child page)
(Description)
Line 13: Line 13:
 
[[Image:HG_TablePage.png]]
 
[[Image:HG_TablePage.png]]
  
=== Summary Cell ===
+
The child-pages are represented a tree nodes. The cell of this node is defined by the {{ScoutLink|Concepts|Table#Summary_Cell|summary cell}} of the table.
 
+
{{note|TODO|Merge this post: [http://www.eclipse.org/forums/index.php/mv/msg/452690/1007940/#msg_1007940 Summary Cell]. It explain how the summary cell is used to represent the child pages in the page tree.}}
+
  
 
== Screenshot ==
 
== Screenshot ==

Revision as of 08:05, 8 February 2013


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitter
Bugzilla
Bugzilla


Table-oriented page

  • implements: I obj.pngIPageWithTable
  • extends: C obj.pngAbstractPageWithTable


Description

Note.png
TODO
Add a description

HG TablePage.png

The child-pages are represented a tree nodes. The cell of this node is defined by the summary cell of the table.

Screenshot

ScoutScreenshotTablePage.png


Properties

Defined with getConfiguredXxxxxx() methods.

Note.png
TODO
Add a description of the more important properties (ore the properties specific to this element)


Events

Defined with execXxxxxx() methods.

child page and virtual child page

CreateChildPage is triggered for each row of the table (the corresponding row is given as parameter). It is possible to get some of the values in the table to pass them to the chid page.

@Override
protected IPage execCreateChildPage(final ITableRow row) throws ProcessingException {
	 MyNodePage childPage = new MyNodePage();
	 childPage.setId(getTable().getIDColumn().getValue(row));
	 childPage.setName(getTable().getNameColumn().getValue(row));
	 childPage.setComment(getTable().getNotesColumn().getValue(row));
	 return childPage;
}

For performance reason, because sometimes instantiating a page can be expansive, the concept of virtual page was introduced. Virtual pages are created by CreateVirtualChildPage. Virtual pages act like a proxy: only when they are activated the real corresponding page is instanciated with the corresponding call to CreateChildPage.

Note.png
TODO
If virtual page are not handled properly you can see two kinds of bugs: TODO: Document these cases here.


Other events

Note.png
TODO
Add a description of the more important event and a list of the other events (grouped by type)


See Also