assertTrue( table.getSelectedRow() == 2 );
}
public XModel createManualDatasource()
{
XBaseModel dset = (XBaseModel)XTableModelHelper.createDataSet( "events" );
XBaseModel table = (XBaseModel)XTableModelHelper.createTable( dset, "items" );
XBaseModel header = (XBaseModel)XTableModelHelper.addHeader( table );
XTableModelHelper.addData( header, "event", "event" );
XTableModelHelper.addData( header, "control", "control" );
XTableModelHelper.addData( header, "value", "value" );
XBaseModel rowdata = (XBaseModel)XTableModelHelper.addRow( table );
XTableModelHelper.addData( rowdata, "event", "click" );
XTableModelHelper.addData( rowdata, "Control", "btnSubmit" );
XTableModelHelper.addData( rowdata, "Value", "Submit" );
DebugLogger.dumpModel( XProjectManager.getModel() );