Class ColumnTree
- All Implemented Interfaces:
- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- IsWidget,- LogicalStructure,- DataBoundComponent,- HasClearHandlers,- HasClickHandlers,- HasDoubleClickHandlers,- HasDragCompleteHandlers,- HasDragMoveHandlers,- HasDragRepositionMoveHandlers,- HasDragRepositionStartHandlers,- HasDragRepositionStopHandlers,- HasDragResizeMoveHandlers,- HasDragResizeStartHandlers,- HasDragResizeStopHandlers,- HasDragStartHandlers,- HasDragStopHandlers,- HasDropCompleteHandlers,- HasDropHandlers,- HasDropMoveHandlers,- HasDropOutHandlers,- HasDropOverHandlers,- HasFetchDataHandlers,- HasFocusChangedHandlers,- HasHoverHandlers,- HasHoverHiddenHandlers,- HasKeyDownHandlers,- HasKeyPressHandlers,- HasMouseDownHandlers,- HasMouseMoveHandlers,- HasMouseOutHandlers,- HasMouseOverHandlers,- HasMouseStillDownHandlers,- HasMouseUpHandlers,- HasMouseWheelHandlers,- HasMovedHandlers,- HasParentMovedHandlers,- HasResizedHandlers,- HasRightMouseDownHandlers,- HasRuleContextChangedHandlers,- HasScrolledHandlers,- HasShowContextMenuHandlers,- HasVisibilityChangedHandlers,- HasNodeSelectedHandlers,- HasMembersChangedHandlers
-  the Treeclass, which manipulates hierarchical data sets
- the TreeGrid widget class, which extends the ListGrid class to visually present tree data in an expandable/collapsible format.
- the ColumnTree widget class, which visually presents tree data in a so-called "Miller Column" format.
TreeDataBinding.  A ColumnTree shows a single branch of
 the underlying Tree horizontally, from  left to right. Thus, the leftmost
 column shows all the top-level nodes. When the user clicks one of those nodes, a new column is shown immediately to the
 right of the top-level column, showing the selected node's children. Additional columns are shown as required to present
 lower-level children. The behavior of ColumnTree is similar to that of the Browser interface in the Apple™
 iTunes™ application.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
- 
Field SummaryFields inherited from class com.smartgwt.client.widgets.BaseWidgetconfig, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassNameFields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdd acom.smartgwt.client.widgets.DragCompleteHandler.Add acom.smartgwt.client.widgets.DropCompleteHandler.addFetchDataHandler(FetchDataHandler handler) Add a fetchData handler.voidConvenience method to display a {@link com.smartgwt.client..FormulaBuilder} to create a new Formula Field.Add a onNodeSelected handler.voidConvenience method to display a {@link com.smartgwt.client..SummaryBuilder} to create a new Summary Field.Whether at least one item is selected
anySelected(int colNum) Whether at least one item is selected in the supplied column (the first column if none is passed)

static voidchangeAutoChildDefaults(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName.protected JavaScriptObjectcreate()void
 Deselect all records

voiddeselectAllRecords(int colNum) Deselect all records in the supplied column (the first column if none is passed)

voiddeselectRecord(int record) Deselect aRecordpassed in explicitly, or by index.voiddeselectRecord(int record, int colNum) Deselect aRecordpassed in explicitly, or by index.voiddeselectRecord(Record record) Deselect aRecordpassed in explicitly, or by index.voiddeselectRecord(Record[] records) Deselect a list ofRecords passed in explicitly, or by index.voiddeselectRecord(Record record, int colNum) voiddeselectRecords(int[] records) Deselect a list ofRecords passed in explicitly, or by index.voiddeselectRecords(int[] records, int colNum) Deselect a list ofRecords passed in explicitly, or by index.voiddeselectRecords(Record[] records) Deselect a list ofRecords passed in explicitly, or by index.voiddeselectRecords(Record[] records, int colNum) Deselect a list ofRecords passed in explicitly, or by index.voiddisableHilite(String hiliteID) Disable a hilite

voidDisable all hilites.

voidShows a FieldPicker interface allowing end-users to rearrange the order and visibiility of the fields in the associated DataBoundComponent.voidShows a HiliteEditor interface allowing end-users to edit the data-hilites currently in use by this DataBoundComponent.voidenableHilite(String hiliteID) Enable / disable ahilites

voidenableHilite(String hiliteID, boolean enable) Enable / disable ahilites

voidEnable all hilites.

voidenableHiliting(boolean enable) Enable all hilites.

voidvoidexportData(DSRequest requestProperties) voidexportData(DSRequest requestProperties, RPCCallback callback) Uses a "fetch" operation on the currentDataSourceto retrieve data that matches the current filter and sort criteria for this component, then exports the resulting data to a file or window in the requested format.voidRetrieves data from the DataSource that matches the specified criteria.voidRetrieves data from the DataSource that matches the specified criteria.voidfetchData(Criteria criteria, DSCallback callback) Retrieves data from the DataSource that matches the specified criteria.voidfetchData(Criteria criteria, DSCallback callback, DSRequest requestProperties) Retrieves data from the DataSource that matches the specified criteria.voidRetrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria) Retrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria, DSCallback callback) Retrieves data that matches the provided criteria and displays the matching data in this component.voidfilterData(Criteria criteria, DSCallback callback, DSRequest requestProperties) Retrieves data that matches the provided criteria and displays the matching data in this component.find(AdvancedCriteria adCriteria) Filters all objects according to the AdvancedCriteria passed and returns the first matching object or null if not foundRecord[]findAll(AdvancedCriteria adCriteria) Filters all objects according to the AdvancedCriteria passedintfindIndex(AdvancedCriteria adCriteria) Finds the index of the first Record that matches with the AdvacendCriteria passed.intfindNextIndex(int startIndex, AdvancedCriteria adCriteria) LikeRecordList.findIndex(java.util.Map), but considering the startIndex parameter.intfindNextIndex(int startIndex, AdvancedCriteria adCriteria, int endIndex) LikeRecordList.findIndex(java.util.Map), but considering the startIndex and endIndex parameters.voidfolderDrop(TreeNode[] nodes, TreeNode folder, int index, Canvas sourceWidget) Process a drop of one or more nodes on a TreeGrid folder.
 Note: SeeTreeGridDropfor an overview of TreeGrid drag and drop behavior.Indicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key.Text for a menu item allowing users to add a formula fieldoperationIdthis component should use when performing add operations.Text for a menu item allowing users to add a formula fieldIfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()If true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter().IfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.When usingsingle-column mode, this is the "Back" button that you see hovering above the column UI and that allows backward navigation.When usingsingle-column mode, this i18n property dictates the title for thebuttondocked to the top left which allows navigation back through the column tree.Adds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.
Adds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.
Indicates whether records can be dragged from this listGrid and dropped elsewhere.This suffix will be appended to thefolderIconfor closed folders.Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Standard set of properties to apply to each generatedcolumnin this columnTree.voidgetColumnTitle(TreeNode node, int colNum) Returns the title to show for the header of indicated column.String[]WithfixedColumnsenabled, defines the header title for each column.String[]WithfixedColumnsenabled, defines the pixel or % width per column.getCustomColumnProperties(TreeNode node, int colNum) Additional properties to apply to the ListGrid that will show the indicated column.This property allows the developer to rename thedefault node.showOpenIconproperty.This property allows the developer to customize the icon displayed next to a node.getData()How to fetch and manage records retrieve from the server.intWhen usingdata paging, how many records to fetch at a time.For aColumnTreethat uses a DataSource, these properties will be passed to the automatically-created ResultTree.The DataSource that this component should bind to for default fields and for performingDataSource requests.Before we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values.Record[]During a drag-and-drop interaction, this method returns the set of records being dragged out of the component.Indicates what to do with data dragged into another DataBoundComponent.CSS Style to apply to the drag tracker when dragging occurs on this component.IfshowDropIconsis true, this suffix will be appended to thefolderIconwhen the user drop-hovers over some folder.When an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.Message to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled.Text for a menu item allowing users to edit a formula fieldText for a menu item allowing users to edit the formatter for a fieldString[]WithfixedColumnsenabled, defines each column'sListGrid.emptyMessage.Setting exportAll to true prevents the component from passing its list of fields to the 
 export call.String[]The list of field-names to export.If Summary rows exist for this component, whether to include them when exporting client data.Operation ID this component should use when performing fetch operations.Returna an array of field alignments for this gridintReturn the number of fields.Return the fields as JavaScriptObjects rather than as SmartGWT Java wrappers of the field class type (e.g.A title for the leftmost column ifshowHeadersis set (the remaining columns have their titles derived from the item selected in the column to the left).Enables fixed columns mode.The URL of the base icon for all folder nodes in this columnTree.Marker that can be set on a record to flag that record as hilited.Hilite[]Return the set of hilite-objects currently applied to this DataBoundComponent.Get the current hilites encoded as a String, for saving.Criteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.Criteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.For databound columnTree instances, should the entire tree of data be loaded on initial fetch, or should each column be loaded as needed.Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.The filename of the default icon for all leaf nodes in this grid.IfshowOpenIconsis true, this suffix will be appended to thefolderIconfor open folders in this grid.static ColumnTreegetOrCreateRef(JavaScriptObject jsObj) If set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent).Indicates whether or not this component will load its dataprogressivelygetRecord(int index) Retrieve a record by index.Retrieve a record by index.intgetRecordIndex(Record record) Get the index of the provided record.
Return the underlying data of this DataBoundComponent as aRecordList.operationIdthis component should use when performing remove operations.Return the underlying data of this DataBoundComponent as aResultSet.Optional identifier for saved searches that should be applied to this component.Get the selected record, that is, the parent of the nodes in the rightmost visible column.getSelection(int colNum) Returns the array of objects selected in the specified column of the columnTreeWhether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.
Should folder nodes showing custom icons (set via thecustomIconProperty), show open state images when the folder is opened.Whether to show fields markeddetail:truewhen a DataBoundComponent is given a DataSource but nocomponent.fields.If true, when the user drags a droppable target over a folder in this TreeGrid, show a different icon folder icon.If set, each column in the ColumnTree will show a header with the title of the selected node from the column to the left.Whether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.
When set to false, only displays a single column at a time, showing a slide animation when moving between columns.If set, andshowHeadersis also set, each column's header will show a count of the number of nodes in that columnIf true, show a different icon foropenfolders than closed folders.booleanWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided.getSort()Returns the currentSortSpecifiersfor this component.If true,ListGrid.getFieldState()andListGrid.setFieldState(java.lang.String)will omit state information for hidden fields by default.Method to return the fieldName which represents the "title" for records in this
 Component.
 
 If this.titleField is explicitly specified it will always be used.
 Otherwise, default implementation will checktitleFieldfor databound
 components.
 
 For non databound components returns the first defined field name of"title", 
"name", or"id".getTitleFieldValue(Record record) Get the value of the titleField for the passed record
operationIdthis component should use when performing update operations.If true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.
TheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding.voidInvalidate the current data cache for this databound component via a call to the dataset'sinvalidateCache()method, for example,ResultSet.invalidateCache().voidNavigate to the previous column.protected voidonInit()protected voidvoidSelect all records

voidselectAllRecords(int colNum) Select all records in the supplied column (the first column if none is passed)

voidselectRecord(int record) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(int record, boolean newState) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(int record, boolean newState, int colNum) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(Record record) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(Record record, boolean newState) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecord(Record record, boolean newState, int colNum) Select/deselect aRecordpassed in explicitly, or by index.voidselectRecords(int[] records) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(int[] records, boolean newState) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(int[] records, boolean newState, int colNum) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(Record[] records) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(Record[] records, boolean newState) Select/deselect a list ofRecords passed in explicitly, or by index.voidselectRecords(Record[] records, boolean newState, int colNum) Select/deselect a list ofRecords passed in explicitly, or by index.setAddDropValues(Boolean addDropValues) Indicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key.setAddFormulaFieldText(String addFormulaFieldText) Text for a menu item allowing users to add a formula fieldsetAddOperation(String addOperation) operationIdthis component should use when performing add operations.setAddSummaryFieldText(String addSummaryFieldText) Text for a menu item allowing users to add a formula fieldsetAutoFetchAsFilter(Boolean autoFetchAsFilter) IfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()setAutoFetchData(Boolean autoFetchData) If true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter().setAutoFetchTextMatchStyle(TextMatchStyle autoFetchTextMatchStyle) IfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.setBackButtonTitle(String backButtonTitle) When usingsingle-column mode, this i18n property dictates the title for thebuttondocked to the top left which allows navigation back through the column tree.setCanAddFormulaFields(Boolean canAddFormulaFields) Adds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.
setCanAddSummaryFields(Boolean canAddSummaryFields) Adds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.
setCanDragRecordsOut(Boolean canDragRecordsOut) Indicates whether records can be dragged from this listGrid and dropped elsewhere.setClosedIconSuffix(String closedIconSuffix) This suffix will be appended to thefolderIconfor closed folders.voidsetColumnProperties(ListGrid columnProperties) Standard set of properties to apply to each generatedcolumnin this columnTree.setColumnTitles(String... columnTitles) WithfixedColumnsenabled, defines the header title for each column.setColumnWidths(String... columnWidths) WithfixedColumnsenabled, defines the pixel or % width per column.setCustomIconOpenProperty(String customIconOpenProperty) This property allows the developer to rename thedefault node.showOpenIconproperty.setCustomIconProperty(String customIconProperty) This property allows the developer to customize the icon displayed next to a node.setDataFetchMode(FetchMode dataFetchMode) How to fetch and manage records retrieve from the server.setDataPageSize(int dataPageSize) When usingdata paging, how many records to fetch at a time.voidsetDataProperties(Tree resultTreeProperties) For databound ColumnTrees, this attribute can be used to customize the ResultTree object created for this ColumnTree when data is fetched.setDataSource(DataSource dataSource) The DataSource that this component should bind to for default fields and for performingDataSource requests.voidsetDataSource(DataSource dataSource, ListGridField... fields) Bind to a DataSource.setDataSource(String dataSource) The DataSource that this component should bind to for default fields and for performingDataSource requests.setDeepCloneOnEdit(Boolean deepCloneOnEdit) Before we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values.static voidsetDefaultProperties(ColumnTree columnTreeProperties) Class level method to set the default properties of this class.setDragDataAction(DragDataAction dragDataAction) Indicates what to do with data dragged into another DataBoundComponent.setDragDataCustomizer(DragDataCustomizer customizer) During a drag-and-drop interaction, this method returns the set of records being dragged out of the component.setDragTrackerStyle(String dragTrackerStyle) CSS Style to apply to the drag tracker when dragging occurs on this component.voidsetDropIconSuffix(String dropIconSuffix) IfshowDropIconsis true, this suffix will be appended to thefolderIconwhen the user drop-hovers over some folder.setDropValues(Map dropValues) When an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.setDuplicateDragMessage(String duplicateDragMessage) Message to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled.setEditFormulaFieldText(String editFormulaFieldText) Text for a menu item allowing users to edit a formula fieldsetEditSummaryFieldText(String editSummaryFieldText) Text for a menu item allowing users to edit the formatter for a fieldsetEmptyColumnMessages(String... emptyColumnMessages) WithfixedColumnsenabled, defines each column'sListGrid.emptyMessage.setExportAll(Boolean exportAll) Setting exportAll to true prevents the component from passing its list of fields to the 
 export call.setExportFields(String[] exportFields) The list of field-names to export.setExportIncludeSummaries(Boolean exportIncludeSummaries) If Summary rows exist for this component, whether to include them when exporting client data.setFetchOperation(String fetchOperation) Operation ID this component should use when performing fetch operations.setFields(JavaScriptObject... fields) Field setter variant (alternative tosetFields(FormItem...),setFields(ListGridField...), etc.) that will accept an array of JavaScriptObject, rather than an array of SmartGWT Java wrappers of the field class type (e.g.setFields(ListGridField... fields) An array of field objects, specifying the order, layout, dynamic calculation, and sorting behavior of each field in each column in the columnTree object.setFirstColumnTitle(String firstColumnTitle) A title for the leftmost column ifshowHeadersis set (the remaining columns have their titles derived from the item selected in the column to the left).setFixedColumns(Integer fixedColumns) Enables fixed columns mode.setFolderIcon(String folderIcon) The URL of the base icon for all folder nodes in this columnTree.setHiliteProperty(String hiliteProperty) Marker that can be set on a record to flag that record as hilited.setHilites(Hilite[] hilites) Accepts an array of hilite objects and applies them to this DataBoundComponent.setHiliteState(String hiliteState) Set the current hilites based on a hiliteState String previously returned from getHilitesState.setImplicitCriteria(Criteria implicitCriteria) Criteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.setImplicitCriteria(Criteria implicitCriteria, DSCallback callback) setImplicitCriteria(Criteria criteria, DSCallback callback, Boolean initialFetch) setInitialCriteria(Criteria initialCriteria) Criteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.setLoadDataOnDemand(Boolean loadDataOnDemand) For databound columnTree instances, should the entire tree of data be loaded on initial fetch, or should each column be loaded as needed.Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.setNodeIcon(String nodeIcon) The filename of the default icon for all leaf nodes in this grid.setOpenIconSuffix(String openIconSuffix) IfshowOpenIconsis true, this suffix will be appended to thefolderIconfor open folders in this grid.setPreventDuplicates(Boolean preventDuplicates) If set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent).setProgressiveLoading(Boolean progressiveLoading) Indicates whether or not this component will load its dataprogressivelysetRemoveOperation(String removeOperation) operationIdthis component should use when performing remove operations.setSavedSearchId(String savedSearchId) Optional identifier for saved searches that should be applied to this component.setShowComplexFields(Boolean showComplexFields) Whether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.
setShowCustomIconOpen(Boolean showCustomIconOpen) Should folder nodes showing custom icons (set via thecustomIconProperty), show open state images when the folder is opened.setShowDetailFields(Boolean showDetailFields) Whether to show fields markeddetail:truewhen a DataBoundComponent is given a DataSource but nocomponent.fields.voidsetShowDropIcons(Boolean showDropIcons) If true, when the user drags a droppable target over a folder in this TreeGrid, show a different icon folder icon.setShowHeaders(Boolean showHeaders) If set, each column in the ColumnTree will show a header with the title of the selected node from the column to the left.setShowHiddenFields(Boolean showHiddenFields) Whether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.
setShowMultipleColumns(Boolean showMultipleColumns) When set to false, only displays a single column at a time, showing a slide animation when moving between columns.setShowNodeCount(Boolean showNodeCount) If set, andshowHeadersis also set, each column's header will show a count of the number of nodes in that columnsetShowOpenIcons(Boolean showOpenIcons) If true, show a different icon foropenfolders than closed folders.setShowSavedSearchesByDS(boolean showSavedSearchesByDS) Whether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided.setSort(SortSpecifier... sortSpecifiers) Sort the component on one or more fields.setSparseFieldState(Boolean sparseFieldState) If true,ListGrid.getFieldState()andListGrid.setFieldState(java.lang.String)will omit state information for hidden fields by default.setTitleField(String titleField) Sets the best field to use for a user-visible title for an individual record from this component.setUpdateOperation(String updateOperation) operationIdthis component should use when performing update operations.setUseAllDataSourceFields(Boolean useAllDataSourceFields) If true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.
setUseFlatFields(Boolean useFlatFields) TheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding.voidshouldShowHeader(TreeNode node, int colNum) Whether the indicated column should show a header.voidtransferNodes(TreeNode[] nodes, TreeNode folder, Integer index, Canvas sourceWidget) Transfer a list ofTreeNodes within this treeGrid or from from some other component (does not have to be a databound component) into this component.voidtransferNodes(TreeNode[] nodes, TreeNode folder, Integer index, Canvas sourceWidget, String callback) Transfer a list ofTreeNodes within this treeGrid or from from some other component (does not have to be a databound component) into this component.voidtransferRecords(Record[] records, Record targetRecord, Integer index, Canvas sourceWidget, TransferRecordsCallback callback) Transfer a list ofRecords from another component (does not have to be a databound component) into this component.voidSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction.voidtransferSelectedData(DataBoundComponent source, int index) Simulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction.Methods inherited from class com.smartgwt.client.widgets.layout.LayoutaddMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVertical, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, replaceMember, revealChild, revealChild, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMemberMethods inherited from class com.smartgwt.client.widgets.CanvasaddChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, doValueDictation, doVoiceCommand, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAriaStateDefaults, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDefiningProperty, getDefiningPropertyName, getDefiningPropertyNameOptions, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPendingMarkerStyle, getPendingMarkerVisible, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestDataContext, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUISummary, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getWorkflows, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, initComplete, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDefiningProperty, setDefiningPropertyNameOptions, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPendingMarkerStyle, setPendingMarkerVisible, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTestDataContext, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setWorkflows, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPendingMarker, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, startDebuggingOverflow, stopDebuggingOverflow, supportsValueDictation, supportsVoiceCommands, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDropMethods inherited from class com.smartgwt.client.widgets.BaseWidgetaddDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringMethods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEventMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.smartgwt.client.widgets.DataBoundComponentgetOrCreateJsObjMethods inherited from interface com.google.gwt.event.shared.HasHandlersfireEvent
- 
Constructor Details- 
ColumnTreepublic ColumnTree()
- 
ColumnTree
 
- 
- 
Method Details- 
getOrCreateRef
- 
changeAutoChildDefaultsChanges the defaults for Canvas AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
changeAutoChildDefaultsChanges the defaults for FormItem AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
create
- 
getBackButtonWhen usingsingle-column mode, this is the "Back" button that you see hovering above the column UI and that allows backward navigation.This component is an AutoChild named "backButton". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current backButton value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
 
- 
setBackButtonTitleWhen usingsingle-column mode, this i18n property dictates the title for thebuttondocked to the top left which allows navigation back through the column tree.- Parameters:
- backButtonTitle- New backButtonTitle value. Default value is "Back"
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getBackButtonTitleWhen usingsingle-column mode, this i18n property dictates the title for thebuttondocked to the top left which allows navigation back through the column tree.- Returns:
- Current backButtonTitle value. Default value is "Back"
 
- 
setCanDragRecordsOutIndicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If canDragRecordsOutis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag and drop of records out of the grid.- Parameters:
- canDragRecordsOut- New canDragRecordsOut value. Default value is false
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getCanDragRecordsOutIndicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If canDragRecordsOutis initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrollingso that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles. IfCanvas.disableTouchScrollingForDragis set totrue, then touch scrolling will be disabled automatically. However, foraccessibilityreasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag and drop of records out of the grid.- Returns:
- Current canDragRecordsOut value. Default value is false
- See Also:
 
- 
setClosedIconSuffixThis suffix will be appended to thefolderIconfor closed folders. IfshowOpenIconsis set tofalsethis suffix will also be appended to open folders' icons.- Parameters:
- closedIconSuffix- New closedIconSuffix value. Default value is "closed"
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getClosedIconSuffixThis suffix will be appended to thefolderIconfor closed folders. IfshowOpenIconsis set tofalsethis suffix will also be appended to open folders' icons.- Returns:
- Current closedIconSuffix value. Default value is "closed"
 
- 
getColumnNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.Instance of ListGrid used to display each column of the tree. - Returns:
- null
 
- 
setColumnTitlesWithfixedColumnsenabled, defines the header title for each column.- Parameters:
- columnTitles- New columnTitles value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getColumnTitlesWithfixedColumnsenabled, defines the header title for each column.- Returns:
- Current columnTitles value. Default value is null
 
- 
setColumnWidthsWithfixedColumnsenabled, defines the pixel or % width per column.- Parameters:
- columnWidths- New columnWidths value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getColumnWidthsWithfixedColumnsenabled, defines the pixel or % width per column.- Returns:
- Current columnWidths value. Default value is null
 
- 
setCustomIconOpenPropertyThis property allows the developer to rename thedefault node.showOpenIconproperty.Note : This is an advanced setting - Parameters:
- customIconOpenProperty- New customIconOpenProperty value. Default value is "showOpenIcon"
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getCustomIconOpenPropertyThis property allows the developer to rename thedefault node.showOpenIconproperty.- Returns:
- Current customIconOpenProperty value. Default value is "showOpenIcon"
- See Also:
 
- 
setCustomIconPropertyThis property allows the developer to customize the icon displayed next to a node. Setnode[grid.customIconProperty]to the URL of the desired icon to display and it will be shown instead of the standardnodeIconfor this node.
 Note that ifshowCustomIconOpenis true for this grid, customized icons for folder nodes will be appended with theopenIconSuffixsuffix on state change, as with the standardfolderIcon. Also note that for custom folder icons, theclosedIconSuffixwill never be appended.- Parameters:
- customIconProperty- New customIconProperty value. Default value is "icon"
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getCustomIconPropertyThis property allows the developer to customize the icon displayed next to a node. Setnode[grid.customIconProperty]to the URL of the desired icon to display and it will be shown instead of the standardnodeIconfor this node.
 Note that ifshowCustomIconOpenis true for this grid, customized icons for folder nodes will be appended with theopenIconSuffixsuffix on state change, as with the standardfolderIcon. Also note that for custom folder icons, theclosedIconSuffixwill never be appended.- Returns:
- Current customIconProperty value. Default value is "icon"
 
- 
setDataATreeobject consisting of nestedTreeNodes to display in this ColumnTree. Thedataproperty will typically not be explicitly specified for databound ColumnTrees, where the data is returned from the server via databound component methods such asfetchData()
 If this method is called after the component has been drawn/initialized: Set theTreeobject this ColumnTree will view- Parameters:
- data- Tree to show. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getDataATreeobject consisting of nestedTreeNodes to display in this ColumnTree. Thedataproperty will typically not be explicitly specified for databound ColumnTrees, where the data is returned from the server via databound component methods such asfetchData()- Returns:
- Returns the Treeobject this ColumnTree is viewing. Default value is null
 
- 
setDataFetchModeHow to fetch and manage records retrieve from the server. SeeFetchMode.This setting only applies to the ResultSetautomatically created by callingfetchData(). If a pre-existing ResultSet is passed to setData() instead, it's existing setting forResultSet.fetchModeapplies.- Specified by:
- setDataFetchModein interface- DataBoundComponent
- Parameters:
- dataFetchMode- New dataFetchMode value. Default value is "paged"
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getDataFetchModeHow to fetch and manage records retrieve from the server. SeeFetchMode.This setting only applies to the ResultSetautomatically created by callingfetchData(). If a pre-existing ResultSet is passed to setData() instead, it's existing setting forResultSet.fetchModeapplies.- Specified by:
- getDataFetchModein interface- DataBoundComponent
- Returns:
- Current dataFetchMode value. Default value is "paged"
- See Also:
 
- 
getDataPropertiesFor aColumnTreethat uses a DataSource, these properties will be passed to the automatically-created ResultTree. This can be used for various customizations such as modifying the automatically-chosenTree.parentIdField.- Returns:
- Current dataProperties value. Default value is null
- See Also:
 
- 
setDataSourceThe DataSource that this component should bind to for default fields and for performingDataSource requests.Can be specified as either a DataSource instance or the String ID of a DataSource. - Specified by:
- setDataSourcein interface- DataBoundComponent
- Parameters:
- dataSource- New dataSource value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
setDataSourceThe DataSource that this component should bind to for default fields and for performingDataSource requests.Can be specified as either a DataSource instance or the String ID of a DataSource. - Specified by:
- setDataSourcein interface- DataBoundComponent
- Parameters:
- dataSource- New dataSource value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
setEmptyColumnMessagespublic ColumnTree setEmptyColumnMessages(String... emptyColumnMessages) throws IllegalStateException WithfixedColumnsenabled, defines each column'sListGrid.emptyMessage.- Parameters:
- emptyColumnMessages- New emptyColumnMessages value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getEmptyColumnMessagesWithfixedColumnsenabled, defines each column'sListGrid.emptyMessage.- Returns:
- Current emptyColumnMessages value. Default value is null
 
- 
setFieldsAn array of field objects, specifying the order, layout, dynamic calculation, and sorting behavior of each field in each column in the columnTree object. In ColumnTrees, the fields array specifies sub-columns within each main column. Each field in the fields array is a ListGridField object.If dataSourceis also set, this value acts as a set of overrides as explained inDataBoundComponent.fields.- Parameters:
- fields- New fields value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
setFirstColumnTitleA title for the leftmost column ifshowHeadersis set (the remaining columns have their titles derived from the item selected in the column to the left). Ignored ifshowHeadersis not set.
 Note: if you do not want a heading for the first column leave this attribute at its default value of " ". If you set it to null or the empty string, Smart GWT will fall back to displaying the field's name in the heading.- Parameters:
- firstColumnTitle- New firstColumnTitle value. Default value is " "
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFirstColumnTitleA title for the leftmost column ifshowHeadersis set (the remaining columns have their titles derived from the item selected in the column to the left). Ignored ifshowHeadersis not set.
 Note: if you do not want a heading for the first column leave this attribute at its default value of " ". If you set it to null or the empty string, Smart GWT will fall back to displaying the field's name in the heading.- Returns:
- Current firstColumnTitle value. Default value is " "
 
- 
setFixedColumnsEnables fixed columns mode. All columns are created in advance instead of as navigation occurs.- Parameters:
- fixedColumns- New fixedColumns value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getFixedColumnsEnables fixed columns mode. All columns are created in advance instead of as navigation occurs.- Returns:
- Current fixedColumns value. Default value is null
 
- 
setFolderIconThe URL of the base icon for all folder nodes in this columnTree. Note that this URL will haveopenIconSuffixorclosedIconSuffixappended to indicate state changes if appropriate - see documentation onshowOpenIcons- Parameters:
- folderIcon- New folderIcon value. Default value is "[SKIN]folder.png"
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getFolderIconThe URL of the base icon for all folder nodes in this columnTree. Note that this URL will haveopenIconSuffixorclosedIconSuffixappended to indicate state changes if appropriate - see documentation onshowOpenIcons- Returns:
- Current folderIcon value. Default value is "[SKIN]folder.png"
- See Also:
 
- 
setLoadDataOnDemandFor databound columnTree instances, should the entire tree of data be loaded on initial fetch, or should each column be loaded as needed. If unset the default ResultTree.loadDataOnDemand setting will be used.- Parameters:
- loadDataOnDemand- New loadDataOnDemand value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getLoadDataOnDemandFor databound columnTree instances, should the entire tree of data be loaded on initial fetch, or should each column be loaded as needed. If unset the default ResultTree.loadDataOnDemand setting will be used.- Returns:
- Current loadDataOnDemand value. Default value is null
- See Also:
 
- 
setNodeIconThe filename of the default icon for all leaf nodes in this grid. To specify a custom image for an individual node, set thecustomIconPropertydirectly on the node.See TreeGrid.showNodeIconsandTreeGrid.showFolderIconsfor details on suppressing display of icons- Parameters:
- nodeIcon- New nodeIcon value. Default value is "[SKIN]file.png"
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getNodeIconThe filename of the default icon for all leaf nodes in this grid. To specify a custom image for an individual node, set thecustomIconPropertydirectly on the node.See TreeGrid.showNodeIconsandTreeGrid.showFolderIconsfor details on suppressing display of icons- Returns:
- Current nodeIcon value. Default value is "[SKIN]file.png"
- See Also:
 
- 
setOpenIconSuffixIfshowOpenIconsis true, this suffix will be appended to thefolderIconfor open folders in this grid.- Parameters:
- openIconSuffix- New openIconSuffix value. Default value is "open"
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getOpenIconSuffixIfshowOpenIconsis true, this suffix will be appended to thefolderIconfor open folders in this grid.- Returns:
- Current openIconSuffix value. Default value is "open"
 
- 
setShowCustomIconOpenShould folder nodes showing custom icons (set via thecustomIconProperty), show open state images when the folder is opened. If true, theopenIconSuffixwill be appended to the image URL (so"customFolder.gif"might be replaced with"customFolder_open.gif").
 Note that theclosedIconSuffixis never appended to custom folder icons.
 Can be overridden at the node level via the default propertyTreeNode.showOpenIconand that property can be renamed viaTreeGrid.customIconOpenProperty.Note : This is an advanced setting - Parameters:
- showCustomIconOpen- New showCustomIconOpen value. Default value is false
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getShowCustomIconOpenShould folder nodes showing custom icons (set via thecustomIconProperty), show open state images when the folder is opened. If true, theopenIconSuffixwill be appended to the image URL (so"customFolder.gif"might be replaced with"customFolder_open.gif").
 Note that theclosedIconSuffixis never appended to custom folder icons.
 Can be overridden at the node level via the default propertyTreeNode.showOpenIconand that property can be renamed viaTreeGrid.customIconOpenProperty.- Returns:
- Current showCustomIconOpen value. Default value is false
 
- 
setShowDetailFieldsWhether to show fields markeddetail:truewhen a DataBoundComponent is given a DataSource but nocomponent.fields.The detailproperty is used on DataSource fields to mark fields that shouldn't appear by default in a view that tries to show many records in a small space.- Specified by:
- setShowDetailFieldsin interface- DataBoundComponent
- Parameters:
- showDetailFields- New showDetailFields value. Default value is true
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getShowDetailFieldsWhether to show fields markeddetail:truewhen a DataBoundComponent is given a DataSource but nocomponent.fields.The detailproperty is used on DataSource fields to mark fields that shouldn't appear by default in a view that tries to show many records in a small space.- Specified by:
- getShowDetailFieldsin interface- DataBoundComponent
- Returns:
- Current showDetailFields value. Default value is true
- See Also:
 
- 
setShowHeadersIf set, each column in the ColumnTree will show a header with the title of the selected node from the column to the left.- Parameters:
- showHeaders- New showHeaders value. Default value is false
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowHeadersIf set, each column in the ColumnTree will show a header with the title of the selected node from the column to the left.- Returns:
- Current showHeaders value. Default value is false
 
- 
setShowMultipleColumnsWhen set to false, only displays a single column at a time, showing a slide animation when moving between columns.- Parameters:
- showMultipleColumns- New showMultipleColumns value. Default value is null
- Returns:
- ColumnTreeinstance, for chaining setter calls
 
- 
getShowMultipleColumnsWhen set to false, only displays a single column at a time, showing a slide animation when moving between columns.- Returns:
- Current showMultipleColumns value. Default value is null
 
- 
setShowNodeCountIf set, andshowHeadersis also set, each column's header will show a count of the number of nodes in that column- Parameters:
- showNodeCount- New showNodeCount value. Default value is false
- Returns:
- ColumnTreeinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowNodeCountIf set, andshowHeadersis also set, each column's header will show a count of the number of nodes in that column- Returns:
- Current showNodeCount value. Default value is false
 
