--
PedroRio - 20 Apr 2010
A
GridPanel is a XVW component that's used to display (in a tabular form) a list of items (provided by a data source). It provides built-in mechanisms to sort, group the data and other.
Items in the table can be selected and clicked which can in turn trigger specific actions (such as opening a new window when double clicking a given row in the table)
A
GridPanel should be used inside a Panel component.
XML Definition
A
GridPanel is declared as following:
<xvw:gridPanel
datasource="#{viewBean.dataSource}"
...
otherAttributes
...
>
</xvw:gridPanel>
GridPanel Properties
Possible Child Components:
Property DataSource:
XEOObjectListConnector: The
XEOObjectListConnector receives a boObjectList as an argument of the contructor and can be used to incorporate any list of boObjects in the
GridPanel
XEOBridgeListConnector: The
XEOBridgeListConnector receives a bridgeHandler as an argument of the constructor and can be used to display a bridge of objects in the
GridPanel.
Example: Imagine that we want to display all instances of the system model "Ebo_Perf" in a given
GridPanel, the dataSource property of the Bean could be a method like this:
public DataListConnector getDataSource()
{
String boql = 'select Ebo_Perf';
boObjectList listOfUsers = boObjectList.list(getEboContext(), boql);
return new XEOObjectListConnector(listOfUsers);
}
To Continue: