com.sage.swt.client.widget
Interface HasBindableDataProviders

All Superinterfaces:
HasAfterWidgetKeyChangedHandlers, HasBeforeWidgetKeyChangedHandlers, SwtDataWidget, SwtWidget
All Known Implementing Classes:
SwtBarChart, SwtLineChart

public interface HasBindableDataProviders
extends SwtDataWidget

This is a "convenience" interface for a widget that stores an instance of the BindableDataProvider to which it is bound. It is used during the widget-data binding by the DefaultDataBindingAssembler to bind the service to the widget.


Method Summary
 java.util.List<java.lang.String> getDataSourceIDs()
          Gets that list of IDs for the datasources that are used by this widget - the order of this list should match the ordering used by the index in the setDataSource method.
 void setBindableDataProviders(java.util.List<BindableDataProvider> dataProviders)
          Sets the data providers that will be used by this widget.
 
Methods inherited from interface com.sage.swt.client.widget.SwtWidget
getDatasourceID, getErrorStack, getHelpID, getHorizontalAlignmentInParent, getInstanceContext, getPreferenceBinding, getPreferenceStoreID, getVerticalAlignmentInParent, getWidgetKey, isEnabled, isVisible, setClientProperty, setDatasourceID, setEnabled, setHelpID, setHorizontalAlignmentInParent, setInstanceContext, setPreferenceBinding, setPreferenceStoreID, setupAlignmentInParentProperties, setupDefaultAlignmentInParentProperties, setVerticalAlignmentInParent, setVisible, setWidgetKey
 
Methods inherited from interface com.sage.swt.client.widget.HasBeforeWidgetKeyChangedHandlers
addBeforeWidgetKeyChangedHandler
 
Methods inherited from interface com.sage.swt.client.widget.HasAfterWidgetKeyChangedHandlers
addAfterWidgetKeyChangedHandler
 

Method Detail

getDataSourceIDs

java.util.List<java.lang.String> getDataSourceIDs()
Gets that list of IDs for the datasources that are used by this widget - the order of this list should match the ordering used by the index in the setDataSource method.

Returns:
A list of the datasource IDs.

setBindableDataProviders

void setBindableDataProviders(java.util.List<BindableDataProvider> dataProviders)
Sets the data providers that will be used by this widget.

Parameters:
dataProviders - The data provider that will be used by this widget.


Copyright © 2011 Sage Software, Inc. All rights reserved.