- 
setShowOpenIconsIf true, show a different icon foropenfolders than closed folders. This is achieved by appending theopenIconSuffixonto thefolderIconURL [for example"[SKIN]/folder.gif"might be replaced by"[SKIN]/folder_open.gif".
 Note If this property is set tofalsethe same icon is shown for open folders as for closed folders, unless a custom folder icon was specified. This will be determined byfolderIconplus theclosedIconSuffix.- Parameters:
- showOpenIcons- New showOpenIcons value. Default value is true
- Returns:
- ColumnTreeinstance, for chaining setter calls
- See Also:
 
- 
getShowOpenIconsIf true, show a different icon foropenfolders than closed folders. This is achieved by appending theopenIconSuffixonto thefolderIconURL [for example"[SKIN]/folder.gif"might be replaced by"[SKIN]/folder_open.gif".
 Note If this property is set tofalsethe same icon is shown for open folders as for closed folders, unless a custom folder icon was specified. This will be determined byfolderIconplus theclosedIconSuffix.- Returns:
- Current showOpenIcons value. Default value is true
- See Also:
 
- 
folderDropProcess a drop of one or more nodes on a TreeGrid folder.
 Note: SeeTreeGridDropfor an overview of TreeGrid drag and drop behavior. Add logic in your drop handler to perform custom drop behaviors; to suppress the built-in behavior described below, useevent.cancel()The default behavior is to simply delegate to the transferNodes()method; thus, the correct way to perform a programmatic folder drop, with all the built-in behaviors described below, is to calltransferNodes()If this is a self-drop, nodes are simply reordered. An "update" operation will be submitted to update the parentIdfield of the moved node(s).For a drop from another widget, TreeGrid.transferDragData()is called which, depending on thedragDataActionspecified on the source widget, may either remove the source nodes from the original list (dragDataAction:"move") or just provide a copy to this tree (dragDataAction:"copy").In either case the new row(s) appear in the folderat theindexspecified by the arguments of the same name.If this grid is databound, the new nodes will be added to the dataset by calling DataSource.addData(). Further, if the new nodes were dragged from another databound component, andaddDropValuesis true,getDropValueswill be called for every item being dropped.As a special case, if the sourceWidgetis also databound and aforeignKeyrelationship is declared from thesourceWidget's DataSource to this TreeGrid's DataSource, the interaction will be treated as a "drag recategorization" use case such as files being placed in folders, employees being assigned to teams, etc. "update" DSRequests will be submitted that change the foreignKey field in the dropped records to point to the tree folder that was the target of the drop. In this case no change will be made to the Tree data as such, only to the dropped records.For multi-record drops, Queuing is automatically used to combine all DSRequests into a single HTTP Request (see QuickStart Guide, Server Framework chapter). This allows the server to persist all changes caused by the drop in a single transaction (and this is automatically done when using the built-in server DataSources with Power Edition and above). If these default persistence behaviors are undesirable, use event.cancel(), then implement your own behavior, typically by using grid.updateData() or addData() to add new records.NOTE: the records you receive in this event are the actual Records from the source component. Use DataSource.copyRecords()to create a copy before modifying the records or using them with updateData() or addData().- Parameters:
- nodes- List of nodes being dropped
- folder- The folder being dropped on
- index- Within the folder being dropped on, the index at which the drop is occurring. Only passed if- canReorderRecordsis true.
- sourceWidget- The component that is the source of the nodes (where the nodes were dragged from)
- See Also:
 
- 
getColumnTitleReturns the title to show for the header of indicated column. Only called ifshouldShowHeader()returns true for this column.By default, returns firstColumnTitlefor the first column, and for subsequent columns, the result ofthis.data.getTitle()called on thenodepassed to this function.- Parameters:
- node- parent node for the nodes to be shown in the column
- colNum- index of the column
 
- 
getRecordRetrieve a record by index.If colNumis passed, returns the record found in that column at that index, or null if the column doesn't exist or the index is too high.With no colNumparameter, a record's index is it's position counting from the first record of the first column and including all records in each column. Note that both index and colNum are zero-based - so the first column is column 0, not column 1.- Parameters:
- index- index of record to return.
- Returns:
- node at the specified index
 
- 
getRecordRetrieve a record by index.If colNumis passed, returns the record found in that column at that index, or null if the column doesn't exist or the index is too high.With no colNumparameter, a record's index is it's position counting from the first record of the first column and including all records in each column. Note that both index and colNum are zero-based - so the first column is column 0, not column 1.- Parameters:
- index- index of record to return.
- colNum- optional index of the column
- Returns:
- node at the specified index
 
- 
getSelectedRecordGet the selected record, that is, the parent of the nodes in the rightmost visible column.This is generally the most recently clicked node unless programmatic navigation has taken place. If only the first column is showing, the root node is returned (which can be detected via Tree.isRoot()).- Returns:
- the selected record
 
- 
shouldShowHeaderWhether the indicated column should show a header. Returns this.showHeaders by default, override for different behavior.- Parameters:
- node- parent node for the nodes to be shown in the column
- colNum- index of the column
 
- 
transferNodesTransfer a list ofTreeNodes within this treeGrid or from from some other component (does not have to be a databound component) into this component. This method is only applicable to list-type components, such aslistGrid,treeGridortileGrid. Please see the paragraph below for special rules concerningmulti-link trees.This method implements the automatic drag-copy and drag-move behavior and calling it is equivalent to completing a drag and drop of the nodes(the defaultfolderDrop()implementation simply callstransferNodes())Note that this method is asynchronous - it may need to perform server turnarounds to prevent duplicates in the target component's data. If you wish to be notified when the transfer process has completed, you can either pass the optional callback to this method or implement the DataBoundComponent.dropComplete()method on this component.For a TreeGrid, see also transferSelectedData().Multi-link trees 
 If both the target treeGrid and thesourceWidgetfor this transfer are multi-link treeGrids, thenodesparameter must be an array ofNodeLocators rather than TreeNodes. Likewise, if the target (this) component is a multi-link treeGrid, thefolderparameter must be a NodeLocator.You can obtain a NodeLocator for a visible node occurence in a multi-link TreeGrid by calling its data model's getNodeLocator()method.- Parameters:
- nodes- Nodes to transfer to this component
- folder- The target folder (eg, of a drop interaction), for context
- index- Insert point within the target folder data for the transferred nodes
- sourceWidget- The databound or non-databound component from which the nodes are to be transferred.
- See Also:
 
- 
transferNodespublic void transferNodes(TreeNode[] nodes, TreeNode folder, Integer index, Canvas sourceWidget, String callback) Transfer a list ofTreeNodes within this treeGrid or from from some other component (does not have to be a databound component) into this component. This method is only applicable to list-type components, such aslistGrid,treeGridortileGrid. Please see the paragraph below for special rules concerningmulti-link trees.This method implements the automatic drag-copy and drag-move behavior and calling it is equivalent to completing a drag and drop of the nodes(the defaultfolderDrop()implementation simply callstransferNodes())Note that this method is asynchronous - it may need to perform server turnarounds to prevent duplicates in the target component's data. If you wish to be notified when the transfer process has completed, you can either pass the optional callback to this method or implement the DataBoundComponent.dropComplete()method on this component.For a TreeGrid, see also transferSelectedData().Multi-link trees 
 If both the target treeGrid and thesourceWidgetfor this transfer are multi-link treeGrids, thenodesparameter must be an array ofNodeLocators rather than TreeNodes. Likewise, if the target (this) component is a multi-link treeGrid, thefolderparameter must be a NodeLocator.You can obtain a NodeLocator for a visible node occurence in a multi-link TreeGrid by calling its data model's getNodeLocator()method.- Parameters:
- nodes- Nodes to transfer to this component
- folder- The target folder (eg, of a drop interaction), for context
- index- Insert point within the target folder data for the transferred nodes
- sourceWidget- The databound or non-databound component from which the nodes are to be transferred.
- callback- optional callback to be fired when the transfer process has completed. The callback will be passed a single parameter "records", the list of nodes actually transferred to this component (it is called "records" because this is logic shared with- ListGrid). See- Callback
- See Also:
 
- 
setDefaultPropertiesClass level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route. - Parameters:
- columnTreeProperties- properties that should be used as new defaults when instances of this class are created
- See Also:
 
- 
onInitprotected void onInit()
- 
onInit_ColumnTreeprotected void onInit_ColumnTree()
- 
setDropIconSuffixIfshowDropIconsis true, this suffix will be appended to thefolderIconwhen the user drop-hovers over some folder.- Parameters:
- dropIconSuffix- dropIconSuffix Default value is "drop"
 
- 
getDropIconSuffixIfshowDropIconsis true, this suffix will be appended to thefolderIconwhen the user drop-hovers over some folder.- Returns:
- String
 
- 
setShowDropIconsIf true, when the user drags a droppable target over a folder in this TreeGrid, show a different icon folder icon. This is achieved by appending thedropIconSuffixonto thefolderIconURL (for example"[SKIN]/folder.gif"may be replaced by"[SKIN]/folder_drop.gif").- Parameters:
- showDropIcons- showDropIcons Default value is true
 
- 
getShowDropIconsIf true, when the user drags a droppable target over a folder in this TreeGrid, show a different icon folder icon. This is achieved by appending thedropIconSuffixonto thefolderIconURL (for example"[SKIN]/folder.gif"may be replaced by"[SKIN]/folder_drop.gif").- Returns:
- Boolean
 
- 
deselectRecord
- 
deselectRecordpublic void deselectRecord(int record, int colNum) Deselect aRecordpassed in explicitly, or by index.Synonym for selectRecord(record, false)- Parameters:
- record- row number to deselect
- colNum- the column number
 
- 
deselectRecordspublic void deselectRecords(int[] records, int colNum) Deselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Parameters:
- records- records (or row numbers) to deselect
- colNum- the col num
 
- 
deselectRecordDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Parameters:
- records- records (or row numbers) to deselect
 
- 
deselectRecordsDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Parameters:
- records- records (or row numbers) to deselect
- colNum- the col num
 
- 
selectRecordpublic void selectRecord(int record, boolean newState, int colNum) Select/deselect aRecordpassed in explicitly, or by index.- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
- colNum- Column number
 
- 
selectRecordSelect/deselect aRecordpassed in explicitly, or by index.- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
- colNum- Column number
 
- 
selectRecordspublic void selectRecords(int[] records, boolean newState, int colNum) Select/deselect a list ofRecords passed in explicitly, or by index.- Parameters:
- records- records (or row numbers) to select
- newState- new selection state (if null, defaults to true)
- colNum- Column number
 
- 
selectRecordsSelect/deselect a list ofRecords passed in explicitly, or by index.- Parameters:
- records- records (or row numbers) to select
- newState- new selection state (if null, defaults to true)
- colNum- Column number
 
- 
getSelectionReturns the array of objects selected in the specified column of the columnTree- Parameters:
- colNum- Column within the columnTree to return the selection for
- Returns:
- (ArrayofListGridRecord) list of records, empty list if nothing selected
 
- 
selectAllRecordspublic void selectAllRecords(int colNum) Select all records in the supplied column (the first column if none is passed)

- Parameters:
- colNum- Column number
 
- 
deselectAllRecordspublic void deselectAllRecords(int colNum) Deselect all records in the supplied column (the first column if none is passed)

- Parameters:
- colNum- Column number
 
- 
anySelectedWhether at least one item is selected in the supplied column (the first column if none is passed)

- Parameters:
- colNum- Column number
- Returns:
- true == at least one item is selected in the supplied column, false == nothing at all is selected in the supplied column (note that there may be selections
 in other columns in this columnTree)
 
- 
addNodeSelectedHandlerAdd a onNodeSelected handler. Notification method fired when a node is selected. Return false to suppress default
 behavior.
- Specified by:
- addNodeSelectedHandlerin interface- HasNodeSelectedHandlers
- Parameters:
- handler- the onNodeSelected handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
setColumnPropertiesStandard set of properties to apply to each generatedcolumnin this columnTree. Developers may also overrideColumnTree.getCustomColumnPropertiesto return dynamic properties based on the node being displayed.Note : This is an advanced setting - Parameters:
- columnProperties- columnProperties Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getColumnPropertiesStandard set of properties to apply to each generatedcolumnin this columnTree. Developers may also overrideColumnTree.getColumnPropertiesto return dynamic properties based on the node being displayed.- Returns:
- "template" listGrid with attributes that will be applied to each generated column
 
- 
getCustomColumnPropertiesAdditional properties to apply to the ListGrid that will show the indicated column. Returns null by default. This method can be overridden to allow, for example, different styling, icons or row heights per column.- Parameters:
- node- parent node for the nodes to be shown in the column
- colNum- index of the column
- Returns:
- "template" listgrid with dynamically determined attributes to apply to the generated column.
 
- 
setDataSourceBind to a DataSource.Binding to a DataSource means that the component will use the DataSource to provide default data for its fields. When binding to a new DataSource, if the component has any existing "fields" or has a dataset, these will be discarded by default, since it is assumed the new DataSource may represent a completely unrelated set of objects. If the old "fields" are still relevant, pass them to setDataSource(). - Parameters:
- dataSource-
- fields-
 
- 
setDataPropertiesFor databound ColumnTrees, this attribute can be used to customize the ResultTree object created for this ColumnTree when data is fetched.- Parameters:
- resultTreeProperties- the data properties
 
- 
setDataPageSizeDescription copied from interface:DataBoundComponentWhen usingdata paging, how many records to fetch at a time. If set to a positive integer,dataPageSizewill override the defaultresultSizefor ResultSets automatically created when you callfetchData()(and similarly for theresultSizeof ResultTrees). The default of 0 means to just use the default page size of the data container.Note that regardless of the dataPageSizesetting, a component will always fetch all of data that it needs to draw. Settings such asshowAllRecords:true,drawAllMaxCellsanddrawAheadRatiocan cause more rows than the configureddataPageSizeto be fetched.- Specified by:
- setDataPageSizein interface- DataBoundComponent
- Parameters:
- dataPageSize- dataPageSize Default value is 0
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getDataPageSizepublic int getDataPageSize()Description copied from interface:DataBoundComponentWhen usingdata paging, how many records to fetch at a time. If set to a positive integer,dataPageSizewill override the defaultresultSizefor ResultSets automatically created when you callfetchData()(and similarly for theresultSizeof ResultTrees). The default of 0 means to just use the default page size of the data container.Note that regardless of the dataPageSizesetting, a component will always fetch all of data that it needs to draw. Settings such asshowAllRecords:true,drawAllMaxCellsanddrawAheadRatiocan cause more rows than the configureddataPageSizeto be fetched.- Specified by:
- getDataPageSizein interface- DataBoundComponent
- Returns:
- int
- See Also:
 
- 
setUseAllDataSourceFieldsDescription copied from interface:DataBoundComponentIf true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.

 If component.fieldscontains fields that are not found in the DataSource,
 they will be shown after the most recently referred to DataSource field. If the new
 fields appear first, they will be shown first.- Specified by:
- setUseAllDataSourceFieldsin interface- DataBoundComponent
- Parameters:
- useAllDataSourceFields- useAllDataSourceFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getUseAllDataSourceFieldsDescription copied from interface:DataBoundComponentIf true, the set of fields given by the "default binding" (see 
fields) is used, with any fields specified in
component.fieldsacting as overrides that can suppress or modify the
 display of individual fields, without having to list the entire set of fields that
 should be shown.

 If component.fieldscontains fields that are not found in the DataSource,
 they will be shown after the most recently referred to DataSource field. If the new
 fields appear first, they will be shown first.- Specified by:
- getUseAllDataSourceFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setSparseFieldStateDescription copied from interface:DataBoundComponentIf true,ListGrid.getFieldState()andListGrid.setFieldState(java.lang.String)will omit state information for hidden fields by default.- Specified by:
- setSparseFieldStatein interface- DataBoundComponent
- Parameters:
- sparseFieldState- sparseFieldState Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getSparseFieldStateDescription copied from interface:DataBoundComponentIf true,ListGrid.getFieldState()andListGrid.setFieldState(java.lang.String)will omit state information for hidden fields by default.- Specified by:
- getSparseFieldStatein interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setShowHiddenFieldsDescription copied from interface:DataBoundComponentWhether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 The hiddenproperty is used on DataSource fields to mark fields that are
 never of meaning to an end user.- Specified by:
- setShowHiddenFieldsin interface- DataBoundComponent
- Parameters:
- showHiddenFields- showHiddenFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getShowHiddenFieldsDescription copied from interface:DataBoundComponentWhether to show fields markedhidden:truewhen a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 The hiddenproperty is used on DataSource fields to mark fields that are
 never of meaning to an end user.- Specified by:
- getShowHiddenFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setShowComplexFieldsDescription copied from interface:DataBoundComponentWhether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 If true, the component will show fields that declare a complex type, for example, a
 field 'shippingAddress' that declares type 'Address', where 'Address' is the ID of a
 DataSource that declares the fields of a shipping address (city, street name, etc).
 
 Such fields may need custom formatters or editors in order to create a usable interface,
 for example, an Address field in a ListGrid might use a custom formatter to combine the
 relevant fields of an address into one column, and might use a pop-up dialog for
 editing. Note : This is an advanced setting - Specified by:
- setShowComplexFieldsin interface- DataBoundComponent
- Parameters:
- showComplexFields- showComplexFields Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getShowComplexFieldsDescription copied from interface:DataBoundComponentWhether to show fields of non-atomic types when a DataBoundComponent is given a
 DataSource but nocomponent.fields.

 If true, the component will show fields that declare a complex type, for example, a
 field 'shippingAddress' that declares type 'Address', where 'Address' is the ID of a
 DataSource that declares the fields of a shipping address (city, street name, etc).
 
 Such fields may need custom formatters or editors in order to create a usable interface,
 for example, an Address field in a ListGrid might use a custom formatter to combine the
 relevant fields of an address into one column, and might use a pop-up dialog for
 editing. - Specified by:
- getShowComplexFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setFetchOperationDescription copied from interface:DataBoundComponentOperation ID this component should use when performing fetch operations.- Specified by:
- setFetchOperationin interface- DataBoundComponent
- Parameters:
- fetchOperation- fetchOperation Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getFetchOperationDescription copied from interface:DataBoundComponentOperation ID this component should use when performing fetch operations.- Specified by:
- getFetchOperationin interface- DataBoundComponent
- Returns:
- String
 
- 
setUpdateOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing update operations.- Specified by:
- setUpdateOperationin interface- DataBoundComponent
- Parameters:
- updateOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getUpdateOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing update operations.- Specified by:
- getUpdateOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setAddOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing add operations.- Specified by:
- setAddOperationin interface- DataBoundComponent
- Parameters:
- addOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getAddOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing add operations.- Specified by:
- getAddOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setRemoveOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing remove operations.- Specified by:
- setRemoveOperationin interface- DataBoundComponent
- Parameters:
- removeOperation- Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getRemoveOperationDescription copied from interface:DataBoundComponentoperationIdthis component should use when performing remove operations.- Specified by:
- getRemoveOperationin interface- DataBoundComponent
- Returns:
- String
- See Also:
 
- 
setExportFieldsDescription copied from interface:DataBoundComponentThe list of field-names to export. If provided, the field-list in the exported output is 
 limited and sorted as per the list.

 If exportFields is not provided, the exported output includes all visible fields 
 from this component, sorted as they appear. - Specified by:
- setExportFieldsin interface- DataBoundComponent
- Parameters:
- exportFields- exportFields Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportFieldsDescription copied from interface:DataBoundComponentThe list of field-names to export. If provided, the field-list in the exported output is 
 limited and sorted as per the list.

 If exportFields is not provided, the exported output includes all visible fields 
 from this component, sorted as they appear. - Specified by:
- getExportFieldsin interface- DataBoundComponent
- Returns:
- the list of field-names to export.
 
- 
setExportAllDescription copied from interface:DataBoundComponentSetting exportAll to true prevents the component from passing its list of fields to the 
 export call. The result is the export of all visible fields fromfields.

 If exportAll is false, an export operation will first consider 
 exportFields, if it's set, and fall back on all visible fields from
fieldsotherwise.- Specified by:
- setExportAllin interface- DataBoundComponent
- Parameters:
- exportAll- exportAll Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportAllDescription copied from interface:DataBoundComponentSetting exportAll to true prevents the component from passing its list of fields to the 
 export call. The result is the export of all visible fields fromfields.

 If exportAll is false, an export operation will first consider 
 exportFields, if it's set, and fall back on all visible fields from
fieldsotherwise.- Specified by:
- getExportAllin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setExportIncludeSummariesDescription copied from interface:DataBoundComponentIf Summary rows exist for this component, whether to include them when exporting client data. Defaults to true if not set- Specified by:
- setExportIncludeSummariesin interface- DataBoundComponent
- Parameters:
- exportIncludeSummaries- exportIncludeSummaries Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getExportIncludeSummariesDescription copied from interface:DataBoundComponentIf Summary rows exist for this component, whether to include them when exporting client data. Defaults to true if not set- Specified by:
- getExportIncludeSummariesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setPreventDuplicatesDescription copied from interface:DataBoundComponentIf set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent). When a duplicate transfer is detected,
 a dialog will appear showing theduplicateDragMessage.

 If the component either does not have a DataSourceor has a DataSource with no
primaryKeydeclared, duplicate checking is off by
 default. If duplicate checking is enabled, it looks for an existing record in the dataset
 that has all of the properties of the dragged record, and considers that a duplicate.

 For DragDataAction:"copy" where the target DataSource is related to the source
 DataSource by foreignKey, a duplicate means that the target list, as filtered by the current
 criteria, already has a record whose value for the foreignKey field matches the
 primaryKey of the record being transferred.

 For example, consider dragging "employees" to "teams", where "teams" has a field
 "teams.employeeId" which is a foreignKey pointing to "employees.id", and the target
 grid has search criteria causing it to show all the members of one team. A duplicate -
 adding an employee to the same team twice - is when the target grid's dataset contains an
 record with "employeeId" matching the "id" field of the dropped employee. - Specified by:
- setPreventDuplicatesin interface- DataBoundComponent
- Parameters:
- preventDuplicates- preventDuplicates Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getPreventDuplicatesDescription copied from interface:DataBoundComponentIf set, detect and prevent duplicate records from being transferred to this component, either via
 drag and drop or viaDataBoundComponent.transferSelectedData(com.smartgwt.client.widgets.DataBoundComponent). When a duplicate transfer is detected,
 a dialog will appear showing theduplicateDragMessage.

 If the component either does not have a DataSourceor has a DataSource with no
primaryKeydeclared, duplicate checking is off by
 default. If duplicate checking is enabled, it looks for an existing record in the dataset
 that has all of the properties of the dragged record, and considers that a duplicate.

 For DragDataAction:"copy" where the target DataSource is related to the source
 DataSource by foreignKey, a duplicate means that the target list, as filtered by the current
 criteria, already has a record whose value for the foreignKey field matches the
 primaryKey of the record being transferred.

 For example, consider dragging "employees" to "teams", where "teams" has a field
 "teams.employeeId" which is a foreignKey pointing to "employees.id", and the target
 grid has search criteria causing it to show all the members of one team. A duplicate -
 adding an employee to the same team twice - is when the target grid's dataset contains an
 record with "employeeId" matching the "id" field of the dropped employee. - Specified by:
- getPreventDuplicatesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setDuplicateDragMessageDescription copied from interface:DataBoundComponentMessage to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled. If set to null, duplicates will not be reported and the dragged duplicates will not be saved.- Specified by:
- setDuplicateDragMessagein interface- DataBoundComponent
- Parameters:
- duplicateDragMessage- duplicateDragMessage Default value is "Duplicates not allowed"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getDuplicateDragMessageDescription copied from interface:DataBoundComponentMessage to show when a user attempts to transfer duplicate records into this component, and
preventDuplicatesis enabled. If set to null, duplicates will not be reported and the dragged duplicates will not be saved.- Specified by:
- getDuplicateDragMessagein interface- DataBoundComponent
- Returns:
- String
 
- 
setAddDropValuesDescription copied from interface:DataBoundComponentIndicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key. "Drop values" are properties of the dropped item that you wish to change (and persist) as a result of the item being dropped on this grid.If this value is true and this component is databound, DataBoundComponent.getDropValues()will be called for every databound item dropped on this grid, and an update performed on the item- Specified by:
- setAddDropValuesin interface- DataBoundComponent
- Parameters:
- addDropValues- addDropValues Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddDropValuesDescription copied from interface:DataBoundComponentIndicates whether to add "drop values" to items dropped on this component, if both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key. "Drop values" are properties of the dropped item that you wish to change (and persist) as a result of the item being dropped on this grid.If this value is true and this component is databound, DataBoundComponent.getDropValues()will be called for every databound item dropped on this grid, and an update performed on the item- Specified by:
- getAddDropValuesin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setDropValuesDescription copied from interface:DataBoundComponentWhen an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.If this property is not defined, Smart GWT defaults to returning the selection criteria currently in place for this component. Thus, any databound items (for example, rows from other grids bound to the same DataSource) dropped on the grid will, by default, be subjected to an update that makes them conform to the grid's current filter criteria. Note : This is an advanced setting - Specified by:
- setDropValuesin interface- DataBoundComponent
- Parameters:
- dropValues- dropValues Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDropValuesDescription copied from interface:DataBoundComponentWhen an item is dropped on this component, andaddDropValuesis true and both the source and target widgets are databound, either to the same DataSource or to different DataSources that are related via a foreign key, this object provides the "drop values" that Smart GWT will apply to the dropped object before updating it.If this property is not defined, Smart GWT defaults to returning the selection criteria currently in place for this component. Thus, any databound items (for example, rows from other grids bound to the same DataSource) dropped on the grid will, by default, be subjected to an update that makes them conform to the grid's current filter criteria. Note : This is an advanced setting - Specified by:
- getDropValuesin interface- DataBoundComponent
- Returns:
- Returns the "drop values" to apply to a record dropped on this component prior to update.  Only
 applicable to databound components - see dropValuesfor more details. If multiple records 
 are being dropped, this method is called for each of them in turn.

 This method returns the following:
 - 
 
- Nothing, if addDropValuesis false 

- dropValues, if that property is set. If the component's criteria object is applicable (as explained
 in the next item), it is merged into dropValues, with properties in dropValues taking precedence. 

