/* * Isomorphic SmartGWT web presentation layer * Copyright 2000 and beyond Isomorphic Software, Inc. * * OWNERSHIP NOTICE * Isomorphic Software owns and reserves all rights not expressly granted in this source code, * including all intellectual property rights to the structure, sequence, and format of this code * and to all designs, interfaces, algorithms, schema, protocols, and inventions expressed herein. * * If you have any questions, please email
. * * This entire comment must accompany any portion of Isomorphic Software source code that is * copied or moved from this file. */ package com.smartgwt.sample.showcase.client.dataintegration.java.sql; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.types.ListGridEditEvent; import com.smartgwt.client.types.ListGridFieldType; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.grid.ListGridField; import com.google.gwt.core.client.EntryPoint; public class MultipleForeignKeySample implements EntryPoint { @Override public void onModuleLoad() { ListGrid moneyTransferList = new ListGrid(); moneyTransferList.setDataSource(DataSource.get("moneyTransferFK")); moneyTransferList.setWidth(700); moneyTransferList.setHeight(224); moneyTransferList.setShowFilterEditor(true); moneyTransferList.setAutoFetchData(true); moneyTransferList.setDataPageSize(50); moneyTransferList.setCanEdit(true); moneyTransferList.setEditEvent(ListGridEditEvent.CLICK); moneyTransferList.setCanRemoveRecords(true); ListGridField nameField = new ListGridField("name", 200); ListGridField paymentAmountField = new ListGridField("paymentAmount", 150); paymentAmountField.setType(ListGridFieldType.FLOAT); ListGridField receiptInfoField = new ListGridField("receiptInfo"); ListGridField invoiceInfoField = new ListGridField("invoiceInfo"); moneyTransferList.setFields(nameField, paymentAmountField, receiptInfoField, invoiceInfoField); moneyTransferList.draw(); } }