- The component's criteria object, if the most recent textMatchStyle for the component was "exact" 
 and it is simple criteria (ie, not an AdvancedCriteria object) 

- Otherwise nothing 

 
 You can override this method if you need more complex setting of drop values than can be 
 provided by simply supplying a dropValues object.
 
 
- Nothing, if 
 
- 
setProgressiveLoadingIndicates whether or not this component will load its dataprogressively- Parameters:
- progressiveLoading-
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- See Also:
 
- 
getProgressiveLoadingIndicates whether or not this component will load its dataprogressively- Returns:
- See Also:
 
- 
setUseFlatFieldsDescription copied from interface:DataBoundComponentTheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding. 

 useFlatFieldsis typically used with imported metadata, such as 
XMLTools.loadXMLSchema(java.lang.String, com.smartgwt.client.data.XSDLoadCallback)from a 
XMLTools.loadWSDL(java.lang.String, com.smartgwt.client.data.WSDLLoadCallback), as a means of eliminating levels of XML
 nesting that aren't meaningful in a user interface, without the cumbersome and fragile
 process of mapping form fields to XML structures.

 For example, having called WebService.getInputDS(java.lang.String)to retrieve the input message
 schema for a web service operation whose input message looks like this:

 <FindServices>
 <searchFor>search text</searchFor>
 <Options>
 <caseSensitive>false</caseSensitive>
 </Options>
 <IncludeInSearch>
 <serviceName>true</serviceName>
 <documentation>true</documentation>
 <keywords>true</keywords>
 </IncludeInSearch>
 </FindServices>
 
 SettinguseFlatFieldson aDynamicFormthat is bound to this input
 message schema would result in 5FormItemreflecting the 5 simple type
 fields in the message.

 For this form, the result of DynamicForm.getValues()might look
 like:

 {
 searchFor: "search text",
 caseSensitive: false,
 serviceName: true,
 documentation : true,
 keywords : true
 }
 When contacting aWebService, these values can be automatically
 mapped to the structure of the input message for a web service operation by setting
 {@link com.smartgwt.client..WSRequest#getUseFlatFields useFlatFields} (for use withWebService.callOperation(java.lang.String, java.util.Map, java.lang.String, com.smartgwt.client.data.WebServiceCallback)) or by setting
useFlatFields(for use with aDataSourcethat is
'bound to a WSDL web service'via
wsOperation). 

 Using these two facilities in conjunction (component.useFlatFields and
 request.useFlatFields) allows gratuitous nesting to be consistently bypassed in both the user
 presentation and when providing the data for XML messages.
 
 You can also set useFlatFieldsto automatically enable 
 "flattened" XML serialization (request.useFlatFields) for all DataSource requests of a
 particular operationType.

 Note that useFlatFieldsis not generally recommended for use with structures
 where multiple simple type fields exist with the same name, however if used with such a
 structure, the first field to use a given name wins. "first" means the first field
 encountered in a depth first search. "wins" means only the first field will be present as a
 field when data binding.- Specified by:
- setUseFlatFieldsin interface- DataBoundComponent
- Parameters:
- useFlatFields- useFlatFields Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getUseFlatFieldsDescription copied from interface:DataBoundComponentTheuseFlatFieldsflag causes all simple type fields anywhere in a nested
 set of DataSources to be exposed as a flat list for form binding. 

 useFlatFieldsis typically used with imported metadata, such as 
XMLTools.loadXMLSchema(java.lang.String, com.smartgwt.client.data.XSDLoadCallback)from a 
XMLTools.loadWSDL(java.lang.String, com.smartgwt.client.data.WSDLLoadCallback), as a means of eliminating levels of XML
 nesting that aren't meaningful in a user interface, without the cumbersome and fragile
 process of mapping form fields to XML structures.

 For example, having called WebService.getInputDS(java.lang.String)to retrieve the input message
 schema for a web service operation whose input message looks like this:

 <FindServices>
 <searchFor>search text</searchFor>
 <Options>
 <caseSensitive>false</caseSensitive>
 </Options>
 <IncludeInSearch>
 <serviceName>true</serviceName>
 <documentation>true</documentation>
 <keywords>true</keywords>
 </IncludeInSearch>
 </FindServices>
 
 SettinguseFlatFieldson aDynamicFormthat is bound to this input
 message schema would result in 5FormItemreflecting the 5 simple type
 fields in the message.

 For this form, the result of DynamicForm.getValues()might look
 like:

 {
 searchFor: "search text",
 caseSensitive: false,
 serviceName: true,
 documentation : true,
 keywords : true
 }
 When contacting aWebService, these values can be automatically
 mapped to the structure of the input message for a web service operation by setting
 {@link com.smartgwt.client..WSRequest#getUseFlatFields useFlatFields} (for use withWebService.callOperation(java.lang.String, java.util.Map, java.lang.String, com.smartgwt.client.data.WebServiceCallback)) or by setting
useFlatFields(for use with aDataSourcethat is
'bound to a WSDL web service'via
wsOperation). 

 Using these two facilities in conjunction (component.useFlatFields and
 request.useFlatFields) allows gratuitous nesting to be consistently bypassed in both the user
 presentation and when providing the data for XML messages.
 
 You can also set useFlatFieldsto automatically enable 
 "flattened" XML serialization (request.useFlatFields) for all DataSource requests of a
 particular operationType.

 Note that useFlatFieldsis not generally recommended for use with structures
 where multiple simple type fields exist with the same name, however if used with such a
 structure, the first field to use a given name wins. "first" means the first field
 encountered in a depth first search. "wins" means only the first field will be present as a
 field when data binding.- Specified by:
- getUseFlatFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setHilitePropertyDescription copied from interface:DataBoundComponentMarker that can be set on a record to flag that record as hilited. Should be set to a value
 that matches {@link com.smartgwt.client..Hilite#getId id} for a hilite defined on this component.- Specified by:
- setHilitePropertyin interface- DataBoundComponent
- Parameters:
- hiliteProperty- hiliteProperty Default value is "_hilite"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getHilitePropertyDescription copied from interface:DataBoundComponentMarker that can be set on a record to flag that record as hilited. Should be set to a value
 that matches {@link com.smartgwt.client..Hilite#getId id} for a hilite defined on this component.- Specified by:
- getHilitePropertyin interface- DataBoundComponent
- Returns:
- String
 
- 
editFieldspublic void editFields()Shows a FieldPicker interface allowing end-users to rearrange the order and visibiility of the fields in the associated DataBoundComponent.
- 
editHilitespublic void editHilites()Description copied from interface:DataBoundComponentShows a HiliteEditor interface allowing end-users to edit the data-hilites currently in use by this DataBoundComponent.- Specified by:
- editHilitesin interface- DataBoundComponent
 
- 
getHiliteStateDescription copied from interface:DataBoundComponentGet the current hilites encoded as a String, for saving.- Specified by:
- getHiliteStatein interface- DataBoundComponent
- Returns:
- the hilite state
 
- 
setHiliteStateDescription copied from interface:DataBoundComponentSet the current hilites based on a hiliteState String previously returned from getHilitesState.- Specified by:
- setHiliteStatein interface- DataBoundComponent
- Parameters:
- hiliteState- hilites state encoded as a String
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setHilitesDescription copied from interface:DataBoundComponentAccepts an array of hilite objects and applies them to this DataBoundComponent. See alsogetHilitesfor a method of retrieving the hilite array for storage, including hilites manually added by the user.NOTE: This is only supported on ListGridfor now.- Specified by:
- setHilitesin interface- DataBoundComponent
- Parameters:
- hilites- array of hilite objects
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getHilitesDescription copied from interface:DataBoundComponentReturn the set of hilite-objects currently applied to this DataBoundComponent. These can be saved for storage and then restored to a component later via setHilites().- Specified by:
- getHilitesin interface- DataBoundComponent
- Returns:
- array of hilite objects
 
- 
setDragDataActionDescription copied from interface:DataBoundComponentIndicates what to do with data dragged into another DataBoundComponent. See
 DragDataAction type for details.- Specified by:
- setDragDataActionin interface- DataBoundComponent
- Parameters:
- dragDataAction- dragDataAction Default value is Canvas.MOVE
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDragDataActionDescription copied from interface:DataBoundComponentIndicates what to do with data dragged into another DataBoundComponent. See
 DragDataAction type for details.- Specified by:
- getDragDataActionin interface- DataBoundComponent
- Returns:
- DragDataAction
 
- 
setDragTrackerStyleDescription copied from interface:DataBoundComponentCSS Style to apply to the drag tracker when dragging occurs on this component.- Specified by:
- setDragTrackerStylein interface- DataBoundComponent
- Parameters:
- dragTrackerStyle- dragTrackerStyle Default value is "gridDragTracker"
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getDragTrackerStyleDescription copied from interface:DataBoundComponentCSS Style to apply to the drag tracker when dragging occurs on this component.- Specified by:
- getDragTrackerStylein interface- DataBoundComponent
- Returns:
- String
 
- 
setCanAddFormulaFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.

 User-added formula fields can be persisted via ListGrid.getFieldState()and 
ListGrid.setFieldState(java.lang.String).- Specified by:
- setCanAddFormulaFieldsin interface- DataBoundComponent
- Parameters:
- canAddFormulaFields- canAddFormulaFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
addSummaryFieldpublic void addSummaryField()Description copied from interface:DataBoundComponentConvenience method to display a {@link com.smartgwt.client..SummaryBuilder} to create a new Summary Field. This 
 is equivalent to callingDataBoundComponentGen#editSummaryFieldwith 
 no parameter.

- Specified by:
- addSummaryFieldin interface- DataBoundComponent
 
- 
addFormulaFieldpublic void addFormulaField()Description copied from interface:DataBoundComponentConvenience method to display a {@link com.smartgwt.client..FormulaBuilder} to create a new Formula Field. This 
 is equivalent to callingDataBoundComponentGen#editFormulaFieldwith 
 no parameter.

- Specified by:
- addFormulaFieldin interface- DataBoundComponent
 
- 
getCanAddFormulaFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 field based on values present in other fields, using the {@link com.smartgwt.client..FormulaBuilder}.

 User-added formula fields can be persisted via ListGrid.getFieldState()and 
ListGrid.setFieldState(java.lang.String).- Specified by:
- getCanAddFormulaFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setAddFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- setAddFormulaFieldTextin interface- DataBoundComponent
- Parameters:
- addFormulaFieldText- addFormulaFieldText Default value is "Add formula column..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- getAddFormulaFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setEditFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit a formula field- Specified by:
- setEditFormulaFieldTextin interface- DataBoundComponent
- Parameters:
- editFormulaFieldText- editFormulaFieldText Default value is "Edit formula..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getEditFormulaFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit a formula field- Specified by:
- getEditFormulaFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setCanAddSummaryFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.

 User-added summary fields can be persisted via ListGrid.getFieldState()and 
ListGrid.setFieldState(java.lang.String).- Specified by:
- setCanAddSummaryFieldsin interface- DataBoundComponent
- Parameters:
- canAddSummaryFields- canAddSummaryFields Default value is false
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getCanAddSummaryFieldsDescription copied from interface:DataBoundComponentAdds an item to the header context menu allowing users to launch a dialog to define a new
 text field that can contain both user-defined text and the formatted values present in other 
 fields, using the {@link com.smartgwt.client..SummaryBuilder}.

 User-added summary fields can be persisted via ListGrid.getFieldState()and 
ListGrid.setFieldState(java.lang.String).- Specified by:
- getCanAddSummaryFieldsin interface- DataBoundComponent
- Returns:
- Boolean
 
- 
setAddSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- setAddSummaryFieldTextin interface- DataBoundComponent
- Parameters:
- addSummaryFieldText- addSummaryFieldText Default value is "Add summary column..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getAddSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to add a formula field- Specified by:
- getAddSummaryFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setEditSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit the formatter for a field- Specified by:
- setEditSummaryFieldTextin interface- DataBoundComponent
- Parameters:
- editSummaryFieldText- editSummaryFieldText Default value is "Edit summary format..."
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getEditSummaryFieldTextDescription copied from interface:DataBoundComponentText for a menu item allowing users to edit the formatter for a field- Specified by:
- getEditSummaryFieldTextin interface- DataBoundComponent
- Returns:
- String
 
- 
setSavedSearchIdDescription copied from interface:DataBoundComponentOptional identifier for saved searches that should be applied to this component.By default SavedSearchesare associated with a component via itslocal IDandDataSource ID. This property allows developers to override this behavior and explicitly associate a component with a set of saved searches. This can provide a couple of benefits:
 Firstly this ensures that saved searches will be unambiguously associated with the particular component even if the page changes such that a stored minimal locator would no longer applied to the component, without requiring an explicitCanvas.ID.
 Secondly this allows the same set of saved searches to be applied to more than one component on a page. This may be valueable for cases where the same information from the same dataSource is presented to users in multiple places.Note: This is an advanced setting. - Specified by:
- setSavedSearchIdin interface- DataBoundComponent
- Parameters:
- savedSearchId- New savedSearchId value. Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getSavedSearchIdDescription copied from interface:DataBoundComponentOptional identifier for saved searches that should be applied to this component.By default SavedSearchesare associated with a component via itslocal IDandDataSource ID. This property allows developers to override this behavior and explicitly associate a component with a set of saved searches. This can provide a couple of benefits:
 Firstly this ensures that saved searches will be unambiguously associated with the particular component even if the page changes such that a stored minimal locator would no longer applied to the component, without requiring an explicitCanvas.ID.
 Secondly this allows the same set of saved searches to be applied to more than one component on a page. This may be valueable for cases where the same information from the same dataSource is presented to users in multiple places.- Specified by:
- getSavedSearchIdin interface- DataBoundComponent
- Returns:
- Current savedSearchId value. Default value is null
 
- 
setShowSavedSearchesByDSpublic ColumnTree setShowSavedSearchesByDS(boolean showSavedSearchesByDS) throws IllegalStateException Description copied from interface:DataBoundComponentWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided. If this property is true, then when the DataSource is changed, existing saved searches will disappear and only be available if the DataSource is set back to its original value.If this property is false, saved searches will persist across DataSource changes so that searches that aren't applicable to the current DataSource might still be shown. Note: This is an advanced setting - Specified by:
- setShowSavedSearchesByDSin interface- DataBoundComponent
- Parameters:
- showSavedSearchesByDS- New showSavedSearchesByDS value. Default value is true
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getShowSavedSearchesByDSpublic boolean getShowSavedSearchesByDS()Description copied from interface:DataBoundComponentWhether to associate saved searches by default with the currentDataSourceof a component when asavedSearchIdis not provided. If this property is true, then when the DataSource is changed, existing saved searches will disappear and only be available if the DataSource is set back to its original value.If this property is false, saved searches will persist across DataSource changes so that searches that aren't applicable to the current DataSource might still be shown. - Specified by:
- getShowSavedSearchesByDSin interface- DataBoundComponent
- Returns:
- Current showSavedSearchesByDS value. Default value is true
 
- 
findAllFilters all objects according to the AdvancedCriteria passed- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- all matching Objects or null if none found
 
- 
findFilters all objects according to the AdvancedCriteria passed and returns the first matching object or null if not found- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- first matching object or null if not found
 
- 
findIndexFinds the index of the first Record that matches with the AdvacendCriteria passed.- Parameters:
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- index of the first matching Record or -1 if not found
 
- 
findNextIndexLikeRecordList.findIndex(java.util.Map), but considering the startIndex and endIndex parameters.- Parameters:
- startIndex- first index to consider
- adCriteria- AdvancedCriteria to use to filter results
- endIndex- last index to consider
- Returns:
- index of the first matching Record or -1 if not found
 
- 
findNextIndexLikeRecordList.findIndex(java.util.Map), but considering the startIndex parameter.- Parameters:
- startIndex- first index to consider
- adCriteria- AdvancedCriteria to use to filter results
- Returns:
- index of the first matching Record or -1 if not found
 
- 
selectRecordDescription copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
 
- 
selectRecordpublic void selectRecord(int record) Description copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
 
- 
selectRecordpublic void selectRecord(int record, boolean newState) Description copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
 
- 
selectRecordDescription copied from interface:DataBoundComponentSelect/deselect aRecordpassed in explicitly, or by index.- Specified by:
- selectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to select
- newState- new selection state (if null, defaults to true)
 
- 
selectRecordspublic void selectRecords(int[] records) Description copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
 
- 
selectRecordspublic void selectRecords(int[] records, boolean newState) Description copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
- newState- new selection state
 
- 
selectRecordsDescription copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
 
- 
selectRecordsDescription copied from interface:DataBoundComponentSelect/deselect a list ofRecords passed in explicitly, or by index.- Specified by:
- selectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to select
- newState- new selection state (if null, defaults to true)
 
- 
deselectRecordDescription copied from interface:DataBoundComponentDeselect aRecordpassed in explicitly, or by index.Synonym for selectRecord(record, false)- Specified by:
- deselectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to deselect
 
- 
deselectRecordpublic void deselectRecord(int record) Description copied from interface:DataBoundComponentDeselect aRecordpassed in explicitly, or by index.Synonym for selectRecord(record, false)- Specified by:
- deselectRecordin interface- DataBoundComponent
- Parameters:
- record- record (or row number) to deselect
 
- 
deselectRecordspublic void deselectRecords(int[] records) Description copied from interface:DataBoundComponentDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Specified by:
- deselectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to deselect
 
- 
deselectRecordsDescription copied from interface:DataBoundComponentDeselect a list ofRecords passed in explicitly, or by index.Synonym for selectRecords(records, false)- Specified by:
- deselectRecordsin interface- DataBoundComponent
- Parameters:
- records- records (or row numbers) to deselect
 
- 
selectAllRecordspublic void selectAllRecords()Description copied from interface:DataBoundComponentSelect all records

- Specified by:
- selectAllRecordsin interface- DataBoundComponent
 
- 
deselectAllRecordspublic void deselectAllRecords()Description copied from interface:DataBoundComponent
 Deselect all records

- Specified by:
- deselectAllRecordsin interface- DataBoundComponent
 
- 
anySelectedDescription copied from interface:DataBoundComponentWhether at least one item is selected
- Specified by:
- anySelectedin interface- DataBoundComponent
- Returns:
- true == at least one item is selected false == nothing at all is selected
 
- 
enableHiliteDescription copied from interface:DataBoundComponentEnable / disable ahilites

- Specified by:
- enableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to enable
 
- 
enableHiliteDescription copied from interface:DataBoundComponentEnable / disable ahilites

- Specified by:
- enableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to enable
- enable- new enabled state to apply - if null, defaults to true
 
- 
disableHiliteDescription copied from interface:DataBoundComponentDisable a hilite

- Specified by:
- disableHilitein interface- DataBoundComponent
- Parameters:
- hiliteID- ID of hilite to disable
 
- 
enableHilitingpublic void enableHiliting()Description copied from interface:DataBoundComponentEnable all hilites.

- Specified by:
- enableHilitingin interface- DataBoundComponent
 
- 
enableHilitingpublic void enableHiliting(boolean enable) Description copied from interface:DataBoundComponentEnable all hilites.

- Specified by:
- enableHilitingin interface- DataBoundComponent
- Parameters:
- enable- new enabled state to apply - if null, defaults to true
 
- 
disableHilitingpublic void disableHiliting()Description copied from interface:DataBoundComponentDisable all hilites.

- Specified by:
- disableHilitingin interface- DataBoundComponent
 
- 
getDragDataDescription copied from interface:DataBoundComponentDuring a drag-and-drop interaction, this method returns the set of records being dragged out of the component. In the default implementation, this is the list of currently selected records.This method is consulted by
 ListGrid.willAcceptDrop().- Specified by:
- getDragDatain interface- DataBoundComponent
- Returns:
- Array of Records that are currently selected.
 
- 
transferSelectedDataDescription copied from interface:DataBoundComponentSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction. This method acts on the dropped records exactly as if they had been dropped in an actual drag / drop interaction, including any special databound behavior invoked by callingDataBoundComponent.getDropValues()for each dropped record.To transfer all data in, for example, a ListGrid, call grid.selection.selectAll() first.Note that drag/drop type transfers of records between components are asynchronous operations: Smart GWT may need to perform server turnarounds to establish whether dropped records already exist in the target component. Therefore, it is possible to issue a call to transferSelectedData()and/or thedrop()method of a databound component whilst a transfer is still active. When this happens, Smart GWT adds the second and subsequent transfer requests to a queue and runs them one after the other. If you want to be notified when a transfer process has actually completed, useHasDropCompleteHandlers.addDropCompleteHandler(com.smartgwt.client.widgets.events.DropCompleteHandler). See theDraggingdocumentation for an overview of list grid drag/drop data transfer.- Specified by:
- transferSelectedDatain interface- DataBoundComponent
- Parameters:
- source- source component from which the records will be tranferred
 
- 
transferSelectedDataDescription copied from interface:DataBoundComponentSimulates a drag / drop type transfer of the selected records in some other component to this component, without requiring any user interaction. This method acts on the dropped records exactly as if they had been dropped in an actual drag / drop interaction, including any special databound behavior invoked by callingDataBoundComponent.getDropValues()for each dropped record.To transfer all data in, for example, a ListGrid, call grid.selection.selectAll() first.Note that drag/drop type transfers of records between components are asynchronous operations: Smart GWT may need to perform server turnarounds to establish whether dropped records already exist in the target component. Therefore, it is possible to issue a call to transferSelectedData()and/or thedrop()method of a databound component whilst a transfer is still active. When this happens, Smart GWT adds the second and subsequent transfer requests to a queue and runs them one after the other. If you want to be notified when a transfer process has actually completed, useHasDropCompleteHandlers.addDropCompleteHandler(com.smartgwt.client.widgets.events.DropCompleteHandler). See theDraggingdocumentation for an overview of list grid drag/drop data transfer.- Specified by:
- transferSelectedDatain interface- DataBoundComponent
- Parameters:
- source- source component from which the records will be transferred
- index- target index (drop position) of the rows within this grid.
 
- 
getRecordIndexDescription copied from interface:DataBoundComponentGet the index of the provided record.

 Override in subclasses to provide more specific behaviour, for instance, when data holds a
 large number of records

 - Specified by:
- getRecordIndexin interface- DataBoundComponent
- Parameters:
- record- the record whose index is to be retrieved
- Returns:
- indexindex of the record, or -1 if not found
 
- 
getTitleFieldValueDescription copied from interface:DataBoundComponentGet the value of the titleField for the passed record

 Override in subclasses 

 - Specified by:
- getTitleFieldValuein interface- DataBoundComponent
- Parameters:
- record- the record whose index is to be retrieved
- Returns:
- valuethe value of the titleField for the passed record
 
- 
setTitleFieldDescription copied from interface:DataBoundComponentSets the best field to use for a user-visible title for an individual record from this component.- Specified by:
- setTitleFieldin interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getTitleFieldDescription copied from interface:DataBoundComponentMethod to return the fieldName which represents the "title" for records in this
 Component.
 
 If this.titleField is explicitly specified it will always be used.
 Otherwise, default implementation will checktitleFieldfor databound
 components.
 
 For non databound components returns the first defined field name of"title", 
"name", or"id". If we dont find any field-names that match these
 titles, the first field in the component will be used instead.
- Specified by:
- getTitleFieldin interface- DataBoundComponent
- Returns:
- fieldName the title field for this component.
 
- 
getDataSourceDescription copied from interface:DataBoundComponentThe DataSource that this component should bind to for default fields and for performingDataSource requests.- Specified by:
- getDataSourcein interface- DataBoundComponent
- Returns:
- DataSource
 
- 
setAutoFetchDataDescription copied from interface:DataBoundComponentIf true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter(). Criteria for this fetch may be picked up frominitialCriteriaand textMatchStyle may be specified viaDataBoundComponent.getAutoFetchTextMatchStyle().NOTE: If autoFetchData is set, calling ListGrid.fetchData() before draw will cause two requests to be issued, one from the manual call to fetchData() and one from the autoFetchData setting. The second request will use only initialCriteriaand not any other criteria or settings from the first request. Generally, turn off autoFetchData if you are going to manually call fetchData() at any time.- Specified by:
- setAutoFetchDatain interface- DataBoundComponent
- Parameters:
- autoFetchData- autoFetchData
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchDataDescription copied from interface:DataBoundComponentIf true, when this component is first drawn, automatically callDataBoundComponent.fetchData()orDataBoundComponent.filterData()depending onDataBoundComponent.getAutoFetchAsFilter(). Criteria for this fetch may be picked up frominitialCriteriaand textMatchStyle may be specified viaDataBoundComponent.getAutoFetchTextMatchStyle().NOTE: If autoFetchData is set, calling ListGrid.fetchData() before draw will cause two requests to be issued, one from the manual call to fetchData() and one from the autoFetchData setting. The second request will use only initialCriteriaand not any other criteria or settings from the first request. Generally, turn off autoFetchData if you are going to manually call fetchData() at any time.- Specified by:
- getAutoFetchDatain interface- DataBoundComponent
- Returns:
- autoFetchData autoFetchData
 
- 
setAutoFetchTextMatchStylepublic ColumnTree setAutoFetchTextMatchStyle(TextMatchStyle autoFetchTextMatchStyle) throws IllegalStateException Description copied from interface:DataBoundComponentIfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.- Specified by:
- setAutoFetchTextMatchStylein interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchTextMatchStyleDescription copied from interface:DataBoundComponentIfautoFetchDataistrue, this attribute allows the developer to specify a textMatchStyle for the initialDataBoundComponent.fetchData()call.- Specified by:
- getAutoFetchTextMatchStylein interface- DataBoundComponent
- Returns:
- autoFetchTextMatchStyle autoFetchTextMatchStyle
 
- 
setAutoFetchAsFilterDescription copied from interface:DataBoundComponentIfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()- Specified by:
- setAutoFetchAsFilterin interface- DataBoundComponent
- Parameters:
- autoFetchAsFilter- autoFetchAsFilter
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException
 
- 
getAutoFetchAsFilterDescription copied from interface:DataBoundComponentIfDataBoundComponent.setAutoFetchData(Boolean)is true, this attribute determines whether the initial fetch operation should be performed viaDataBoundComponent.fetchData()orDataBoundComponent.filterData()- Specified by:
- getAutoFetchAsFilterin interface- DataBoundComponent
- Returns:
- auto fetch as filter
 
- 
setInitialCriteriaDescription copied from interface:DataBoundComponentCriteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.- Specified by:
- setInitialCriteriain interface- DataBoundComponent
- Parameters:
- initialCriteria- the initial criteria
- Returns:
- DataBoundComponentinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getInitialCriteriaDescription copied from interface:DataBoundComponentCriteria to use whenDataBoundComponent.setAutoFetchData(Boolean)is used.- Specified by:
- getInitialCriteriain interface- DataBoundComponent
- Returns:
- the criteria
 
- 
setImplicitCriteriaDescription copied from interface:DataBoundComponentCriteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.- Specified by:
- setImplicitCriteriain interface- DataBoundComponent
- Parameters:
- implicitCriteria- New implicitCriteria value. Default value is null
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setImplicitCriteria
- 
setImplicitCriteria
- 
getImplicitCriteriaDescription copied from interface:DataBoundComponentCriteria that are never shown to or edited by the user and are cumulative with any criteria provided viaDataBoundComponent.initialCriteria,DataBoundComponent.setCriteria()etc.- Specified by:
- getImplicitCriteriain interface- DataBoundComponent
- Returns:
- Current implicitCriteria value. Default value is null
 
- 
fetchDatapublic void fetchData()Description copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required
 
- 
fetchDataDescription copied from interface:DataBoundComponentRetrieves data from the DataSource that matches the specified criteria.When fetchData()is first called, if data has not already been provided viasetData(), this method will create aResultSet, which will be configured based on component settings such asfetchOperationanddataPageSize, as well as the general purposedataProperties. The created ResultSet will automatically send a DSRequest to retrieve data from the dataSource, and from then on will automatically manage paging through large datasets, as well as performing filtering and sorting operations inside the browser when possible - see the ResultSet docs for details.NOTE: do not use both autoFetchDataand a call tofetchData()- this may result in two DSRequests to fetch data. Use eitherautoFetchDataandsetAutoFetchCriteria()or a manual call to fetchData() passing criteria.Whether a ResultSet was automatically created or provided via setData(), subsequent calls to fetchData() will simply callresultSet.setCriteria().Changes to criteria may or may not result in a DSRequest to the server due to client-side filtering. You can call willFetchData(criteria)to determine if new criteria will result in a server fetch.If you need to force data to be re-fetched, you can call invalidateCache()and new data will automatically be fetched from the server using the current criteria and sort direction. NOTE: when usinginvalidateCache()there is no need to also callfetchData()and in fact this could produce unexpected results.This method takes an optional callback parameter (set to a DSCallback) to fire when the fetch completes. Note that this callback will not fire if no server fetch is performed. In this case the data is updated synchronously, so as soon as this method completes you can interact with the new data. If necessary, you can useresultSet.willFetchData()to determine whether or not a server fetch will occur whenfetchData()is called with new criteria.In addition to the callback parameter for this method, developers can use resultSet.addDataArrivedHandlerto be notified every time data is loaded.- Specified by:
- fetchDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required
- requestProperties- additional properties to set on the DSRequest that will be issued
 
- 
filterDatapublic void filterData()Description copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like ListGrid.fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like ListGrid.fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like ListGrid.fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required; see- DataBoundComponent.fetchData()for details
 
- 
filterDataDescription copied from interface:DataBoundComponentRetrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like ListGrid.fetchData()except thattextMatchStyleis automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
- filterDatain interface- DataBoundComponent
- Parameters:
- criteria- Search criteria. If a- DynamicFormis passed in as this argument instead of a raw criteria object, will be derived by calling- DynamicForm.getValuesAsCriteria()
- callback- callback to invoke when a fetch is complete. Fires only if server contact was required; see- DataBoundComponent.fetchData()for details
- requestProperties- for databound components only - optional additional properties to set on the DSRequest that will be issued
 
- 
invalidateCachepublic void invalidateCache()Description copied from interface:DataBoundComponentInvalidate the current data cache for this databound component via a call to the dataset'sinvalidateCache()method, for example,ResultSet.invalidateCache().NOTE: there is no need to call invalidateCache()when a save operation is performed on a DataSource. Automatic cache synchronization features will automatically update caches - seeResultSetfor details. If automatic cache synchronization isn't working, troubleshoot the problem using the steps suggested in the FAQ rather than just calling invalidateCache(). CallinginvalidateCache()unnecessarily causes extra server load and added code complexity.Calling invalidateCache()will automatically cause a new fetch to be performed with the current set of criteria if data had been previously fetched and the component is currently drawn with data visible - there is no need to manually call fetchData() after invalidateCache() and this could result in duplicate fetches.While data is being re-loaded after a call to invalidateCache(), the widget is in a state similar to initial data load - it doesn't know the total length of the dataset and any APIs that act on records or row indices will necessarily fail and should not be called. To detect that the widget is in this state, callResultSet.lengthIsKnown().invalidateCache()only has an effect if this component's dataset is a data manager class that manages a cache (eg ResultSet or ResultTree). If data was provided as a simple Array or List, invalidateCache() does nothing.- Specified by:
- invalidateCachein interface- DataBoundComponent
- See Also:
 
- 
getResultSetDescription copied from interface:DataBoundComponentReturn the underlying data of this DataBoundComponent as aResultSet.Note that this method should only be called after initial data has been fetched by this DataBoundComponent. - Specified by:
- getResultSetin interface- DataBoundComponent
- Returns:
- ResultSet, or null if the underlying data is not a ResultSet
- See Also:
 
- 
getRecordListDescription copied from interface:DataBoundComponentReturn the underlying data of this DataBoundComponent as aRecordList.Depending on the component configuration, the actual JavaScript instance of the returned RecordList may be one of several types: - If the component is not bound to a DataSource, the instance is generally an Array ofRecord.
- If the component is bound to a DataSource, the instance is a 
     ResultSet.
- If the component is a grouped ListGrid, the instance is a 
     Tree. To access the ungrouped record list regardless of grouping status, useisGrouped() ? getOriginalRecordList() : getRecordList() 
- If the component is a TreeGrid, the instance is a ResultTree.
 - Specified by:
- getRecordListin interface- DataBoundComponent
- Returns:
- the RecordList
 
- If the component is not bound to a 
- 
getDataAsJSList- Specified by:
- getDataAsJSListin interface- DataBoundComponent
 
- 
exportDatapublic void exportData()Description copied from interface:DataBoundComponent- Specified by:
- exportDatain interface- DataBoundComponent
 
- 
exportDataDescription copied from interface:DataBoundComponent- Specified by:
- exportDatain interface- DataBoundComponent
 
- 
exportDataDescription copied from interface:DataBoundComponentUses a "fetch" operation on the currentDataSourceto retrieve data that matches the current filter and sort criteria for this component, then exports the resulting data to a file or window in the requested format.A variety of DSRequest settings, such as exportAsandexportFilename, affect the exporting process: seeexportResultsfor further detail.Note that data exported via this method does not include any client-side formatting and relies on both the Smart GWT server and server-side DataSources. To export client-data with formatters applied, see exportClientData, which still requires the Smart GWT server but does not rely on server-side DataSources.For more information on exporting data, see DataSource.exportData.- Specified by:
- exportDatain interface- DataBoundComponent
- Parameters:
- requestProperties- additional properties to set on DSRequest that will be issued
- callback- Optional callback. Note that this parameter only applies if you specify- exportToClient: false in the request properties, because file downloads don't provide ordinary framework callbacks
- See Also:
 
- 
addFetchDataHandlerAdd a fetchData handler.Notification function fired on fetchData() or filterData() - Specified by:
- addFetchDataHandlerin interface- HasFetchDataHandlers
- Parameters:
- handler- the filterData handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDropCompleteHandlerAdd acom.smartgwt.client.widgets.DropCompleteHandler. See that class's documentation for a definition of "drop complete", and how it differs from "drag complete" (com.smartgwt.client.widgets.DragCompleteHandler).- Specified by:
- addDropCompleteHandlerin interface- HasDropCompleteHandlers
- Parameters:
- handler- the DropCompleteHandler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
addDragCompleteHandlerAdd acom.smartgwt.client.widgets.DragCompleteHandler. See that class's documentation for a definition of "drag complete", and how it differs from "drop complete" (com.smartgwt.client.widgets.DropCompleteHandler).- Specified by:
- addDragCompleteHandlerin interface- HasDragCompleteHandlers
- Parameters:
- handler- the DropCompleteHandler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
getFieldAlignmentsDescription copied from interface:DataBoundComponentReturna an array of field alignments for this grid- Specified by:
- getFieldAlignmentsin interface- DataBoundComponent
- Returns:
- array of Alignments
 
- 
getDeepCloneOnEditDescription copied from interface:DataBoundComponentBefore we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values. SeeDataSource.getDeepCloneOnEdit()for details of what this means.If this value is not explicitly set, it defaults to the DataSource deepCloneOnEditvalue. This value can also be overridden per-field withDataSourceField.setDeepCloneOnEdit(java.lang.Boolean).Like the other deepCloneOnEditsettings, this flag only has an effect if you are editing a values object that contains nested objects or arrays, usingCanvas.setDataPath(java.lang.String)- Specified by:
- getDeepCloneOnEditin interface- DataBoundComponent
 
- 
setDeepCloneOnEditDescription copied from interface:DataBoundComponentBefore we start editing values in this DataBoundComponent, should we perform a deep clone of the underlying values. SeeDataSource.getDeepCloneOnEdit()for details of what this means.If this value is not explicitly set, it defaults to the DataSource deepCloneOnEditvalue. This value can also be overridden per-field withDataSourceField.setDeepCloneOnEdit(java.lang.Boolean).Like the other deepCloneOnEditsettings, this flag only has an effect if you are editing a values object that contains nested objects or arrays, usingCanvas.setDataPath(java.lang.String)- Specified by:
- setDeepCloneOnEditin interface- DataBoundComponent
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
setFieldsDescription copied from interface:DataBoundComponentField setter variant (alternative tosetFields(FormItem...),setFields(ListGridField...), etc.) that will accept an array of JavaScriptObject, rather than an array of SmartGWT Java wrappers of the field class type (e.g.FormItem,ListGridField, etc.) This is an advanced method and only for cases where you have the JavaScriptObject for each field but want to avoid having to create each associated SmartGWT Java wrapper.Note: use toArray()to create a Java array of JavaScriptObject if you only have the array itself as a single JavaScriptObject.- Specified by:
- setFieldsin interface- DataBoundComponent
- Parameters:
- fields- the component fields
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getFieldsAsJavaScriptObjectsDescription copied from interface:DataBoundComponentReturn the fields as JavaScriptObjects rather than as SmartGWT Java wrappers of the field class type (e.g.FormItem,ListGridField, etc.) This avoids building the SmartGWT Java wrappers for the fields in situations where they aren't needed - and for FormItems in particular - where there may not be enough information to determine the correct subclass, such as before the SmartClient instance underlying theDynamicFormhas been created.- Specified by:
- getFieldsAsJavaScriptObjectsin interface- DataBoundComponent
- Returns:
- the component fields
 
- 
getFieldCountpublic int getFieldCount()Description copied from interface:DataBoundComponentReturn the number of fields.- Specified by:
- getFieldCountin interface- DataBoundComponent
- Returns:
- the number of fields
 
- 
transferRecordspublic void transferRecords(Record[] records, Record targetRecord, Integer index, Canvas sourceWidget, TransferRecordsCallback callback) Description copied from interface:DataBoundComponentTransfer a list ofRecords from another component (does not have to be a databound component) into this component. This method is only applicable to list-type components, such asListGridorcom.smartgwt.client.widgets.tile.TileGridTileGrid. Notably, it does not apply toTreeGrid; the equivalent for treeGrids istransferNodes.This method implements the automatic drag-copy and drag-move behaviors of components like ListGrid, and calling it is equivalent to completing a drag and drop of thedropRecords(the default record drop behavior is simply to calltransferRecords(), passing in the dropped nodes)Note that this method is asynchronous - it may need to perform server turnarounds to prevent duplicates in the target component's data. If you wish to be notified when the transfer process has completed, you can either pass a non-null callback to this method or add a DropCompleteHandlerto this component.See also transferSelectedData()- Specified by:
- transferRecordsin interface- DataBoundComponent
- Parameters:
- records- Recordss to transfer to this component
- targetRecord- The target record (eg, of a drop interaction), for context
- index- Insert point relative to the target record for the transferred records
- sourceWidget- The databound or non-databound component from which the records are to be transferred.
- callback- optional TransferRecordsCallback to be fired when the transfer process has completed (pass null if your code does not need to be called back). The callback will be passed the list of records actually transferred to this component
 
- 
setDragDataCustomizerDuring a drag-and-drop interaction, this method returns the set of records being dragged out of the component. In the default implementation, this is the list of currently selected records.This method is consulted by willAcceptDrop().- Parameters:
- DragDataCustomizer- customizer
- Returns:
- DataBoundComponentinstance, for chaining setter calls
 
- 
getSortDescription copied from interface:DataBoundComponentReturns the currentSortSpecifiersfor this component. Will return null if this component has never been sorted, or the underlying SmartClient widget does not exist.- Specified by:
- getSortin interface- DataBoundComponent
- Returns:
- current sort specifiers for this component (null if unsorted or no SC widget)
 
- 
setSortDescription copied from interface:DataBoundComponentSort the component on one or more fields.Pass in an array of SortSpecifiers to have the component's data sorted by the fields in eachspecifier.propertyand in the directions specified. The component can be sorted by any combination of fields, including fields specified in the fields array andunused fields from the underlying dataSource, if there is one.If setSort() is called on a component which doesn't yet have a SmartClient widget, the widget will be created. If autoFetchDatais set and aDataSourcehas been set, this will result in data being fetched.- Specified by:
- setSortin interface- DataBoundComponent
- Parameters:
- sortSpecifiers- Array of- SortSpecifierobjects
 
- 
setLogicalStructureSetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.
- 
getLogicalStructureGetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.- Specified by:
- getLogicalStructurein interface- LogicalStructure
- Overrides:
- getLogicalStructurein class- Layout
 
 
-