Class TreeGrid
- 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
,HasFormulaUpdatedHandlers
,HasHoverHandlers
,HasHoverHiddenHandlers
,HasKeyDownHandlers
,HasKeyPressHandlers
,HasMouseDownHandlers
,HasMouseMoveHandlers
,HasMouseOutHandlers
,HasMouseOverHandlers
,HasMouseStillDownHandlers
,HasMouseUpHandlers
,HasMouseWheelHandlers
,HasMovedHandlers
,HasParentMovedHandlers
,HasResizedHandlers
,HasRightMouseDownHandlers
,HasRuleContextChangedHandlers
,HasScrolledHandlers
,HasShowContextMenuHandlers
,HasVisibilityChangedHandlers
,HasBodyKeyPressHandlers
,HasCellClickHandlers
,HasCellContextClickHandlers
,HasCellDoubleClickHandlers
,HasCellErrorIconHoverHandlers
,HasCellErrorIconOutHandlers
,HasCellErrorIconOverHandlers
,HasCellHoverHandlers
,HasCellMouseDownHandlers
,HasCellMouseUpHandlers
,HasCellOutHandlers
,HasCellOverHandlers
,HasCellSavedHandlers
,HasCellSelectionChangedHandlers
,HasCellValueHoverHandlers
,HasCriteriaChangedHandlers
,HasDataArrivedHandlers
,HasDataChangedHandlers
,HasDrawAreaChangedHandlers
,HasEditCompleteHandlers
,HasEditFailedHandlers
,HasEditorEnterHandlers
,HasEditorExitHandlers
,HasFieldStateChangedHandlers
,HasFilterEditorSubmitHandlers
,HasGroupByCompleteHandlers
,HasGroupByHandlers
,HasGroupStateChangedHandlers
,HasGroupTreeChangedHandlers
,HasHeaderClickHandlers
,HasHeaderDoubleClickHandlers
,HasHeaderHoverHandlers
,HasHilitesChangedHandlers
,HasRecordClickHandlers
,HasRecordCollapseHandlers
,HasRecordDoubleClickHandlers
,HasRecordDropHandlers
,HasRecordExpandHandlers
,HasRegroupHandlers
,HasRemoveRecordClickHandlers
,HasRowContextClickHandlers
,HasRowEditorEnterHandlers
,HasRowEditorExitHandlers
,HasRowHoverHandlers
,HasRowMouseDownHandlers
,HasRowMouseUpHandlers
,HasRowOutHandlers
,HasRowOverHandlers
,HasSelectionChangedHandlers
,HasSelectionUpdatedHandlers
,HasSetSortHandlers
,HasSortChangedHandlers
,HasSorterClickHandlers
,HasSorterContextClickHandlers
,HasViewStateChangedHandlers
,HasMembersChangedHandlers
,HasDataArrivedHandlers
,HasDataChangedHandlers
,HasFolderClickHandlers
,HasFolderClosedHandlers
,HasFolderContextClickHandlers
,HasFolderDropHandlers
,HasFolderOpenedHandlers
,HasLeafClickHandlers
,HasLeafContextClickHandlers
,HasNodeClickHandlers
,HasNodeContextClickHandlers
- Direct Known Subclasses:
EditTree
,TreePalette
- the
Tree
class, which manipulates hierarchical data sets - the TreeGrid widget class, which extends the ListGrid class to visually present tree data in an expandable/collapsible format.
TreeDataBinding
. A TreeGrid works just like a ListGrid
, except one column (specified by TreeGridField.treeField
) shows a hierarchical Tree
. A TreeGrid is not limited to displaying just the Tree
column - you can define additional columns (via fields
) which will render just like the columns of a ListGrid
, and support all of the functionality of ListGrid columns, such as formatters
.
Except where explicitly overridden,
ListGrid
methods, callbacks, and properties apply to TreeGrids as well. The
ListGrid
defines some methods as taking/returning ListGridField
and ListGridRecord
. When using
those methods in a TreeGrid, those types will be TreeGridField
and TreeNode
, respectively.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
Field Summary
Fields inherited from class com.smartgwt.client.widgets.BaseWidget
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDataArrivedHandler
(DataArrivedHandler handler) Add a dataArrived handler.addDataChangedHandler
(DataChangedHandler handler) Add a dataChanged handler.addFolderClickHandler
(FolderClickHandler handler) Add a folderClick handler.Add a folderClosed handler.Add a folderContextClick handler.addFolderDropHandler
(FolderDropHandler handler) Add a folderDrop handler.Add a folderOpened handler.addLeafClickHandler
(LeafClickHandler handler) Add a leafClick handler.Add a leafContextClick handler.addNodeClickHandler
(NodeClickHandler handler) Add a nodeClick handler.Add a nodeContextClick handler.addRecordDropHandler
(RecordDropHandler handler) This ListGrid superclass event does not fire on a TreeGrid, useaddFolderDropHandler(com.smartgwt.client.widgets.tree.events.FolderDropHandler)
instead.Overridden to disallow editing of thename
field of this grid's data tree.static void
changeAutoChildDefaults
(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName
.static void
changeAutoChildDefaults
(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName
.void
closeFolder
(TreeNode node) Closes a folder.protected JavaScriptObject
create()
void
Exports this component's data with client-side formatters applied, so is suitable for direct display to users.void
exportClientData
(DSRequest requestProperties) void
exportClientData
(DSRequest requestProperties, RPCCallback callback) Exports this component's data with client-side formatters applied, so is suitable for direct display to users.void
Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.void
Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.void
fetchData
(Criteria criteria, DSCallback callback) Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.void
fetchData
(Criteria criteria, DSCallback callback, DSRequest requestProperties) Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.void
filterData
(Criteria criteria) Retrieves data that matches the provided criteria and displays the matching data in this component.void
filterData
(Criteria criteria, DSCallback callback) Retrieves data that matches the provided criteria and displays the matching data in this component.void
filterData
(Criteria criteria, DSCallback callback, DSRequest requestProperties) Retrieves data that matches the provided criteria and displays the matching data in this component.IfshowOpener
is true, should we display the opener icon for folders even if they have no children?When animating folder opening / closing, this property can be set to apply an animated acceleration effect.IfanimateFolders
is true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.If true, when folders are opened / closed children will be animated into view.int
When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second.int
When animating folder opening / closing, ifanimateFolderSpeed
is not set, this property designates the duration of the animation in ms.boolean
If this grid was passed an explicit set of fields, but no field was specified as the "tree-field" (showing indentations for tree hierarchy and tree icons), should we assign one of the other fields to be the tree-field?WithloadDataOnDemand
:true, TreeGrids fetch data by selecting the child nodes of each parent, which should be exact match, so we default toautoFetchTextMatchStyle:"exact"
when autoFetchData is true.Which nodes should be opened automatically.For dataBound treeGrids this specifies theResultTree.autoPreserveOpenState
, governing whether the open state of the tree should be preserved when new data arrives due to cache invalidation.Indicates whether records can be dropped into this listGrid.Indicates whether records can be dragged from this listGrid and dropped elsewhere.Whether drops are allowed on leaf nodes.boolean
When performing a drag and drop to add or move data within the tree, should users be able to make the dropped node a sibling of the last node in the tree by dropping just below it?Indicates whether records can be reordered by dragging within thisListGrid
.If set this property allows the user to reparent nodes by dragging them from their current folder to a new folder.
Backcompat: For backwards compatibility with versions prior to Smart GWT 1.5, if this property is unset, butthis.canAcceptDroppedRecords
is true, we allow nodes to be dragged to different folders.This property is not supported on TreeGrid, and only applies to theListGrid
superclass.Message displayed when user attempts to drop a node into a child of itself.Message displayed when user attempts to drop a dragged node onto itself.ForMulti-link trees
only, the message displayed when the user attempts to drag two or more occurrences of the same node into a parent.Should children be selected when parent is selected? And should parent be selected when any child is selected?getCellAlign
(ListGridRecord record, int rowNum, int colNum) Return the horizontal alignment for cell contents.Message displayed when user attempts to drop a node into a parent that has the same ID as the dropped node somewhere in its ancestor chain (ie, the same node as the parent, or grandparent, and so on)This suffix will be appended to thefolderIcon
for closed folders.The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true.The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true.If no fields are specified, create a single field withTreeGridField.treeField
set totrue
to show the tree.This property allows the developer to rename thedefault node.showDropIcon
property.This property allows the developer to rename thedefault node.showOpenIcon
property.This property allows the developer to rename thedefault node.icon
property.This property allows the developer to rename thedefault node.showSelectedIcon
property.getData()
A TreeGrid is adataArity
:multiple component.Mode of fetching records from server.For aTreeGrid
that uses a DataSource, these properties will be passed to the automatically-created ResultTree.Specifies the type of nodes displayed in the treeGrid.getDraggedNodeLocators
(TreeGrid source) NOTE: Applicable only tomulti-link trees
; if called on a regularTreeGrid
, returns an empty array.IfshowDropEndSpace
is set to true, this property governs how large the space under the last node during drop should be.When the user is dragging a droppable element over this grid, this method returns the folder
 which would contain the item if dropped.IfshowDropIcons
is true, this suffix will be appended to thefolderIcon
when the user drop-hovers over some folder.int
Returns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.int
Returns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.getExtraIcon
(TreeNode node) Get an additional icon to show between the open icon and folder/node icon for a particular node.int
The amount of gap (in pixels) between the extraIcon (seegetExtraIcon()
) or checkbox icon and thenodeIcon
/folderIcon
or node text.The URL of the base icon for all folder nodes in this treeGrid.Default padding to show between folder icon and cell value in the tree cell.Not applicable to TreeGrids, as thedata
already represents a tree.String[]
Not applicable to TreeGrids, as thedata
already represents a tree.protected String
Get the appropriate icon for a node.
The base CSS class to apply to icons used in this grid.Default padding to show between the folder or leaf node icon and cell value in the tree cell.This property allows the developer to specify customiconPadding
for specific nodesint
The standard size (same height and width, in pixels) of node icons in this treeGrid.For record components placed "within" thetreeField
column, should the component be indented to the position where a title would normally show?int
The amount of indentation (in pixels) to add to a node's icon/title for each level down in this tree's hierarchy.If set, tree-based filtering is performed such that parent nodes are kept as long as they have children that match the filter criteria, even if the parents themselves do not match the filter criteria.IfselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected, should a gap be left where the checkbox icon would normally appear, in order to make the node's icon and title line up with the content for other nodes in the same parent?For databound treeGrid instances, should the entire tree of data be loaded on initial fetch, or should folders load their children as they are opened.IfshowLoadingIcons
is set, this icon will be used when the folder isloading children from the server
.Getter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.The filename of the icon displayed use as the default drag tracker when for multiple files and/or folders are being dragged.The filename of the default icon for all leaf nodes in this grid.protected String
getNodeTitle
(Record node, int recordNum, ListGridField field) 
 Returns the title to show for a node in the tree column.For TreeGrids with loadDataOnDemand: true, a message to show the user if an attempt is made to open a folder, and thus load that node's children, while we are offline and there is no offline cache of that data.Height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.Default width and height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol, if not overridden byopenerIconWidth
/openerIconHeight
.Width in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid.The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid.getOpenIcon
(TreeNode node) Get the appropriate open/close opener icon for a node.Default padding to show between theopenIcon
and the extra or folder icon in the tree cell.IfshowOpenIcons
is true, this suffix will be appended to thefolderIcon
for open folders in this grid.Returns a snapshot of the current open state of this grid's data as aTreeGridOpenState
object.
This object can be passed tosetOpenState()
to open the same set of folders within the treeGrid's data (assuming the nodes are still present in the data).static TreeGrid
getOrCreateRef
(JavaScriptObject jsObj) Message displayed when user attempts to drag a node into a parent that already contains a child of the same name/ID.getRecord
(int recordNum) Return the pointer to a particular record by record number.IfcanAcceptDroppedRecords
is true for this treeGrid, this property governs whether the user can drop between, or over records within the grid.Return the tree nodes as a flat array of ListGridRecords.Should the currentopen state
of the tree be included along with other details when saving this grid'sview-state
?IfshowSelectedIcons
is true, this suffix will be appended to thefolderIcon
for selected nodes in this grid.Returns a snapshot of the current selection within this treeGrid as aListGridSelectedState
object.
This object can be passed tosetSelectedPaths()
to reset this grid's selection the current state (assuming the same data is present in the grid).Return the first selected record in this component.
This method is appropriate if
isselectionType
"single"
, or if you only care about the first selected record in a multiple-record selection.If specified, the selection object for this list will use this property to mark records as selected.If specified, this attribute will overrideTree.separateFolders
on the data for this treeGrid.String[]
ForfetchMode:"local"
ResultTrees, this property lists field names that will be sent to the server if they are present in the criteria.Should this treeGrid show connector lines illustrating the tree's hierarchy?Should folder nodes showing custom icons (set via thecustomIconProperty
, defaultTreeNode.icon
), show drop state images when the user is drop-hovering over the folder.Should folder nodes showing custom icons (set via thecustomIconProperty
), show open state images when the folder is opened.Should folder nodes showing custom icons (set via thecustomIconProperty
), show selected state images when the folder is selected, ifshowSelectedIcons
is true?Should tree nodes show a disabled checkboxselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected?boolean
When the user drags over the treeGrid body, should the grid show some space under the last node in the grid allowing the user to drop after the last node? The height of this space can be customized viadropEndSpace
If true, when the user drags a droppable target over a folder in this TreeGrid, show a different folder icon.Should folder nodes in this TreeGrid show icons by default?IfshowConnectors
is true, this property determines whether we should show vertical continuation lines for each level of indenting within the tree.boolean
If set, when a folder is loading its children from the server (Tree.getLoadState()
returns "loading"), it uses a distinct icon image given byloadingIcon
.Should nodes in this TreeGrid show folder / leaf node icons by default?Should the opener icon be displayed next to folder nodes? This is an icon which visually indicates whether the folder is opened or closed (typically via a [+] or [-] image, or a turn-down arrow) and may be clicked to expand or collapse the folder.If true, show a different icon foropen
folders than closed folders.Should partially selected parents be shown with special icon?Specifies whether the root node should be displayed in the treeGrid.If true, show a different icon for selected nodes than unselected nodes.IfshowOpener
is true, should a different opener icon be displayed for selected nodes? This provides a way for developers to show a "selected" version of the opener icon set which looks optimal with theselected appearance
applied the selected record.If specified, this attribute will overrideTree.sortFoldersBeforeLeaves
on the data for this treeGrid.getTree()
Synonym forgetData()
int
Defaultminimum width
for thetreeField
.Visible title for the tree column (field).For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.If true, the set of fields given by the "default binding" (seeDataBoundComponent.fields
) is used, with any fields specified incomponent.fields
acting 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.void
groupBy()
Not applicable to TreeGrids, as thedata
already represents a tree.boolean
Returns true if this component is currentlyexporting client data
.Returns true if the last event occurred overextra icon
for the current node.Returns true if the last event occurred over the indented area or over the open / close icon of a folder node in this TreeGrid.This method is not currently supported for this grid-type.loadAllRecords
(Integer maxRecords) loadAllRecords
(Integer maxRecords, DSCallback callback) This method is not currently supported for this grid-type.protected void
onInit()
void
openFolder
(TreeNode node) Opens a folder.void
openFolder
(TreeNode node, String path) Opens a folder.boolean
recordDoubleClick
(TreeGrid viewer, TreeNode record, int recordNum, TreeGridField field, int fieldNum, Map value, Map rawValue) Handle a doubleClick on a tree node - override of ListGrid stringMethod of same name.setAlwaysShowOpener
(Boolean alwaysShowOpener) IfshowOpener
is true, should we display the opener icon for folders even if they have no children?setAnimateFolderEffect
(AnimationAcceleration animateFolderEffect) When animating folder opening / closing, this property can be set to apply an animated acceleration effect.setAnimateFolderMaxRows
(Integer animateFolderMaxRows) IfanimateFolders
is true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.setAnimateFolders
(Boolean animateFolders) If true, when folders are opened / closed children will be animated into view.setAnimateFolderSpeed
(int animateFolderSpeed) When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second.setAnimateFolderTime
(int animateFolderTime) When animating folder opening / closing, ifanimateFolderSpeed
is not set, this property designates the duration of the animation in ms.setAutoAssignTreeField
(boolean autoAssignTreeField) If this grid was passed an explicit set of fields, but no field was specified as the "tree-field" (showing indentations for tree hierarchy and tree icons), should we assign one of the other fields to be the tree-field?setAutoFetchTextMatchStyle
(TextMatchStyle autoFetchTextMatchStyle) WithloadDataOnDemand
:true, TreeGrids fetch data by selecting the child nodes of each parent, which should be exact match, so we default toautoFetchTextMatchStyle:"exact"
when autoFetchData is true.setAutoOpenTree
(String autoOpenTree) Which nodes should be opened automatically.setAutoPreserveOpenState
(PreserveOpenState autoPreserveOpenState) For dataBound treeGrids this specifies theResultTree.autoPreserveOpenState
, governing whether the open state of the tree should be preserved when new data arrives due to cache invalidation.setCanAcceptDroppedRecords
(Boolean canAcceptDroppedRecords) Indicates whether records can be dropped into this listGrid.setCanDragRecordsOut
(Boolean canDragRecordsOut) Indicates whether records can be dragged from this listGrid and dropped elsewhere.setCanDropOnLeaves
(Boolean canDropOnLeaves) Whether drops are allowed on leaf nodes.setCanDropSiblingAfterLastNode
(boolean canDropSiblingAfterLastNode) When performing a drag and drop to add or move data within the tree, should users be able to make the dropped node a sibling of the last node in the tree by dropping just below it?setCanReorderRecords
(Boolean canReorderRecords) Indicates whether records can be reordered by dragging within thisListGrid
.setCanReparentNodes
(Boolean canReparentNodes) If set this property allows the user to reparent nodes by dragging them from their current folder to a new folder.
Backcompat: For backwards compatibility with versions prior to Smart GWT 1.5, if this property is unset, butthis.canAcceptDroppedRecords
is true, we allow nodes to be dragged to different folders.setCanSelectAll
(Boolean canSelectAll) This property is not supported on TreeGrid, and only applies to theListGrid
superclass.setCantDragIntoChildMessage
(String cantDragIntoChildMessage) Message displayed when user attempts to drop a node into a child of itself.setCantDragIntoSelfMessage
(String cantDragIntoSelfMessage) Message displayed when user attempts to drop a dragged node onto itself.setCantDragMultipleNodeOccurencesMessage
(String cantDragMultipleNodeOccurencesMessage) ForMulti-link trees
only, the message displayed when the user attempts to drag two or more occurrences of the same node into a parent.setCascadeSelection
(Boolean cascadeSelection) Should children be selected when parent is selected? And should parent be selected when any child is selected?void
Provide a custom implementation ofListGrid.cellValueHoverHTML(ListGridRecord, int, int, String)
.setChildCannotBeItsOwnAncestorMessage
(String childCannotBeItsOwnAncestorMessage) Message displayed when user attempts to drop a node into a parent that has the same ID as the dropped node somewhere in its ancestor chain (ie, the same node as the parent, or grandparent, and so on)setClosedIconSuffix
(String closedIconSuffix) This suffix will be appended to thefolderIcon
for closed folders.setConnectorImage
(SCStatefulImgConfig connectorImage) The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true.setConnectorImage
(String connectorImage) The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true.setCreateDefaultTreeField
(Boolean createDefaultTreeField) If no fields are specified, create a single field withTreeGridField.treeField
set totrue
to show the tree.setCustomIconDropProperty
(String customIconDropProperty) This property allows the developer to rename thedefault node.showDropIcon
property.setCustomIconOpenProperty
(String customIconOpenProperty) This property allows the developer to rename thedefault node.showOpenIcon
property.setCustomIconProperty
(String customIconProperty) This property allows the developer to rename thedefault node.icon
property.setCustomIconSelectedProperty
(String customIconSelectedProperty) This property allows the developer to rename thedefault node.showSelectedIcon
property.void
setCustomNodeIcon
(Record node, String icon) Set the icon for a particular TreeNode to a specified URLvoid
setDataArity
(String dataArity) A TreeGrid is adataArity
:multiple component.setDataFetchMode
(FetchMode dataFetchMode) Mode of fetching records from server.void
setDataProperties
(Tree resultTreeProperties) For databound TreeGrids, this attribute can be used to customize thecom.smartgwt.client.tree.ResultTree
object created for this grid when data is fetched.static void
setDefaultProperties
(TreeGrid treeGridProperties) Class level method to set the default properties of this class.setDisplayNodeType
(DisplayNodeType displayNodeType) Specifies the type of nodes displayed in the treeGrid.setDropEndSpace
(Integer dropEndSpace) IfshowDropEndSpace
is set to true, this property governs how large the space under the last node during drop should be.setDropIconSuffix
(String dropIconSuffix) IfshowDropIcons
is true, this suffix will be appended to thefolderIcon
when the user drop-hovers over some folder.setExtraIconGap
(int extraIconGap) The amount of gap (in pixels) between the extraIcon (seegetExtraIcon()
) or checkbox icon and thenodeIcon
/folderIcon
or node text.setFields
(TreeGridField... fields) An array of field objects, specifying the order, layout, dynamic calculation, and sorting behavior of each field in the treeGrid object.setFolderIcon
(String folderIcon) The URL of the base icon for all folder nodes in this treeGrid.setFolderIconPadding
(Integer folderIconPadding) Default padding to show between folder icon and cell value in the tree cell.setGroupByField
(String groupByField) Not applicable to TreeGrids, as thedata
already represents a tree.setGroupByField
(String... groupByField) Not applicable to TreeGrids, as thedata
already represents a tree.setIconBaseStyle
(String iconBaseStyle) The base CSS class to apply to icons used in this grid.setIconPadding
(Integer iconPadding) Default padding to show between the folder or leaf node icon and cell value in the tree cell.setIconPaddingProperty
(String iconPaddingProperty) This property allows the developer to specify customiconPadding
for specific nodessetIconSize
(int iconSize) The standard size (same height and width, in pixels) of node icons in this treeGrid.setIndentRecordComponents
(Boolean indentRecordComponents) For record components placed "within" thetreeField
column, should the component be indented to the position where a title would normally show?setIndentSize
(int indentSize) The amount of indentation (in pixels) to add to a node's icon/title for each level down in this tree's hierarchy.void
setInitialData
(TreeNode[] initialData) You can specify the initial set of data for a databound TreeGrid using this property.setKeepParentsOnFilter
(Boolean keepParentsOnFilter) If set, tree-based filtering is performed such that parent nodes are kept as long as they have children that match the filter criteria, even if the parents themselves do not match the filter criteria.setLeaveSelectionCheckboxGap
(Boolean leaveSelectionCheckboxGap) IfselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected, should a gap be left where the checkbox icon would normally appear, in order to make the node's icon and title line up with the content for other nodes in the same parent?setLoadDataOnDemand
(Boolean loadDataOnDemand) For databound treeGrid instances, should the entire tree of data be loaded on initial fetch, or should folders load their children as they are opened.setLoadingIcon
(String loadingIcon) IfshowLoadingIcons
is set, this icon will be used when the folder isloading children from the server
.Setter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.setManyItemsImage
(String manyItemsImage) The filename of the icon displayed use as the default drag tracker when for multiple files and/or folders are being dragged.setNodeIcon
(String nodeIcon) The filename of the default icon for all leaf nodes in this grid.setOfflineNodeMessage
(String offlineNodeMessage) For TreeGrids with loadDataOnDemand: true, a message to show the user if an attempt is made to open a folder, and thus load that node's children, while we are offline and there is no offline cache of that data.setOpenerIconHeight
(Integer openerIconHeight) Height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.setOpenerIconSize
(Integer openerIconSize) Default width and height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol, if not overridden byopenerIconWidth
/openerIconHeight
.setOpenerIconWidth
(Integer openerIconWidth) Width in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.setOpenerImage
(SCStatefulImgConfig openerImage) The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid.setOpenerImage
(String openerImage) The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid.setOpenIconPadding
(Integer openIconPadding) Default padding to show between theopenIcon
and the extra or folder icon in the tree cell.setOpenIconSuffix
(String openIconSuffix) IfshowOpenIcons
is true, this suffix will be appended to thefolderIcon
for open folders in this grid.void
setOpenState
(String openState) Reset this set of open folders within this grid's data to match theTreeGridOpenState
object passed in.
Used to restore previous state retrieved from the grid by a call togetOpenState()
.setParentAlreadyContainsChildMessage
(String parentAlreadyContainsChildMessage) Message displayed when user attempts to drag a node into a parent that already contains a child of the same name/ID.setRecordDropAppearance
(RecordDropAppearance recordDropAppearance) IfcanAcceptDroppedRecords
is true for this treeGrid, this property governs whether the user can drop between, or over records within the grid.setSaveOpenStateInViewState
(Boolean saveOpenStateInViewState) Should the currentopen state
of the tree be included along with other details when saving this grid'sview-state
?setSelectedIconSuffix
(String selectedIconSuffix) IfshowSelectedIcons
is true, this suffix will be appended to thefolderIcon
for selected nodes in this grid.void
setSelectedPaths
(String selectedPaths) Reset this grid's selection to match theListGridSelectedState
object passed in.
Used to restore previous state retrieved from the grid by a call togetSelectedPaths()
.setSelectionProperty
(String selectionProperty) If specified, the selection object for this list will use this property to mark records as selected.setSeparateFolders
(Boolean separateFolders) If specified, this attribute will overrideTree.separateFolders
on the data for this treeGrid.setServerFilterFields
(String... serverFilterFields) ForfetchMode:"local"
ResultTrees, this property lists field names that will be sent to the server if they are present in the criteria.setShowConnectors
(Boolean showConnectors) Should this treeGrid show connector lines illustrating the tree's hierarchy?setShowCustomIconDrop
(Boolean showCustomIconDrop) Should folder nodes showing custom icons (set via thecustomIconProperty
, defaultTreeNode.icon
), show drop state images when the user is drop-hovering over the folder.setShowCustomIconOpen
(Boolean showCustomIconOpen) Should folder nodes showing custom icons (set via thecustomIconProperty
), show open state images when the folder is opened.setShowCustomIconSelected
(Boolean showCustomIconSelected) Should folder nodes showing custom icons (set via thecustomIconProperty
), show selected state images when the folder is selected, ifshowSelectedIcons
is true?setShowDisabledSelectionCheckbox
(Boolean showDisabledSelectionCheckbox) Should tree nodes show a disabled checkboxselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected?setShowDropEndSpace
(boolean showDropEndSpace) When the user drags over the treeGrid body, should the grid show some space under the last node in the grid allowing the user to drop after the last node? The height of this space can be customized viadropEndSpace
setShowDropIcons
(Boolean showDropIcons) If true, when the user drags a droppable target over a folder in this TreeGrid, show a different folder icon.setShowFolderIcons
(Boolean showFolderIcons) Should folder nodes in this TreeGrid show icons by default?setShowFullConnectors
(Boolean showFullConnectors) IfshowConnectors
is true, this property determines whether we should show vertical continuation lines for each level of indenting within the tree.setShowLoadingIcons
(boolean showLoadingIcons) If set, when a folder is loading its children from the server (Tree.getLoadState()
returns "loading"), it uses a distinct icon image given byloadingIcon
.setShowNodeIcons
(Boolean showNodeIcons) Should nodes in this TreeGrid show folder / leaf node icons by default?setShowOpener
(Boolean showOpener) Should the opener icon be displayed next to folder nodes? This is an icon which visually indicates whether the folder is opened or closed (typically via a [+] or [-] image, or a turn-down arrow) and may be clicked to expand or collapse the folder.setShowOpenIcons
(Boolean showOpenIcons) If true, show a different icon foropen
folders than closed folders.setShowPartialSelection
(Boolean showPartialSelection) Should partially selected parents be shown with special icon?setShowRoot
(Boolean showRoot) Specifies whether the root node should be displayed in the treeGrid.setShowSelectedIcons
(Boolean showSelectedIcons) If true, show a different icon for selected nodes than unselected nodes.setShowSelectedOpener
(Boolean showSelectedOpener) IfshowOpener
is true, should a different opener icon be displayed for selected nodes? This provides a way for developers to show a "selected" version of the opener icon set which looks optimal with theselected appearance
applied the selected record.setSortFoldersBeforeLeaves
(Boolean sortFoldersBeforeLeaves) If specified, this attribute will overrideTree.sortFoldersBeforeLeaves
on the data for this treeGrid.setTreeFieldMinWidth
(int treeFieldMinWidth) Defaultminimum width
for thetreeField
.setTreeFieldTitle
(String treeFieldTitle) Visible title for the tree column (field).void
setTreeRootValue
(Integer treeRootValue) For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.void
setTreeRootValue
(String treeRootValue) For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.setUseAllDataSourceFields
(Boolean useAllDataSourceFields) If true, the set of fields given by the "default binding" (seeDataBoundComponent.fields
) is used, with any fields specified incomponent.fields
acting 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.void
This inheritedListGrid API
is not supported by the TreeGrid since adding a new tree node arbitrarily at the end of the tree is usually not useful.void
toggleFolder
(NodeLocator node) Opens the folder specified by node if it's closed, and closes it if it's open.void
toggleFolder
(TreeNode node) Opens the folder specified by node if it's closed, and closes it if it's open.void
toggleFolder
(Integer node) Opens the folder specified by node if it's closed, and closes it if it's open.void
toggleFolder
(String node) Opens the folder specified by node if it's closed, and closes it if it's open.void
transferNodes
(TreeNode[] nodes, TreeNode folder, Integer index, Canvas sourceWidget, TransferNodesCallback callback) Transfer a list ofTreeNode
s from another component (does not have to be a databound component) into this TreeGrid.This method overridesListGrid.willAcceptDrop()
and works as follows:
First,ListGrid.willAcceptDrop()
(the superclass definition) is consulted.Methods inherited from class com.smartgwt.client.widgets.grid.ListGrid
addBodyKeyPressHandler, addCellClickHandler, addCellContextClickHandler, addCellDoubleClickHandler, addCellErrorIconHoverHandler, addCellErrorIconOutHandler, addCellErrorIconOverHandler, addCellHoverHandler, addCellMouseDownHandler, addCellMouseUpHandler, addCellOutHandler, addCellOverHandler, addCellSavedHandler, addCellSelectionChangedHandler, addCellValueHoverHandler, addCriteriaChangedHandler, addData, addData, addData, addDataArrivedHandler, addDataChangedHandler, addDragCompleteHandler, addDrawAreaChangedHandler, addDropCompleteHandler, addEditCompleteHandler, addEditFailedHandler, addEditorEnterHandler, addEditorExitHandler, addEmbeddedComponent, addEmbeddedComponent, addEmbeddedComponent, addEmbeddedComponent, addFetchDataHandler, addFieldStateChangedHandler, addFilterEditorSubmitHandler, addFormulaField, addFormulaUpdatedHandler, addGroupByCompleteHandler, addGroupByHandler, addGroupStateChangedHandler, addGroupTreeChangedHandler, addHeaderClickHandler, addHeaderDoubleClickHandler, addHeaderHoverHandler, addHilitesChangedHandler, addRecordClickHandler, addRecordCollapseHandler, addRecordDoubleClickHandler, addRecordExpandHandler, addRegroupHandler, addRemoveRecordClickHandler, addRowContextClickHandler, addRowEditorEnterHandler, addRowEditorExitHandler, addRowHoverHandler, addRowMouseDownHandler, addRowMouseUpHandler, addRowOutHandler, addRowOverHandler, addSelectionChangedHandler, addSelectionUpdatedHandler, addSetSortHandler, addSort, addSortChangedHandler, addSorterClickHandler, addSorterContextClickHandler, addSummaryField, addViewStateChangedHandler, anySelected, applyCellData, applyRecordData, applySortToData, askForSort, autoFitField, autoFitFields, autoFitFields, cancelEditing, canEditCell, canExpandRecord, canSelectCell, canSelectRecord, cellHasChanges, cellHasErrors, cellHasErrors, cellValueHoverHTML, cellValueIsClipped, chartData, chartData, chartData, chartData, chartData, clearAllCriteria, clearCriteria, clearCriteria, clearCriteria, clearEditValue, clearFieldError, clearFieldError, clearFieldSearchOperator, clearFilterWindowCriteria, clearRowErrors, clearSavedViewState, clearSort, closeGroup, closeRecord, collapseRecord, collapseRecords, configureGrouping, createRecordComponent, dataChangedComplete, dataChangedComplete, deselectAllRecords, deselectRange, deselectRecord, deselectRecord, deselectRecords, deselectRecords, disableHilite, disableHiliting, discardAllEdits, discardAllEdits, discardAllEdits, discardEdits, discardEdits, displayHeaderContextMenu, displaySort, drop, editExistingRecord, editExistingRecord, editFields, editHilites, enableHilite, enableHilite, enableHiliting, enableHiliting, endEditing, expandRecord, expandRecords, exportData, exportData, exportData, fetchRelatedData, fetchRelatedData, fetchRelatedData, fetchRelatedData, fetchRelatedData, fetchRowCount, fetchRowCount, fetchRowCount, fieldIsEditable, fieldIsEditable, fieldIsEditable, fieldIsVisible, filterByEditor, filterData, find, findAll, findIndex, findNextEditCell, findNextIndex, findNextIndex, focusInCell, focusInFilterEditor, focusInFilterEditor, focusInRow, freezeField, freezeField, freezeField, freezeField, freezeFields, freezeFields, getAddDropValues, getAddFormulaFieldText, getAddOperation, getAddSummaryFieldText, getAdvancedFieldPickerThreshold, getAdvancedFilteringText, getAiFilterWindow, getAiFilterWindowHint, getAiFilterWindowInstructions, getAiFilterWindowTitle, getAiHiliteWindow, getAiHoverContentsPrefix, getAiHoverRetryDelay, getAiSortFieldMaxRecordsMessage, getAiSortProgressDialog, getAllEditRows, getAllFields, getAllowFilterExpressions, getAllowFilterOperators, getAllowFilterWindow, getAllowRowSpanning, getAlternateBodyStyleName, getAlternateFieldFrequency, getAlternateFieldStyles, getAlternateFieldSuffix, getAlternateRecordFrequency, getAlternateRecordStyles, getAlternateRecordSuffix, getAlwaysShowEditors, getAlwaysShowOperatorIcon, getAnimateRemoveRecord, getAnimateRemoveSpeed, getAnimateRemoveTime, getAnimateRollOver, getAnimateRollUnder, getAnimateSelection, getAnimateSelectionUnder, getApplyFormulaAfterSummary, getApplyRowCountToLength, getApplyRowNumberStyle, getApproximateRowCountFormat, getAriaRole, getAriaState, getAriaStateDefaults, getArrowKeyAction, getArrowKeyEditAction, getAsyncErrorCellValue, getAsynchGroupingPrompt, getAsyncMissingCellValue, getAutoComplete, getAutoConfirmSaveEdits, getAutoFetchAsFilter, getAutoFetchData, getAutoFetchDisplayMap, getAutoFetchRowCount, getAutoFitAllText, getAutoFitClipFields, getAutoFitData, getAutoFitDateFields, getAutoFitExpandField, getAutoFitExtraRecords, getAutoFitFieldsFillViewport, getAutoFitFieldText, getAutoFitFieldWidths, getAutoFitHeaderHeights, getAutoFitIconFields, getAutoFitMaxColumns, getAutoFitMaxHeight, getAutoFitMaxRecords, getAutoFitMaxWidth, getAutoFitMaxWidthAsString, getAutoFitTimeFields, getAutoFitWidthApproach, getAutoPersistViewState, getAutoSaveEdits, getAutoSizeHeaderSpans, getBackgroundComponent, getBadFormulaResultValue, getBaseStyle, getBaseStyle, getBlockingRowCountFetch, getBody, getBodyBackgroundColor, getBodyOverflow, getBodyScrollLeft, getBodyScrollTop, getBodyStyleName, getBooleanBaseStyle, getBooleanFalseImage, getBooleanImageHeight, getBooleanImageWidth, getBooleanPartialImage, getBooleanTrueImage, getBriefRowRangeDisplayValue, getCanAddAISortFields, getCanAddFormulaFields, getCanAddSummaryFields, getCanAutoFitFields, getCancelEditingConfirmationMessage, getCanCollapseGroup, getCanDragSelect, getCanDragSelectText, getCanDropInEmptyArea, getCanEdit, getCanEditFieldAttribute, getCanEditHilites, getCanEditTitles, getCanExpandMultipleRecords, getCanExpandRecordProperty, getCanExpandRecords, getCanFocusInEmptyGrid, getCanFreezeFields, getCanGroupBy, getCanHiliteViaAI, getCanHover, getCanMultiGroup, getCanMultiSort, getCanPickFields, getCanPickOmittedFields, getCanRemoveRecords, getCanReorderFields, getCanRequestRowCount, getCanResizeFields, getCanSaveSearches, getCanSelectCells, getCanSelectGroups, getCanSelectSummaryRows, getCanShowFilterEditor, getCanSort, getCanTabToHeader, getCanTabToSorter, getCellAriaState, getCellContextMenu, getCellContextMenuItems, getCellCSSText, getCellErrors, getCellHeight, getCellHoverComponent, getCellPadding, getCellPageRect, getCellRole, getCellRowSpan, getCellSelection, getCellStartRow, getCellStyle, getChartConstructor, getChartType, getCheckboxFieldFalseImage, getCheckboxFieldImageHeight, getCheckboxFieldImageWidth, getCheckboxFieldPartialImage, getCheckboxFieldTrueImage, getChildExpansionMode, getClearAllSortingText, getClearCriteriaOnFilterEditorHide, getClearFilterText, getClearFilterViaAIText, getClearSortFieldText, getClipHeaderTitles, getCollapseGroupOnRowClick, getColumnLeft, getColumnPageLeft, getColumnWidth, getConfigureGroupingText, getConfigureSortText, getConfirmCancelEditing, getConfirmDiscardEdits, getConfirmDiscardEditsMessage, getCriteria, getCriteriaIndicatorColor, getCriteriaIndicatorHeaderColor, getCurrentExpansionComponent, getCurrentExpansionComponent, getCurrentFieldWidths, getDataAsJSList, getDataAsRecordList, getDataFetchDelay, getDataPageSize, getDataSource, getDateFormatter, getDatetimeFormatter, getDeepCloneOnEdit, getDefaultDateFieldWidth, getDefaultDateTimeFieldWidth, getDefaultEditableDateFieldWidth, getDefaultEditableDateTimeFieldWidth, getDefaultFields, getDefaultFilterOperator, getDefaultFilterOperatorSuffix, getDefaultFormattedFieldValue, getDefaultFormattedFieldValue, getDefaultFormattedFieldValue, getDefaultFormattedValue, getDefaultTimeFieldWidth, getDeferRemoval, getDeselectOnPartialCheckboxClick, getDetailDS, getDetailField, getDisabledGroupByPrompt, getDiscardEditsOnHideField, getDiscardEditsSaveButtonTitle, getDisplayValue, getDisplayValue, getDisplayValue, getDisplayValue, getDisplayValue, getDragData, getDragDataAction, getDragHandleField, getDragHandleFieldTitle, getDragHandleIcon, getDragHandleIconSize, getDragScrollRedrawDelay, getDragTrackerMode, getDragTrackerStyle, getDrawAheadRatio, getDrawAllMaxCells, getDrawArea, getDrawnRowHeight, getDrawnRows, getDropValues, getDuplicateDragMessage, getEditByCell, getEditCol, getEditedCell, getEditedCell, getEditedCell, getEditedCell, getEditedRecord, getEditEvent, getEditFailedBaseStyle, getEditFailedCSSText, getEditFormItem, getEditFormItem, getEditFormulaFieldText, getEditOnF2Keypress, getEditOnFocus, getEditPendingBaseStyle, getEditPendingCSSText, getEditPendingMarkerStyle, getEditProxyConstructor, getEditRow, getEditSelectionType, getEditSummaryFieldText, getEditValue, getEditValue, getEditValueAsBoolean, getEditValueAsDate, getEditValueAsFloat, getEditValueAsInt, getEditValueAsRecord, getEditValueAsRecordArray, getEditValueAsString, getEditValues, getEditValues, getEmbeddedComponentIndent, getEmbeddedComponentMargin, getEmptyAIHoverContents, getEmptyCellValue, getEmptyMessage, getEmptyMessageStyle, getEmptyRowRangeDisplayValue, getEnforceVClipping, getEnterKeyEditAction, getEnumCriteriaAsInitialValues, getErrorIconHeight, getErrorIconSrc, getErrorIconWidth, getEscapeKeyEditAction, getEventColumn, getEventColumn, getExactRowCountFormat, getExpandedRecords, getExpansionCanEdit, getExpansionComponent, getExpansionComponentPoolingMode, getExpansionDetailField, getExpansionDetailRelated, getExpansionDetails, getExpansionEditor, getExpansionEditorCollapseOnSave, getExpansionEditorSaveButton, getExpansionEditorSaveButtonTitle, getExpansionEditorSaveDialogPrompt, getExpansionEditorShowSaveDialog, getExpansionField, getExpansionFieldFalseImage, getExpansionFieldImageHeight, getExpansionFieldImageShowRTL, getExpansionFieldImageShowSelected, getExpansionFieldImageStyle, getExpansionFieldImageWidth, getExpansionFieldTrueImage, getExpansionIndent, getExpansionLayout, getExpansionMode, getExpansionRelated, getExpansionScreen, getExplicitFetchDelay, getExportAll, getExportAlternateRowBGColor, getExportBGColor, getExportColumnBGColor, getExportDefaultBGColor, getExportFieldAlignments, getExportFields, getExportFieldWidths, getExportHeaderHeights, getExportHiddenFieldWidth, getExportIncludeSummaries, getExportRawNumbers, getExportRawValues, getExportRowBGColor, getExportTextColor, getExportWidthScale, getExportWrapHeaderTitles, getFetchDelay, getFetchFields, getFetchFieldsAsString, getFetchOperation, getFetchRequestProperties, getField, getField, getFieldAlignments, getFieldByName, getFieldContentWidth, getFieldCount, getFieldCriteriaText, getFieldName, getFieldNum, getFieldNum, getFieldPickerFieldProperties, getFieldPickerShowSampleValues, getFieldPickerWindow, getFields, getFieldsAsJavaScriptObjects, getFieldSearchOperator, getFieldState, getFieldTitle, getFieldTitle, getFieldVisibilitySubmenuTitle, getFieldWidth, getFieldWidth, getFilterButtonPrompt, getFilterButtonProperties, getFilterByCell, getFilterEditor, getFilterEditorCriteria, getFilterEditorCriteria, getFilterEditorCriteriaAsAdvancedCriteria, getFilterEditorCriterion, getFilterEditorHeight, getFilterEditorProperties, getFilterLocalData, getFilterOnKeypress, getFilterUsingText, getFilterViaAIMode, getFilterViaAIPanelInstructions, getFilterViaAIText, getFilterWindow, getFilterWindowCriteria, getFilterWindowCriteriaIndicator, getFilterWindowFilter, getFilterWindowInstructions, getFilterWindowTitle, getFirstCellStyle, getFixedFieldWidths, getFixedRecordHeights, getFocusRow, getFormattedRowCount, getFormattedRowRange, getFormulaBuilderSpanTitleSeparator, getFormulaFieldValue, getFreezeFieldText, getFrozenBaseStyle, getFrozenFieldsMaxWidth, getFrozenFieldsMaxWidthAsInt, getFrozenHeaderBaseStyle, getFrozenHeaderTitleStyle, getFrozenRollOverCanvas, getFrozenRollUnderCanvas, getFullRowRangeDisplayValue, getGenerateClickOnEnter, getGenerateClickOnSpace, getGenerateDoubleClickOnEnter, getGenerateDoubleClickOnSpace, getGridAdditionalCriteriaText, getGridComponents, getGridRenderer, getGridSummary, getGridSummaryData, getGridSummaryRecordProperty, getGroupByAsyncThreshold, getGroupByFields, getGroupByFieldSummaries, getGroupByMaxRecords, getGroupByMaxRecordsExceededMessage, getGroupByText, getGroupedRecordIndex, getGroupIcon, getGroupIconSize, getGroupIconStyle, getGroupIndentSize, getGroupLeadingIndent, getGroupMembers, getGroupNodeBaseStyle, getGroupNodeStyle, getGroupSortDirection, getGroupState, getGroupSummaryData, getGroupSummaryData, getGroupSummaryData, getGroupSummaryData, getGroupSummaryRecordProperty, getGroupSummaryStyle, getGroupTitleColumnProperties, getGroupTitleField, getGroupTree, getGroupTreeSelection, getGroupTreeSelection, getGroupTreeSelection, getHeader, getHeaderAriaRole, getHeaderAutoFitEvent, getHeaderBackgroundColor, getHeaderBarStyle, getHeaderBaseStyle, getHeaderButtonAriaRole, getHeaderButtonAriaState, getHeaderButtonProperties, getHeaderContextMenu, getHeaderContextMenuItems, getHeaderHeight, getHeaderHoverAlign, getHeaderHoverHeight, getHeaderHoverOpacity, getHeaderHoverStyle, getHeaderHoverVAlign, getHeaderHoverWidth, getHeaderHoverWrap, getHeaderMenuButton, getHeaderMenuButtonHeight, getHeaderMenuButtonHeightAsString, getHeaderMenuButtonIcon, getHeaderMenuButtonIconHeight, getHeaderMenuButtonIconWidth, getHeaderMenuButtonSnapOffsetLeft, getHeaderMenuButtonWidth, getHeaderRadius, getHeaderShadowColor, getHeaderShadowHOffset, getHeaderShadowSoftness, getHeaderShadowVOffset, getHeaderSpan, getHeaderSpanContextMenuItems, getHeaderSpanHeight, getHeaderTitleStyle, getHeaderTitleVAlign, getHideEmptySummaryRow, getHideFilterEditorTitle, getHiliteCanReplaceValue, getHiliteEditorSpanTitleSeparator, getHiliteHTMLAfterFormat, getHiliteIconHeight, getHiliteIconLeftPadding, getHiliteIconPosition, getHiliteIconRightPadding, getHiliteIcons, getHiliteIconSize, getHiliteIconWidth, getHiliteProperty, getHiliteReplaceValueFieldTitle, getHiliteRowOnFocus, getHilites, getHiliteState, getHiliteViaAIMode, getHiliteViaAIText, getHoverMode, getHoverScreen, getHoverStyle, getIconCursor, getImageSize, getImplicitCriteria, getIncludeHilitesInSummaryFields, getIncludeInSummaryProperty, getInitialCriteria, getInitialSort, getInstantScrollTrackRedraw, getInvalidSummaryValue, getIsGrouped, getIsSeparatorProperty, getLastCellStyle, getLeaveScrollbarGap, getLinkTextProperty, getListEndEditAction, getLoadingDataMessage, getLoadingDataMessageStyle, getLoadingMessage, getLoadingRowCountDisplayIcoHeight, getLoadingRowCountDisplayIcon, getLoadingRowCountDisplayIconWidth, getLocateColumnsBy, getLocateRowsBy, getLongTextEditorThreshold, getLongTextEditorType, getMaxExpandedRecords, getMaxExpandedRecordsPrompt, getMaximumRowCountFormat, getMaxSummaryRowRecords, getMinFieldWidth, getMinHeight, getMinimumCellHeight, getMinimumRowCountFormat, getMissingSummaryFieldValue, getModalEditing, getMultiGroupDialogDefaults, getMultiGroupDialogProperties, getNavigateOnTab, getNeverValidate, getNewRecordRowMessage, getNewSearchText, getNormalBaseStyle, getNormalCellHeight, getNoSavedSearchesText, getNullGroupTitle, getOfflineMessageStyle, getOperatorIcon, getOriginalRecordList, getOriginalResultSet, getOriginBaseStyle, getOverflow, getPendingAsyncCellValue, getPlaceholderAIHoverContents, getPoolComponentsPerColumn, getPreserveFocusStylingOnMouseOut, getPreserveWhitespace, getPreventDuplicates, getPrintAutoFit, getPrintBaseStyle, getPrintBooleanBaseStyle, getPrintBooleanFalseImage, getPrintBooleanPartialImage, getPrintBooleanTrueImage, getPrintCheckboxFieldFalseImage, getPrintCheckboxFieldPartialImage, getPrintCheckboxFieldTrueImage, getPrintHeaderStyle, getPrintMaxRows, getPrintWrapCells, getProgressiveLoading, getQuickDrawAheadRatio, getRangeRowCountFormat, getRecordBaseStyleProperty, getRecordCanRemoveProperty, getRecordCanSelectProperty, getRecordCellRoleProperty, getRecordComponent, getRecordComponent, getRecordComponentHeight, getRecordComponentPoolingMode, getRecordComponentPosition, getRecordDetailDSProperty, getRecordDropPosition, getRecordEditProperty, getRecordEnabledProperty, getRecordIndex, getRecordIndex, getRecordList, getRecordRadius, getRecordRadiusTargets, getRecordRowAriaStateProperty, getRecordRowRoleProperty, getRecordScreen, getRecordShowRollOverProperty, getRecordSummaryAttributePrefix, getRecordSummaryBaseStyle, getRelatedDataSource, getRemovedCSSText, getRemoveFieldDefaults, getRemoveFieldProperties, getRemoveFieldTitle, getRemoveIcon, getRemoveIconSize, getRemoveIconStyle, getRemoveOperation, getReselectOnUpdate, getReselectOnUpdateNotifications, getResizeFieldsInRealTime, getResultSet, getReverseRTLAlign, getRollOverCanvas, getRollUnderCanvas, getRotatedHeaderMenuButtonHeight, getRotatedHeaderMenuButtonHeightAsString, getRotatedHeaderMenuButtonWidth, getRotateHeaderTitles, getRowAriaState, getRowCount, getRowCountDisplayPrecision, getRowCountRange, getRowCountStatus, getRowEndEditAction, getRowErrors, getRowHeight, getRowLocatorField, getRowLocatorFieldAsStringArray, getRowNum, getRowNumberField, getRowNumberStart, getRowNumberStyle, getRowPageTop, getRowRangeDisplay, getRowRangeDisplayStyle, getRowRangeDisplayValue, getRowRangeFormat, getRowRole, getRowSpan, getRowSpanEditMode, getRowSpanSelectionMode, getRowTop, getSaveByCell, getSaveCriteriaInViewState, getSaveDefaultSearch, getSavedSearchAdminRole, getSavedSearchAdminSeparator, getSavedSearchDS, getSavedSearchId, getSavedSearchStoredState, getSavedSearchText, getSavedViewState, getSaveLocally, getSaveRequestProperties, getScreenReaderCellSeparator, getScreenReaderIncludeFieldTitles, getScreenReaderNavigateByCell, getScreenReaderRowSeparator, getScreenReaderWriteRowLabelledBy, getScrollRedrawDelay, getScrollToCellXPosition, getScrollToCellYPosition, getScrollWheelRedrawDelay, getSearchForm, getSearchFormAsValuesManager, getSelectCellTextOnClick, getSelectedCellData, getSelectedRecords, getSelectedRecords, getSelectedState, getSelectHeaderOnSort, getSelection, getSelection, getSelectionAppearance, getSelectionType, getSelectOnEdit, getSelectOnExpandRecord, getSeparatorRowStyle, getShowAllColumns, getShowAllRecords, getShowAsynchGroupingPrompt, getShowBackgroundComponents, getShowCellContextMenus, getShowClippedHeaderTitlesOnHover, getShowClippedValuesOnHover, getShowCollapsedGroupSummary, getShowComplexFields, getShowDetailFields, getShowDropLines, getShowEllipsisWhenClipped, getShowEmptyMessage, getShowErrorIcons, getShowExpansionEditorSaveButton, getShowFilterEditor, getShowFilterEditorHovers, getShowFilterEditorTitle, getShowFilterWindowCriteriaIndicator, getShowGridSummary, getShowGroupSummary, getShowGroupSummaryInHeader, getShowGroupTitleColumn, getShowGroupTitleInFrozenBody, getShowHeader, getShowHeaderContextMenu, getShowHeaderMenuButton, getShowHeaderPartialSelection, getShowHeaderShadow, getShowHeaderSpanContextMenu, getShowHeaderSpanTitlesInFormulaBuilder, getShowHeaderSpanTitlesInHiliteEditor, getShowHeaderSpanTitlesInSortEditor, getShowHiddenFields, getShowHilitesInGroupSummary, getShowHover, getShowHoverComponents, getShowHoverOnDisabledCells, getShowInitialDragHandles, getShowNewRecordRow, getShowRecordComponents, getShowRecordComponentsByCell, getShowRollOver, getShowRollOverCanvas, getShowRollOverInExpansion, getShowRollUnderCanvas, getShowRowNumbers, getShowSavedSearchesByDS, getShowSelectedRollOverCanvas, getShowSelectedRollUnderCanvas, getShowSelectedStyle, getShowSelectionCanvas, getShowSelectionUnderCanvas, getShowSortArrow, getShowSortNumerals, getShowTreeColumnPicker, getShrinkForFreeze, getSingleCellValueProperty, getSkinImgDir, getSkipLineBreaks, getSort, getSortArrowMenuButtonSpaceOffset, getSortAscendingImage, getSortAscendingImageAsImgHTMLProperties, getSortBinaryByFileName, getSortByGroupFirst, getSortDescendingImage, getSortDescendingImageAsImgHTMLProperties, getSortDirection, getSortEditorSpanTitleSeparator, getSorterButtonTitle, getSortField, getSortFieldAscendingText, getSortFieldCount, getSortFieldDescendingText, getSortNumeralHTML, getSortNumeralMenuButtonSpaceOffset, getSortNumeralStyle, getSortSpecifier, getSortState, getSpanContextMenu, getSpannedHeaderBaseStyle, getSparseFieldState, getStopOnErrors, getStyledRowEnds, getStyleName, getSummaryFieldValue, getSummaryRow, getSummaryRowCriteria, getSummaryRowDataSource, getSummaryRowFetchRequestProperties, getSummaryRowHeight, getSummaryRowStyle, getTableRowStyle, getTallBaseStyle, getTestInstance, getTitleField, getTitleFieldValue, getToggleFreezeText, getTotalRows, getTouchScrollRedrawDelay, getTrackerImage, getTrackerImageAsImgHTMLProperties, getUnfreezeFieldText, getUngroupText, getUnknownRowCountDisplayValue, getUnremoveIcon, getUpdateOperation, getUpdateSummariesDuringEditing, getUseAdvancedCriteria, getUseAdvancedFieldPicker, getUseCellRollOvers, getUseClientFiltering, getUseCopyPasteShortcuts, getUseFlatFields, getUseMultiSelectForFilterValueMaps, getUserCriteriaState, getUseRemoteValidators, getUseRowSpanStyling, getValidateByCell, getValidateOnChange, getValueIcon, getValueIconCursor, getValueIconHeight, getValueIconLeftPadding, getValueIconRightPadding, getValueIconSize, getValueIconWidth, getViewState, getVirtualScrolling, getVisibleRows, getWaitForSave, getWarnOnRemoval, getWarnOnRemovalMessage, getWarnOnUnmappedValueFieldChange, getWrapCells, getWrapHeaderSpanTitles, getWrapHeaderTitles, groupBy, groupSortNormalizer, hasChanges, hasChanges, hasErrors, headerHoverHTML, headerTitleClipped, hideDragHandles, hideField, hideField, hideFields, hideFields, hideFields, hideFields, invalidateCache, invalidateRecordComponents, isCheckboxField, isExpanded, isExpansionField, isGrouped, isGroupNode, isPartiallySelected, isRowNumberField, isSelected, isSortField, isSummaryRecord, markForRedraw, markForRedraw, markRecordRemoved, markRecordsRemoved, markRecordsRemoved, markRecordsRemoved, markSelectionRemoved, onInit_ListGrid, openGroup, openRecordDetailGrid, openRecordEditor, preloadImages, recalculateGridSummary, recalculateSummaries, recalculateSummaries, recalculateSummaries, recordClick, recordMarkedAsRemoved, redrawHeader, refreshCell, refreshCell, refreshCellStyle, refreshData, refreshData, refreshFields, refreshRecordComponent, refreshRecordComponent, refreshRow, regroup, removeData, removeData, removeData, removeEmbeddedComponent, removeEmbeddedComponent, removeEmbeddedComponent, removeRecordClick, removeSelectedData, removeSelectedData, removeSelectedData, removeSelectedData, reorderField, reorderFields, resizeField, resort, rowClick, rowClick, rowDoubleClick, rowDoubleClick, rowHasChanges, rowHasChanges, rowHasErrors, saveAllEdits, saveAllEdits, saveAllEdits, saveEdits, saveEdits, saveEdits, saveEdits, scrollBodyTo, scrollToCell, scrollToCell, scrollToCell, scrollToColumn, scrollToColumn, scrollToRow, scrollToRow, selectAllRecords, selectRange, selectRange, selectRecord, selectRecord, selectRecord, selectRecord, selectRecords, selectRecords, selectRecords, selectRecords, selectSingleRecord, selectSingleRecord, setAddDropValues, setAddFormulaFieldText, setAddOperation, setAddSummaryFieldText, setAdvancedFieldPickerThreshold, setAdvancedFilteringText, setAiFilterWindowHint, setAiFilterWindowInstructions, setAiFilterWindowTitle, setAiHoverContentsPrefix, setAiHoverRetryDelay, setAiSortFieldMaxRecordsMessage, setAllowFilterExpressions, setAllowFilterOperators, setAllowFilterWindow, setAllowRowSpanning, setAlternateBodyStyleName, setAlternateFieldFrequency, setAlternateFieldStyles, setAlternateFieldSuffix, setAlternateRecordFrequency, setAlternateRecordStyles, setAlternateRecordSuffix, setAlwaysShowEditors, setAlwaysShowOperatorIcon, setAnimateRemoveRecord, setAnimateRemoveSpeed, setAnimateRemoveTime, setAnimateRollOver, setAnimateRollUnder, setAnimateSelection, setAnimateSelectionUnder, setApplyFormulaAfterSummary, setApplyRowCountToLength, setApplyRowNumberStyle, setApproximateRowCountFormat, setAriaRole, setArrowKeyAction, setArrowKeyEditAction, setAsyncErrorCellValue, setAsynchGroupingPrompt, setAsyncMissingCellValue, setAutoChildProperties, setAutoComplete, setAutoConfirmSaveEdits, setAutoFetchAsFilter, setAutoFetchData, setAutoFetchDisplayMap, setAutoFetchRowCount, setAutoFitAllText, setAutoFitClipFields, setAutoFitData, setAutoFitDateFields, setAutoFitExpandField, setAutoFitExtraRecords, setAutoFitFieldsFillViewport, setAutoFitFieldText, setAutoFitFieldWidths, setAutoFitHeaderHeights, setAutoFitIconFields, setAutoFitMaxColumns, setAutoFitMaxHeight, setAutoFitMaxRecords, setAutoFitMaxWidth, setAutoFitMaxWidth, setAutoFitTimeFields, setAutoFitWidth, setAutoFitWidthApproach, setAutoPersistViewState, setAutoSaveEdits, setAutoSizeHeaderSpans, setBadFormulaResultValue, setBaseStyle, setBlockingRowCountFetch, setBodyBackgroundColor, setBodyOverflow, setBodyStyleName, setBooleanBaseStyle, setBooleanFalseImage, setBooleanImageHeight, setBooleanImageWidth, setBooleanPartialImage, setBooleanTrueImage, setBriefRowRangeDisplayValue, setCanAddAISortFields, setCanAddFormulaFields, setCanAddSummaryFields, setCanAutoFitFields, setCancelEditingConfirmationMessage, setCanCollapseGroup, setCanDragSelect, setCanDragSelectText, setCanDropInEmptyArea, setCanEdit, setCanEditFieldAttribute, setCanEditHilites, setCanEditTitles, setCanExpandMultipleRecords, setCanExpandRecordProperty, setCanExpandRecords, setCanFocusInEmptyGrid, setCanFreezeFields, setCanGroupBy, setCanHiliteViaAI, setCanHover, setCanMultiGroup, setCanMultiSort, setCanPickFields, setCanPickOmittedFields, setCanRemoveRecords, setCanReorderFields, setCanRequestRowCount, setCanResizeFields, setCanSaveSearches, setCanSelectCells, setCanSelectGroups, setCanSelectRecordCustomizer, setCanSelectSummaryRows, setCanShowFilterEditor, setCanSort, setCanTabToHeader, setCanTabToSorter, setCellContextMenuItemsCustomizer, setCellCSSTextCustomizer, setCellFormatter, setCellHeight, setCellPadding, setCellRole, setChartConstructor, setChartType, setCheckboxFieldFalseImage, setCheckboxFieldImageHeight, setCheckboxFieldImageWidth, setCheckboxFieldPartialImage, setCheckboxFieldProperties, setCheckboxFieldTrueImage, setChildExpansionMode, setClearAllSortingText, setClearCriteriaOnFilterEditorHide, setClearFilterText, setClearFilterViaAIText, setClearSortFieldText, setClipHeaderTitles, setCollapseGroupOnRowClick, setConfigureGroupingText, setConfigureSortText, setConfirmCancelEditing, setConfirmDiscardEdits, setConfirmDiscardEditsMessage, setCriteria, setCriteriaIndicatorColor, setCriteriaIndicatorHeaderColor, setData, setData, setData, setDataFetchDelay, setDataPageSize, setDataProperties, setDataSource, setDataSource, setDataSource, setDateFormatter, setDateInputFormat, setDatetimeFormatter, setDeepCloneOnEdit, setDefaultDateFieldWidth, setDefaultDateTimeFieldWidth, setDefaultEditableDateFieldWidth, setDefaultEditableDateTimeFieldWidth, setDefaultFields, setDefaultFieldWidthCustomizer, setDefaultFilterOperator, setDefaultFilterOperatorSuffix, setDefaultProperties, setDefaultTimeFieldWidth, setDeferRemoval, setDeselectOnPartialCheckboxClick, setDetailDS, setDetailDS, setDetailField, setDisabledGroupByPrompt, setDiscardEditsOnHideField, setDiscardEditsSaveButtonTitle, setDontAutoDestroyComponent, setDragDataAction, setDragDataCustomizer, setDragHandleFieldTitle, setDragHandleIcon, setDragHandleIconSize, setDragScrollRedrawDelay, setDragTrackerIconCustomizer, setDragTrackerMode, setDragTrackerStyle, setDragTrackerTitleCustomizer, setDrawAheadRatio, setDrawAllMaxCells, setDropValues, setDuplicateDragMessage, setEditByCell, setEditEvent, setEditFailedBaseStyle, setEditFailedCSSText, setEditFormulaFieldText, setEditOnF2Keypress, setEditOnFocus, setEditorCustomizer, setEditorValueMap, setEditorValueMap, setEditPendingBaseStyle, setEditPendingCSSText, setEditPendingMarkerStyle, setEditProxyConstructor, setEditSelectionType, setEditSummaryFieldText, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValue, setEditValues, setEmbeddedComponentIndent, setEmbeddedComponentMargin, setEmptyAIHoverContents, setEmptyCellValue, setEmptyMessage, setEmptyMessageStyle, setEmptyRowRangeDisplayValue, setEnforceVClipping, setEnterKeyEditAction, setEnumCriteriaAsInitialValues, setErrorIconHeight, setErrorIconSrc, setErrorIconWidth, setEscapeKeyEditAction, setExactRowCountFormat, setExpansionCanEdit, setExpansionComponentPoolingMode, setExpansionEditorSaveDialogPrompt, setExpansionEditorShowSaveDialog, setExpansionFieldFalseImage, setExpansionFieldImageHeight, setExpansionFieldImageShowRTL, setExpansionFieldImageShowSelected, setExpansionFieldImageStyle, setExpansionFieldImageWidth, setExpansionFieldTrueImage, setExpansionIndent, setExpansionMode, setExpansionScreen, setExplicitFetchDelay, setExportAll, setExportAlternateRowBGColor, setExportDefaultBGColor, setExportFieldAlignments, setExportFields, setExportFieldWidths, setExportHeaderHeights, setExportHiddenFieldWidth, setExportIncludeSummaries, setExportRawNumbers, setExportRawValues, setExportWidthScale, setExportWrapHeaderTitles, setFastCellUpdates, setFetchDelay, setFetchFields, setFetchFields, setFetchOperation, setFetchRequestProperties, setFieldButtonProperties, setFieldCellIcon, setFieldCriteriaText, setFieldError, setFieldError, setFieldHeaderBaseStyle, setFieldHeaderTitleStyle, setFieldIcon, setFieldMaxWidth, setFieldMinWidth, setFieldPickerFieldProperties, setFieldPickerShowSampleValues, setFieldProperties, setFieldProperties, setFields, setFields, setFieldSearchOperator, setFieldState, setFieldTitle, setFieldTitle, setFieldVisibilitySubmenuTitle, setFilterButtonPrompt, setFilterButtonProperties, setFilterByCell, setFilterEditorCriteria, setFilterEditorHeight, setFilterEditorProperties, setFilterEditorProperties, setFilterLocalData, setFilterOnKeypress, setFilterUsingText, setFilterViaAIMode, setFilterViaAIPanelInstructions, setFilterViaAIText, setFilterWindowCriteria, setFilterWindowInstructions, setFilterWindowTitle, setFirstCellStyle, setFixedFieldWidths, setFixedRecordHeights, setFormulaBuilderSpanTitleSeparator, setFreezeFieldText, setFrozenBaseStyle, setFrozenFieldsMaxWidth, setFrozenFieldsMaxWidth, setFrozenHeaderBaseStyle, setFrozenHeaderTitleStyle, setFullRowRangeDisplayValue, setGenerateClickOnEnter, setGenerateClickOnSpace, setGenerateDoubleClickOnEnter, setGenerateDoubleClickOnSpace, setGridAdditionalCriteriaText, setGridComponents, setGridComponents, setGridSummaryRecordProperty, setGroupByAsyncThreshold, setGroupByFieldSummaries, setGroupByMaxRecords, setGroupByMaxRecordsExceededMessage, setGroupByText, setGroupIcon, setGroupIconSize, setGroupIconStyle, setGroupIndentSize, setGroupLeadingIndent, setGroupNodeBaseStyle, setGroupNodeStyle, setGroupSortDirection, setGroupSortNormalizer, setGroupStartOpen, setGroupStartOpen, setGroupState, setGroupSummaryRecordProperty, setGroupSummaryStyle, setGroupTitleColumnProperties, setGroupTitleField, setHeaderAriaRole, setHeaderAutoFitEvent, setHeaderBackgroundColor, setHeaderBarStyle, setHeaderBaseStyle, setHeaderButtonAriaRole, setHeaderButtonAriaState, setHeaderButtonProperties, setHeaderHeight, setHeaderHoverAlign, setHeaderHoverFormatter, setHeaderHoverHeight, setHeaderHoverOpacity, setHeaderHoverStyle, setHeaderHoverVAlign, setHeaderHoverWidth, setHeaderHoverWrap, setHeaderMenuButtonHeight, setHeaderMenuButtonHeight, setHeaderMenuButtonIcon, setHeaderMenuButtonIconHeight, setHeaderMenuButtonIconWidth, setHeaderMenuButtonSnapOffsetLeft, setHeaderMenuButtonWidth, setHeaderRadius, setHeaderShadowColor, setHeaderShadowHOffset, setHeaderShadowSoftness, setHeaderShadowVOffset, setHeaderSpanBaseStyle, setHeaderSpanButtonProperties, setHeaderSpanHeaderTitle, setHeaderSpanHeight, setHeaderSpans, setHeaderSpanTitle, setHeaderSpanTitleStyle, setHeaderTitleStyle, setHeaderTitleVAlign, setHideEmptySummaryRow, setHideFilterEditorTitle, setHideOnPhone, setHideOnTablet, setHiliteCanReplaceValue, setHiliteEditorSpanTitleSeparator, setHiliteHTMLAfterFormat, setHiliteIconHeight, setHiliteIconLeftPadding, setHiliteIconPosition, setHiliteIconRightPadding, setHiliteIcons, setHiliteIconSize, setHiliteIconWidth, setHiliteProperty, setHiliteReplaceValueFieldTitle, setHiliteRowOnFocus, setHilites, setHiliteState, setHiliteViaAIMode, setHiliteViaAIText, setHoverCustomizer, setHoverMode, setHoverScreen, setHoverStyle, setIconCursor, setImageSize, setImplicitCriteria, setImplicitCriteria, setImplicitCriteria, setInactiveCellFormatter, setIncludeHilitesInSummaryFields, setIncludeInSummaryProperty, setInitialCriteria, setInitialSort, setInstantScrollTrackRedraw, setInvalidSummaryValue, setIsSeparatorProperty, setLastCellStyle, setLeaveHeaderMenuButtonSpace, setLeaveScrollbarGap, setLinkTextProperty, setListEndEditAction, setLoadingDataMessage, setLoadingDataMessageStyle, setLoadingMessage, setLoadingRowCountDisplayIcoHeight, setLoadingRowCountDisplayIcon, setLoadingRowCountDisplayIconWidth, setLocateColumnsBy, setLocateRowsBy, setLogicalStructure, setLongTextEditorThreshold, setLongTextEditorType, setMaxExpandedRecords, setMaxExpandedRecordsPrompt, setMaximumRowCountFormat, setMaxSummaryRowRecords, setMinFieldWidth, setMinHeight, setMinimumCellHeight, setMinimumRowCountFormat, setMissingSummaryFieldValue, setModalEditing, setMultiGroupDialogDefaults, setMultiGroupDialogProperties, setMultiSortDialogDefaults, setMultiSortDialogProperties, setNavigateOnTab, setNeverValidate, setNewRecordRowMessage, setNewSearchText, setNormalBaseStyle, setNormalCellHeight, setNoSavedSearchesText, setNullGroupTitle, setOfflineMessageStyle, setOriginBaseStyle, setOverflow, setPendingAsyncCellValue, setPlaceholderAIHoverContents, setPoolComponentsPerColumn, setPreserveFocusStylingOnMouseOut, setPreserveWhitespace, setPreventDuplicates, setPrintAutoFit, setPrintBaseStyle, setPrintBooleanBaseStyle, setPrintBooleanFalseImage, setPrintBooleanPartialImage, setPrintBooleanTrueImage, setPrintCheckboxFieldFalseImage, setPrintCheckboxFieldPartialImage, setPrintCheckboxFieldTrueImage, setPrintHeaderStyle, setPrintMaxRows, setPrintWrapCells, setProgressiveLoading, setQuickDrawAheadRatio, setRangeRowCountFormat, setRecordBaseStyleProperty, setRecordCanRemoveProperty, setRecordCanSelectProperty, setRecordCellRoleProperty, setRecordComponentHeight, setRecordComponentPoolingMode, setRecordComponentPosition, setRecordDetailDSProperty, setRecordEditProperty, setRecordEnabledProperty, setRecordRadius, setRecordRadiusTargets, setRecordRowAriaStateProperty, setRecordRowRoleProperty, setRecords, setRecordScreen, setRecordShowRollOverProperty, setRecordSummaryAttributePrefix, setRecordSummaryBaseStyle, setRemovedCSSText, setRemoveFieldProperties, setRemoveFieldTitle, setRemoveIcon, setRemoveIconSize, setRemoveIconStyle, setRemoveOperation, setReselectOnUpdate, setReselectOnUpdateNotifications, setResizeFieldsInRealTime, setReverseRTLAlign, setRollOverCanvasProperties, setRollUnderCanvasProperties, setRotatedHeaderMenuButtonHeight, setRotatedHeaderMenuButtonHeight, setRotatedHeaderMenuButtonWidth, setRotateHeaderTitles, setRowAriaState, setRowCountDisplayPrecision, setRowEndEditAction, setRowErrors, setRowErrors, setRowLocatorField, setRowLocatorField, setRowNumberFieldProperties, setRowNumberStart, setRowNumberStyle, setRowRangeDisplayStyle, setRowRangeFormat, setRowRole, setRowSpanEditMode, setRowSpanSelectionMode, setSaveByCell, setSaveCriteriaInViewState, setSaveDefaultSearch, setSavedSearchAdminRole, setSavedSearchDS, setSavedSearchId, setSavedSearchStoredState, setSavedSearchText, setSaveLocally, setSaveRequestProperties, setScreenReaderCellSeparator, setScreenReaderIncludeFieldTitles, setScreenReaderNavigateByCell, setScreenReaderRowSeparator, setScreenReaderWriteRowLabelledBy, setScrollRedrawDelay, setScrollToCellXPosition, setScrollToCellYPosition, setScrollWheelRedrawDelay, setSearchForm, setSearchForm, setSelectCellTextOnClick, setSelectedState, setSelectHeaderOnSort, setSelectionAppearance, setSelectionCanvasProperties, setSelectionType, setSelectionUnderCanvasProperties, setSelectOnEdit, setSelectOnExpandRecord, setSeparatorRowStyle, setShowAllColumns, setShowAllRecords, setShowAsynchGroupingPrompt, setShowBackgroundComponents, setShowCellContextMenus, setShowClippedHeaderTitlesOnHover, setShowClippedValuesOnHover, setShowCollapsedGroupSummary, setShowComplexFields, setShowDetailFields, setShowDropLines, setShowEllipsisWhenClipped, setShowEmptyMessage, setShowErrorIcons, setShowFilterEditor, setShowFilterEditorHovers, setShowFilterEditorTitle, setShowFilterWindowCriteriaIndicator, setShowGridSummary, setShowGroupSummary, setShowGroupSummaryInHeader, setShowGroupTitleColumn, setShowGroupTitleInFrozenBody, setShowHeader, setShowHeaderContextMenu, setShowHeaderMenuButton, setShowHeaderPartialSelection, setShowHeaderShadow, setShowHeaderSpanContextMenu, setShowHeaderSpanTitlesInFormulaBuilder, setShowHeaderSpanTitlesInHiliteEditor, setShowHeaderSpanTitlesInSortEditor, setShowHiddenFields, setShowHilitesInGroupSummary, setShowHover, setShowHoverComponents, setShowHoverOnDisabledCells, setShowInitialDragHandles, setShowNewRecordRow, setShowRecordComponents, setShowRecordComponentsByCell, setShowRollOver, setShowRollOverCanvas, setShowRollOverInExpansion, setShowRollUnderCanvas, setShowRowNumbers, setShowSavedSearchesByDS, setShowSelectedRollOverCanvas, setShowSelectedRollUnderCanvas, setShowSelectedStyle, setShowSelectionCanvas, setShowSelectionUnderCanvas, setShowSortArrow, setShowSortNumerals, setShowTreeColumnPicker, setShrinkForFreeze, setSingleCellValueProperty, setSkinImgDir, setSkipLineBreaks, setSort, setSortArrowMenuButtonSpaceOffset, setSortAscendingImage, setSortAscendingImage, setSortBinaryByFileName, setSortByGroupFirst, setSortDescendingImage, setSortDescendingImage, setSortDirection, setSortEditorSpanTitleSeparator, setSorterButtonTitle, setSortField, setSortField, setSortField, setSortFieldAscendingText, setSortFieldDescendingText, setSortNumeralHTMLCustomizer, setSortNumeralMenuButtonSpaceOffset, setSortNumeralStyle, setSortState, setSpannedHeaderBaseStyle, setSparseFieldState, setStopOnErrors, setStyledRowEnds, setStyleName, setSummaryRowCriteria, setSummaryRowDataSource, setSummaryRowFetchRequestProperties, setSummaryRowHeight, setSummaryRowStyle, setTableRowStyle, setTallBaseStyle, setTitleField, setTouchScrollRedrawDelay, setTrackerImage, setTrackerImage, setUnfreezeFieldText, setUngroupText, setUnknownRowCountDisplayValue, setUnremoveIcon, setUpdateOperation, setUpdateSummariesDuringEditing, setUseAdvancedCriteria, setUseAdvancedFieldPicker, setUseCellRollOvers, setUseClientFiltering, setUseCopyPasteShortcuts, setUseFlatFields, setUseMultiSelectForFilterValueMaps, setUserAIFilterRequest, setUserAIFilterRequest, setUserAIFilterRequest, setUserCriteriaState, setUseRemoteValidators, setUserFormula, setUserFormula, setUserFormula, setUserFormulaText, setUserFormulaText, setUserFormulaText, setUseRowSpanStyling, setUserSummary, setUserSummary, setUserSummary, setUserSummaryText, setUserSummaryText, setUserSummaryText, setValidateByCell, setValidateOnChange, setValueIconHeight, setValueIconLeftPadding, setValueIconRightPadding, setValueIconSize, setValueIconWidth, setValueMap, setValueMap, setViewState, setVirtualScrolling, setWaitForSave, setWarnOnRemoval, setWarnOnRemovalMessage, setWarnOnUnmappedValueFieldChange, setWrapCells, setWrapHeaderSpanTitles, setWrapHeaderTitles, shouldIncludeHiliteInSummaryField, showAIFilterWindow, showAIHiliteWindow, showDragHandles, showField, showField, showFields, showFields, showFields, showFields, showFilterWindow, showRecordComponent, sort, sort, sort, sort, startEditing, startEditing, startEditing, startEditing, startEditingNew, startEditingNew, startEditingNew, stopHover, summaryUpdated, toggleSort, transferRecords, transferSelectedData, transferSelectedData, unfreezeField, unfreezeField, unfreezeField, unfreezeField, unfreezeFields, unfreezeFields, ungroup, unmarkRecordRemoved, unsort, updateData, updateData, updateData, updateRecordComponent, userSelectAllRecords, validateCell, validateCell, validateRow, willFetchData, willFetchData
Methods inherited from class com.smartgwt.client.widgets.layout.VLayout
setDefaultProperties, setLogicalStructure
Methods inherited from class com.smartgwt.client.widgets.layout.Layout
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getChildTabPosition, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutEndMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutStartMargin, getLayoutTopMargin, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberLength, getMinMemberSize, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, 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, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutEndMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutStartMargin, setLayoutTopMargin, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinBreadthMember, setMinBreadthMember, setMinBreadthMember, setMinMemberLength, setMinMemberSize, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setStackZIndex, setVertical, setVisibleMember, setVPolicy, showMember, showMember
Methods inherited from class com.smartgwt.client.widgets.Canvas
addChild, 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, 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, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, 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, 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, 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, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getTabIndex, getTestDataContext, 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, 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, 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, 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, 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, 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, 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, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, 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, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint
Methods inherited from class com.smartgwt.client.widgets.BaseWidget
addDrawHandler, 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, toString
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.smartgwt.client.widgets.DataBoundComponent
getOrCreateJsObj
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Constructor Details
-
TreeGrid
public TreeGrid() -
TreeGrid
-
-
Method Details
-
getOrCreateRef
-
changeAutoChildDefaults
Changes 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, seeSGWTProperties
.- See Also:
-
changeAutoChildDefaults
Changes 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, seeSGWTProperties
.- See Also:
-
create
-
setAlwaysShowOpener
IfshowOpener
is true, should we display the opener icon for folders even if they have no children?Note that for trees which
load data on demand
, we may not know if a folder has any descendants if it has never been opened. As such we will show the opener icon next to the folder. Once the user opens the icon and a fetch occurs, if the folder is empty, and this property is false, the opener icon will be hidden.For more information on load on demand trees, and how we determine whether a node is a a folder or a leaf, please refer to the
TreeDataBinding
documentation.- Parameters:
alwaysShowOpener
- New alwaysShowOpener value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getAlwaysShowOpener
IfshowOpener
is true, should we display the opener icon for folders even if they have no children?Note that for trees which
load data on demand
, we may not know if a folder has any descendants if it has never been opened. As such we will show the opener icon next to the folder. Once the user opens the icon and a fetch occurs, if the folder is empty, and this property is false, the opener icon will be hidden.For more information on load on demand trees, and how we determine whether a node is a a folder or a leaf, please refer to the
TreeDataBinding
documentation.- Returns:
- Current alwaysShowOpener value. Default value is false
-
setAnimateFolderEffect
When animating folder opening / closing, this property can be set to apply an animated acceleration effect. This allows the animation speed to be "weighted", for example expanding or collapsing at a faster rate toward the beginning of the animation than at the end.- Overrides:
setAnimateFolderEffect
in classListGrid
- Parameters:
animateFolderEffect
- New animateFolderEffect value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getAnimateFolderEffect
When animating folder opening / closing, this property can be set to apply an animated acceleration effect. This allows the animation speed to be "weighted", for example expanding or collapsing at a faster rate toward the beginning of the animation than at the end.- Overrides:
getAnimateFolderEffect
in classListGrid
- Returns:
- Current animateFolderEffect value. Default value is null
-
setAnimateFolderMaxRows
IfanimateFolders
is true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.- Overrides:
setAnimateFolderMaxRows
in classListGrid
- Parameters:
animateFolderMaxRows
- New animateFolderMaxRows value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getAnimateFolderMaxRows
IfanimateFolders
is true for this grid, this number can be set to designate the maximum number of rows to animate at a time when opening / closing a folder.- Overrides:
getAnimateFolderMaxRows
in classListGrid
- Returns:
- If
animateFolders
is true for this treeGrid, this method returns the the maximum number of rows to animate at a time when opening / closing a folder. This method will returnanimateFolderMaxRows
if set. Otherwise the value will be calculated as 3x the number of rows required to fill a viewport, capped at a maximum value of 75. Default value is null - See Also:
-
setAnimateFolders
If true, when folders are opened / closed children will be animated into view.Folder animations are automatically disabled if
ListGrid.autoFitData
is set to "vertical" or "both", or ifrecords components
are used.- Overrides:
setAnimateFolders
in classListGrid
- Parameters:
animateFolders
- New animateFolders value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getAnimateFolders
If true, when folders are opened / closed children will be animated into view.Folder animations are automatically disabled if
ListGrid.autoFitData
is set to "vertical" or "both", or ifrecords components
are used.- Overrides:
getAnimateFolders
in classListGrid
- Returns:
- Current animateFolders value. Default value is true
- See Also:
-
setAnimateFolderSpeed
When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second. Takes precedence over theanimateFolderTime
property, which allows the developer to specify a duration for the animation rather than a speed.- Overrides:
setAnimateFolderSpeed
in classListGrid
- Parameters:
animateFolderSpeed
- New animateFolderSpeed value. Default value is 3000- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getAnimateFolderSpeed
public int getAnimateFolderSpeed()When animating folder opening / closing, this property designates the speed of the animation in pixels shown (or hidden) per second. Takes precedence over theanimateFolderTime
property, which allows the developer to specify a duration for the animation rather than a speed.- Overrides:
getAnimateFolderSpeed
in classListGrid
- Returns:
- Current animateFolderSpeed value. Default value is 3000
- See Also:
-
setAnimateFolderTime
When animating folder opening / closing, ifanimateFolderSpeed
is not set, this property designates the duration of the animation in ms.- Overrides:
setAnimateFolderTime
in classListGrid
- Parameters:
animateFolderTime
- New animateFolderTime value. Default value is 100- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getAnimateFolderTime
public int getAnimateFolderTime()When animating folder opening / closing, ifanimateFolderSpeed
is not set, this property designates the duration of the animation in ms.- Overrides:
getAnimateFolderTime
in classListGrid
- Returns:
- Current animateFolderTime value. Default value is 100
- See Also:
-
setAutoAssignTreeField
If this grid was passed an explicit set of fields, but no field was specified as the "tree-field" (showing indentations for tree hierarchy and tree icons), should we assign one of the other fields to be the tree-field?When true, if we're showing a field for the
Tree.titleProperty
of the tree, this will be displayed as a Tree Field by default. If not, the first entry in the specified fields array will be used.This may be set to false to display a tree or partial tree as a flattened list within a TreeGrid.
- Parameters:
autoAssignTreeField
- New autoAssignTreeField value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getAutoAssignTreeField
public boolean getAutoAssignTreeField()If this grid was passed an explicit set of fields, but no field was specified as the "tree-field" (showing indentations for tree hierarchy and tree icons), should we assign one of the other fields to be the tree-field?When true, if we're showing a field for the
Tree.titleProperty
of the tree, this will be displayed as a Tree Field by default. If not, the first entry in the specified fields array will be used.This may be set to false to display a tree or partial tree as a flattened list within a TreeGrid.
- Returns:
- Current autoAssignTreeField value. Default value is true
-
setAutoFetchTextMatchStyle
public TreeGrid setAutoFetchTextMatchStyle(TextMatchStyle autoFetchTextMatchStyle) throws IllegalStateException WithloadDataOnDemand
:true, TreeGrids fetch data by selecting the child nodes of each parent, which should be exact match, so we default toautoFetchTextMatchStyle:"exact"
when autoFetchData is true.See
ListGrid.autoFetchTextMatchStyle
for details.- Specified by:
setAutoFetchTextMatchStyle
in interfaceDataBoundComponent
- Overrides:
setAutoFetchTextMatchStyle
in classListGrid
- Parameters:
autoFetchTextMatchStyle
- New autoFetchTextMatchStyle value. Default value is "exact"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getAutoFetchTextMatchStyle
WithloadDataOnDemand
:true, TreeGrids fetch data by selecting the child nodes of each parent, which should be exact match, so we default toautoFetchTextMatchStyle:"exact"
when autoFetchData is true.See
ListGrid.autoFetchTextMatchStyle
for details.- Specified by:
getAutoFetchTextMatchStyle
in interfaceDataBoundComponent
- Overrides:
getAutoFetchTextMatchStyle
in classListGrid
- Returns:
- Current autoFetchTextMatchStyle value. Default value is "exact"
- See Also:
-
setAutoOpenTree
Which nodes should be opened automatically. This applies directly toResultTree.autoOpen
.- Parameters:
autoOpenTree
- New autoOpenTree value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getAutoOpenTree
Which nodes should be opened automatically. This applies directly toResultTree.autoOpen
.- Returns:
- Current autoOpenTree value. Default value is null
-
setAutoPreserveOpenState
public TreeGrid setAutoPreserveOpenState(PreserveOpenState autoPreserveOpenState) throws IllegalStateException For dataBound treeGrids this specifies theResultTree.autoPreserveOpenState
, governing whether the open state of the tree should be preserved when new data arrives due to cache invalidation.- Parameters:
autoPreserveOpenState
- New autoPreserveOpenState value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getAutoPreserveOpenState
For dataBound treeGrids this specifies theResultTree.autoPreserveOpenState
, governing whether the open state of the tree should be preserved when new data arrives due to cache invalidation.- Returns:
- Current autoPreserveOpenState value. Default value is null
-
setCanAcceptDroppedRecords
Indicates whether records can be dropped into this listGrid.- Overrides:
setCanAcceptDroppedRecords
in classListGrid
- Parameters:
canAcceptDroppedRecords
- New canAcceptDroppedRecords value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanAcceptDroppedRecords
Indicates whether records can be dropped into this listGrid.- Overrides:
getCanAcceptDroppedRecords
in classListGrid
- Returns:
- Current canAcceptDroppedRecords value. Default value is false
- See Also:
-
setCanDragRecordsOut
Indicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If
canDragRecordsOut
is initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrolling
so that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles
. IfCanvas.disableTouchScrollingForDrag
is set totrue
, then touch scrolling will be disabled automatically. However, foraccessibility
reasons, 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.- Overrides:
setCanDragRecordsOut
in classListGrid
- Parameters:
canDragRecordsOut
- New canDragRecordsOut value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanDragRecordsOut
Indicates whether records can be dragged from this listGrid and dropped elsewhere.NOTE: If
canDragRecordsOut
is initially enabled or might be dynamically enabled after the grid is created, it may be desirable to disabletouch scrolling
so that touch-dragging a record starts a drag operation rather than a scroll, but see the discussion ofdrag handles
. IfCanvas.disableTouchScrollingForDrag
is set totrue
, then touch scrolling will be disabled automatically. However, foraccessibility
reasons, 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.- Overrides:
getCanDragRecordsOut
in classListGrid
- Returns:
- Current canDragRecordsOut value. Default value is false
- See Also:
-
setCanDropOnLeaves
Whether drops are allowed on leaf nodes.Dropping is ordinarily not allowed on leaf nodes unless
canReorderRecords
is set.The default action for a drop on a leaf node is to place the node in that leaf's parent folder. This can be customized by overriding
folderDrop()
.Note that enabling
canDropOnLeaves
is usually only appropriate where you intend to add a customfolderDrop()
implementation that does not add a child node under the leaf. If you want to add a child nodes to a leaf, instead of enabling canDropOnLeaves, use empty folders instead - seeTree.isFolder()
for how to control whether a node is considered a folder.Note : This is an advanced setting
- Parameters:
canDropOnLeaves
- New canDropOnLeaves value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanDropOnLeaves
Whether drops are allowed on leaf nodes.Dropping is ordinarily not allowed on leaf nodes unless
canReorderRecords
is set.The default action for a drop on a leaf node is to place the node in that leaf's parent folder. This can be customized by overriding
folderDrop()
.Note that enabling
canDropOnLeaves
is usually only appropriate where you intend to add a customfolderDrop()
implementation that does not add a child node under the leaf. If you want to add a child nodes to a leaf, instead of enabling canDropOnLeaves, use empty folders instead - seeTree.isFolder()
for how to control whether a node is considered a folder.- Returns:
- Current canDropOnLeaves value. Default value is false
- See Also:
-
setCanDropSiblingAfterLastNode
When performing a drag and drop to add or move data within the tree, should users be able to make the dropped node a sibling of the last node in the tree by dropping just below it?When set to true, if a user performs a drop action in the space immediately below the last node, (less than half the grid's specified cellHeight away), the dropped data will be added to the parent of that last node, making them siblings. If the parent
will not accept drops
, the dropped data will be added to the first ancestor that will accept a drop.If the user performs the drop lower down in the empty area below the last row, of if this property is set to
false
, the dropped data will be added as a last child to the root node instead.Note : This is an advanced setting
- Parameters:
canDropSiblingAfterLastNode
- New canDropSiblingAfterLastNode value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getCanDropSiblingAfterLastNode
public boolean getCanDropSiblingAfterLastNode()When performing a drag and drop to add or move data within the tree, should users be able to make the dropped node a sibling of the last node in the tree by dropping just below it?When set to true, if a user performs a drop action in the space immediately below the last node, (less than half the grid's specified cellHeight away), the dropped data will be added to the parent of that last node, making them siblings. If the parent
will not accept drops
, the dropped data will be added to the first ancestor that will accept a drop.If the user performs the drop lower down in the empty area below the last row, of if this property is set to
false
, the dropped data will be added as a last child to the root node instead.- Returns:
- Current canDropSiblingAfterLastNode value. Default value is true
-
setCanReorderRecords
Indicates whether records can be reordered by dragging within thisListGrid
.NOTE: If
canReorderRecords
is initially enabled or might bedynamically enabled
after the grid is created, it may be desirable to disabletouch scrolling
so that touch-dragging a record starts a reorder operation rather than a scroll, but see the discussion ofdrag handles
. IfCanvas.disableTouchScrollingForDrag
is set totrue
, then touch scrolling will be disabled automatically. However, foraccessibility
reasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-reordering of records.Note : This is an advanced setting
- Overrides:
setCanReorderRecords
in classListGrid
- Parameters:
canReorderRecords
- New canReorderRecords value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanReorderRecords
Indicates whether records can be reordered by dragging within thisListGrid
.NOTE: If
canReorderRecords
is initially enabled or might bedynamically enabled
after the grid is created, it may be desirable to disabletouch scrolling
so that touch-dragging a record starts a reorder operation rather than a scroll, but see the discussion ofdrag handles
. IfCanvas.disableTouchScrollingForDrag
is set totrue
, then touch scrolling will be disabled automatically. However, foraccessibility
reasons, it is recommended to leave touch scrolling enabled and provide an alternative set of controls that can be used to perform drag-reordering of records.- Overrides:
getCanReorderRecords
in classListGrid
- Returns:
- Current canReorderRecords value. Default value is false
- See Also:
-
setCanReparentNodes
If set this property allows the user to reparent nodes by dragging them from their current folder to a new folder.
Backcompat: For backwards compatibility with versions prior to Smart GWT 1.5, if this property is unset, butthis.canAcceptDroppedRecords
is true, we allow nodes to be dragged to different folders.- Parameters:
canReparentNodes
- New canReparentNodes value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanReparentNodes
If set this property allows the user to reparent nodes by dragging them from their current folder to a new folder.
Backcompat: For backwards compatibility with versions prior to Smart GWT 1.5, if this property is unset, butthis.canAcceptDroppedRecords
is true, we allow nodes to be dragged to different folders.- Returns:
- Current canReparentNodes value. Default value is null
- See Also:
-
setCanSelectAll
This property is not supported on TreeGrid, and only applies to theListGrid
superclass.- Overrides:
setCanSelectAll
in classListGrid
- Parameters:
canSelectAll
- New canSelectAll value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCanSelectAll
This property is not supported on TreeGrid, and only applies to theListGrid
superclass.- Overrides:
getCanSelectAll
in classListGrid
- Returns:
- Current canSelectAll value. Default value is null
- See Also:
-
setCantDragIntoChildMessage
public TreeGrid setCantDragIntoChildMessage(String cantDragIntoChildMessage) throws IllegalStateException Message displayed when user attempts to drop a node into a child of itself.- Parameters:
cantDragIntoChildMessage
- New cantDragIntoChildMessage value. Default value is "You can't drag an item into one of its children"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getCantDragIntoChildMessage
Message displayed when user attempts to drop a node into a child of itself.- Returns:
- Current cantDragIntoChildMessage value. Default value is "You can't drag an item into one of its children"
- See Also:
-
setCantDragIntoSelfMessage
public TreeGrid setCantDragIntoSelfMessage(String cantDragIntoSelfMessage) throws IllegalStateException Message displayed when user attempts to drop a dragged node onto itself.- Parameters:
cantDragIntoSelfMessage
- New cantDragIntoSelfMessage value. Default value is "You can't drag an item into itself."- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getCantDragIntoSelfMessage
Message displayed when user attempts to drop a dragged node onto itself.- Returns:
- Current cantDragIntoSelfMessage value. Default value is "You can't drag an item into itself."
- See Also:
-
setCantDragMultipleNodeOccurencesMessage
public TreeGrid setCantDragMultipleNodeOccurencesMessage(String cantDragMultipleNodeOccurencesMessage) throws IllegalStateException ForMulti-link trees
only, the message displayed when the user attempts to drag two or more occurrences of the same node into a parent.- Parameters:
cantDragMultipleNodeOccurencesMessage
- New cantDragMultipleNodeOccurencesMessage value. Default value is "You can't drag two occurrences of the same node into a parent."- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getCantDragMultipleNodeOccurencesMessage
ForMulti-link trees
only, the message displayed when the user attempts to drag two or more occurrences of the same node into a parent.- Returns:
- Current cantDragMultipleNodeOccurencesMessage value. Default value is "You can't drag two occurrences of the same node into a parent."
- See Also:
-
setCascadeSelection
Should children be selected when parent is selected? And should parent be selected when any child is selected?- Parameters:
cascadeSelection
- New cascadeSelection value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getCascadeSelection
Should children be selected when parent is selected? And should parent be selected when any child is selected?- Returns:
- Current cascadeSelection value. Default value is false
-
setChildCannotBeItsOwnAncestorMessage
public TreeGrid setChildCannotBeItsOwnAncestorMessage(String childCannotBeItsOwnAncestorMessage) throws IllegalStateException Message displayed when user attempts to drop a node into a parent that has the same ID as the dropped node somewhere in its ancestor chain (ie, the same node as the parent, or grandparent, and so on)- Parameters:
childCannotBeItsOwnAncestorMessage
- New childCannotBeItsOwnAncestorMessage value. Default value is "This drag operation would mean an item is a descendant of an existing item with the same ID"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getChildCannotBeItsOwnAncestorMessage
Message displayed when user attempts to drop a node into a parent that has the same ID as the dropped node somewhere in its ancestor chain (ie, the same node as the parent, or grandparent, and so on)- Returns:
- Current childCannotBeItsOwnAncestorMessage value. Default value is "This drag operation would mean an item is a descendant of an existing item with the same ID"
- See Also:
-
setClosedIconSuffix
This suffix will be appended to thefolderIcon
for closed folders. IfshowOpenIcons
is set tofalse
this suffix will also be appended to open folders' icons.- Parameters:
closedIconSuffix
- New closedIconSuffix value. Default value is "closed"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getClosedIconSuffix
This suffix will be appended to thefolderIcon
for closed folders. IfshowOpenIcons
is set tofalse
this suffix will also be appended to open folders' icons.- Returns:
- Current closedIconSuffix value. Default value is "closed"
-
setConnectorImage
The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true. Connector icons are rendered into the title field of each row and show the dotted hierarchy lines between siblings of the same parent node. For each node, a connector icon may be shown:- As an opener icon for folder nodes, next to the folder icon
- In place of an opener icon for leaf nodes, next to the leaf icon
- As a standalone vertical
continuation line in the indent to the left of the node, to show a connection between some ancestor node's siblings
(only relevant if
showFullConnectors
is true).
showFullConnectors
governs whether connector lines will be displayed for all indent levels, or just for the innermost level of the tree.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node. Assuming the connectorImage is set to{baseName}.{extension}
, the full set of images to be displayed will be:{baseName}_ancestor[_rtl].{extension}
ifshowFullConnectors
is true, this is the URL for the vertical continuation image to be displayed at the appropriate indent levels for ancestor nodes with subsequent children.For nodes with no children:
{baseName}_single[_rtl].{extension}
: Shown when there is no connector line attached to the parent or previous sibling, and no connector line to the next sibling. ForshowFullConnectors:true
trees, there will always be a connector leading to the parent or previous sibling if its present in the tree so this icon can only be displayed for the first row.{baseName}_start[_rtl].{extension}
: Shown when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling. As with_single
this will only ever be used for the first row ifshowFullConnectors
is true{baseName}_end[_rtl].{extension}
: Shown if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_middle[_rtl].{extension}
: Shown where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
showFullConnectors
is false, open folders will never show a connector to subsequent siblings:{baseName}_opened_single[_rtl].{extension}
opened folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_opened_start[_rtl].{extension}
: opened folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_opened_end[_rtl].{extension}
: opened folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_opened_middle[_rtl].{extension}
: opened folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
{baseName}_closed_single[_rtl].{extension}
closed folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_closed_start[_rtl].{extension}
: closed folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_closed_end[_rtl].{extension}
: closed folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_closed_middle[_rtl].{extension}
: closed folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for a connectorImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_ancestor[_rtl]_selected.{extension}
,{baseName}_single[_rtl]_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states listed above. These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
- Parameters:
connectorImage
- New connectorImage value. Default value is "[SKIN]connector.gif"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getConnectorImage
The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true. Connector icons are rendered into the title field of each row and show the dotted hierarchy lines between siblings of the same parent node. For each node, a connector icon may be shown:- As an opener icon for folder nodes, next to the folder icon
- In place of an opener icon for leaf nodes, next to the leaf icon
- As a standalone vertical
continuation line in the indent to the left of the node, to show a connection between some ancestor node's siblings
(only relevant if
showFullConnectors
is true).
showFullConnectors
governs whether connector lines will be displayed for all indent levels, or just for the innermost level of the tree.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node. Assuming the connectorImage is set to{baseName}.{extension}
, the full set of images to be displayed will be:{baseName}_ancestor[_rtl].{extension}
ifshowFullConnectors
is true, this is the URL for the vertical continuation image to be displayed at the appropriate indent levels for ancestor nodes with subsequent children.For nodes with no children:
{baseName}_single[_rtl].{extension}
: Shown when there is no connector line attached to the parent or previous sibling, and no connector line to the next sibling. ForshowFullConnectors:true
trees, there will always be a connector leading to the parent or previous sibling if its present in the tree so this icon can only be displayed for the first row.{baseName}_start[_rtl].{extension}
: Shown when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling. As with_single
this will only ever be used for the first row ifshowFullConnectors
is true{baseName}_end[_rtl].{extension}
: Shown if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_middle[_rtl].{extension}
: Shown where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
showFullConnectors
is false, open folders will never show a connector to subsequent siblings:{baseName}_opened_single[_rtl].{extension}
opened folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_opened_start[_rtl].{extension}
: opened folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_opened_end[_rtl].{extension}
: opened folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_opened_middle[_rtl].{extension}
: opened folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
{baseName}_closed_single[_rtl].{extension}
closed folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_closed_start[_rtl].{extension}
: closed folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_closed_end[_rtl].{extension}
: closed folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_closed_middle[_rtl].{extension}
: closed folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for a connectorImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_ancestor[_rtl]_selected.{extension}
,{baseName}_single[_rtl]_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states listed above. These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
- Returns:
- Current connectorImage value. Default value is "[SKIN]connector.gif"
- See Also:
-
setConnectorImage
The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true. Connector icons are rendered into the title field of each row and show the dotted hierarchy lines between siblings of the same parent node. For each node, a connector icon may be shown:- As an opener icon for folder nodes, next to the folder icon
- In place of an opener icon for leaf nodes, next to the leaf icon
- As a standalone vertical
continuation line in the indent to the left of the node, to show a connection between some ancestor node's siblings
(only relevant if
showFullConnectors
is true).
showFullConnectors
governs whether connector lines will be displayed for all indent levels, or just for the innermost level of the tree.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node. Assuming the connectorImage is set to{baseName}.{extension}
, the full set of images to be displayed will be:{baseName}_ancestor[_rtl].{extension}
ifshowFullConnectors
is true, this is the URL for the vertical continuation image to be displayed at the appropriate indent levels for ancestor nodes with subsequent children.For nodes with no children:
{baseName}_single[_rtl].{extension}
: Shown when there is no connector line attached to the parent or previous sibling, and no connector line to the next sibling. ForshowFullConnectors:true
trees, there will always be a connector leading to the parent or previous sibling if its present in the tree so this icon can only be displayed for the first row.{baseName}_start[_rtl].{extension}
: Shown when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling. As with_single
this will only ever be used for the first row ifshowFullConnectors
is true{baseName}_end[_rtl].{extension}
: Shown if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_middle[_rtl].{extension}
: Shown where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
showFullConnectors
is false, open folders will never show a connector to subsequent siblings:{baseName}_opened_single[_rtl].{extension}
opened folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_opened_start[_rtl].{extension}
: opened folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_opened_end[_rtl].{extension}
: opened folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_opened_middle[_rtl].{extension}
: opened folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
{baseName}_closed_single[_rtl].{extension}
closed folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_closed_start[_rtl].{extension}
: closed folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_closed_end[_rtl].{extension}
: closed folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_closed_middle[_rtl].{extension}
: closed folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for a connectorImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_ancestor[_rtl]_selected.{extension}
,{baseName}_single[_rtl]_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states listed above. These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
- Parameters:
connectorImage
- New connectorImage value. Default value is "[SKIN]connector.gif"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getConnectorImageAsSCStatefulImgConfig
The base filename orstateful image block
for the connector icons shown whenshowConnectors
is true. Connector icons are rendered into the title field of each row and show the dotted hierarchy lines between siblings of the same parent node. For each node, a connector icon may be shown:- As an opener icon for folder nodes, next to the folder icon
- In place of an opener icon for leaf nodes, next to the leaf icon
- As a standalone vertical
continuation line in the indent to the left of the node, to show a connection between some ancestor node's siblings
(only relevant if
showFullConnectors
is true).
showFullConnectors
governs whether connector lines will be displayed for all indent levels, or just for the innermost level of the tree.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node. Assuming the connectorImage is set to{baseName}.{extension}
, the full set of images to be displayed will be:{baseName}_ancestor[_rtl].{extension}
ifshowFullConnectors
is true, this is the URL for the vertical continuation image to be displayed at the appropriate indent levels for ancestor nodes with subsequent children.For nodes with no children:
{baseName}_single[_rtl].{extension}
: Shown when there is no connector line attached to the parent or previous sibling, and no connector line to the next sibling. ForshowFullConnectors:true
trees, there will always be a connector leading to the parent or previous sibling if its present in the tree so this icon can only be displayed for the first row.{baseName}_start[_rtl].{extension}
: Shown when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling. As with_single
this will only ever be used for the first row ifshowFullConnectors
is true{baseName}_end[_rtl].{extension}
: Shown if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_middle[_rtl].{extension}
: Shown where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
showFullConnectors
is false, open folders will never show a connector to subsequent siblings:{baseName}_opened_single[_rtl].{extension}
opened folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_opened_start[_rtl].{extension}
: opened folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_opened_end[_rtl].{extension}
: opened folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_opened_middle[_rtl].{extension}
: opened folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
{baseName}_closed_single[_rtl].{extension}
closed folder node with children when no connector line is shown attaching to either the folder's previous sibling or parent, or to any subsequent siblings.{baseName}_closed_start[_rtl].{extension}
: closed folder with children when the there is no connector line attached to the parent or previous sibling, but there is a connector to the next sibling.{baseName}_closed_end[_rtl].{extension}
: closed folder with children if we are not showing a connector line attached to the next sibling of this node (but are showing a connection to the previous sibling or parent).{baseName}_closed_middle[_rtl].{extension}
: closed folder with children where the we have a connector line leading to both the previous sibling (or parent) and the next sibling.
If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for a connectorImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_ancestor[_rtl]_selected.{extension}
,{baseName}_single[_rtl]_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states listed above. These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
- Returns:
- Current connectorImage value. Default value is "[SKIN]connector.gif"
- See Also:
-
setCreateDefaultTreeField
public TreeGrid setCreateDefaultTreeField(Boolean createDefaultTreeField) throws IllegalStateException If no fields are specified, create a single field withTreeGridField.treeField
set totrue
to show the tree.This automatically generated field will display values derived by calling
getNodeTitle()
, and have the column title set to the specifiedtreeFieldTitle
.Has no effect if fields are explicitly specified.
This is a convenience setting to allow a TreeGrid to be created without specifying a field list. If fields are specified, refer to the documentation on property
autoAssignTreeField
for a way to automatically have one of the fields be use as the tree field if no fields haveTreeGridField.treeField
set.For databound treeGrids, if there is no explicit fields array specified, developers who wish to pick up all fields from the DataSource definition rather than displaying this single automatically generated tree field may either set this property to false, or set
useAllDataSourceFields
totrue
.- Parameters:
createDefaultTreeField
- New createDefaultTreeField value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getCreateDefaultTreeField
If no fields are specified, create a single field withTreeGridField.treeField
set totrue
to show the tree.This automatically generated field will display values derived by calling
getNodeTitle()
, and have the column title set to the specifiedtreeFieldTitle
.Has no effect if fields are explicitly specified.
This is a convenience setting to allow a TreeGrid to be created without specifying a field list. If fields are specified, refer to the documentation on property
autoAssignTreeField
for a way to automatically have one of the fields be use as the tree field if no fields haveTreeGridField.treeField
set.For databound treeGrids, if there is no explicit fields array specified, developers who wish to pick up all fields from the DataSource definition rather than displaying this single automatically generated tree field may either set this property to false, or set
useAllDataSourceFields
totrue
.- Returns:
- Current createDefaultTreeField value. Default value is true
-
setCustomIconDropProperty
This property allows the developer to rename thedefault node.showDropIcon
property.Note : This is an advanced setting
- Parameters:
customIconDropProperty
- New customIconDropProperty value. Default value is "showDropIcon"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCustomIconDropProperty
This property allows the developer to rename thedefault node.showDropIcon
property.- Returns:
- Current customIconDropProperty value. Default value is "showDropIcon"
- See Also:
-
setCustomIconOpenProperty
This property allows the developer to rename thedefault node.showOpenIcon
property.Note : This is an advanced setting
- Parameters:
customIconOpenProperty
- New customIconOpenProperty value. Default value is "showOpenIcon"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCustomIconOpenProperty
This property allows the developer to rename thedefault node.showOpenIcon
property.- Returns:
- Current customIconOpenProperty value. Default value is "showOpenIcon"
- See Also:
-
setCustomIconProperty
This property allows the developer to rename thedefault node.icon
property.- Parameters:
customIconProperty
- New customIconProperty value. Default value is "icon"- Returns:
TreeGrid
instance, for chaining setter calls
-
getCustomIconProperty
This property allows the developer to rename thedefault node.icon
property.- Returns:
- Current customIconProperty value. Default value is "icon"
-
setCustomIconSelectedProperty
This property allows the developer to rename thedefault node.showSelectedIcon
property.Note : This is an advanced setting
- Parameters:
customIconSelectedProperty
- New customIconSelectedProperty value. Default value is "showSelectedIcon"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getCustomIconSelectedProperty
This property allows the developer to rename thedefault node.showSelectedIcon
property.- Returns:
- Current customIconSelectedProperty value. Default value is "showSelectedIcon"
- See Also:
-
setDataArity
A TreeGrid is adataArity
:multiple component.Note : This is an advanced setting
- Overrides:
setDataArity
in classListGrid
- Parameters:
dataArity
- New dataArity value. Default value is "multiple"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getDataArity
A TreeGrid is adataArity
:multiple component.- Overrides:
getDataArity
in classListGrid
- Returns:
- Current dataArity value. Default value is "multiple"
- See Also:
-
setDataFetchMode
Mode of fetching records from server.fetchMode:"local" implies that local filtering will always be performed. See
keepParentsOnFilter
for additional filtering details.fetchMode:"basic" or "paged" implies that if search criteria change, the entire tree will be discarded and re-fetched from the server. When retrieving the replacement tree data, the default behavior will be to preserve the
openState
for any nodes that the server returns which were previously opened by the user. Note that this implies that ifloadDataOnDemand
is enabled and the server returns only root-level nodes, open state will be preserved only for root-level nodes, and children of open root-level nodes will be immediately fetched from the server if they are not included in the server's initial response.fetchMode:"paged" enables paging for nodes that have very large numbers of children. Whenever the children of a folder are loaded, the
resultTree
will setDSRequest.startRow
andendRow
when requesting children from the DataSource, and will manage loading of further children on demand, similar to how aResultSet
manages paging for lists. For a deeper discussion see the Paging large sets of children section of theTreeDataBinding
overview.- Specified by:
setDataFetchMode
in interfaceDataBoundComponent
- Overrides:
setDataFetchMode
in classListGrid
- Parameters:
dataFetchMode
- New dataFetchMode value. Default value is "basic"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getDataFetchMode
Mode of fetching records from server.fetchMode:"local" implies that local filtering will always be performed. See
keepParentsOnFilter
for additional filtering details.fetchMode:"basic" or "paged" implies that if search criteria change, the entire tree will be discarded and re-fetched from the server. When retrieving the replacement tree data, the default behavior will be to preserve the
openState
for any nodes that the server returns which were previously opened by the user. Note that this implies that ifloadDataOnDemand
is enabled and the server returns only root-level nodes, open state will be preserved only for root-level nodes, and children of open root-level nodes will be immediately fetched from the server if they are not included in the server's initial response.fetchMode:"paged" enables paging for nodes that have very large numbers of children. Whenever the children of a folder are loaded, the
resultTree
will setDSRequest.startRow
andendRow
when requesting children from the DataSource, and will manage loading of further children on demand, similar to how aResultSet
manages paging for lists. For a deeper discussion see the Paging large sets of children section of theTreeDataBinding
overview.- Specified by:
getDataFetchMode
in interfaceDataBoundComponent
- Overrides:
getDataFetchMode
in classListGrid
- Returns:
- Current dataFetchMode value. Default value is "basic"
- See Also:
-
getDataProperties
For aTreeGrid
that 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:
-
setDisplayNodeType
Specifies the type of nodes displayed in the treeGrid.- Parameters:
displayNodeType
- New displayNodeType value. Default value is Tree.FOLDERS_AND_LEAVES- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getDisplayNodeType
Specifies the type of nodes displayed in the treeGrid.- Returns:
- Current displayNodeType value. Default value is Tree.FOLDERS_AND_LEAVES
- See Also:
-
setDropEndSpace
IfshowDropEndSpace
is set to true, this property governs how large the space under the last node during drop should be. If unset, the spacer will be sized to be half the specifiedcellHeight
for the grid.Note : This is an advanced setting
- Parameters:
dropEndSpace
- New dropEndSpace value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getDropEndSpace
IfshowDropEndSpace
is set to true, this property governs how large the space under the last node during drop should be. If unset, the spacer will be sized to be half the specifiedcellHeight
for the grid.- Returns:
- Current dropEndSpace value. Default value is null
-
setDropIconSuffix
IfshowDropIcons
is true, this suffix will be appended to thefolderIcon
when the user drop-hovers over some folder.- Parameters:
dropIconSuffix
- New dropIconSuffix value. Default value is "drop"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getDropIconSuffix
IfshowDropIcons
is true, this suffix will be appended to thefolderIcon
when the user drop-hovers over some folder.- Returns:
- Current dropIconSuffix value. Default value is "drop"
-
setExtraIconGap
The amount of gap (in pixels) between the extraIcon (seegetExtraIcon()
) or checkbox icon and thenodeIcon
/folderIcon
or node text.- Parameters:
extraIconGap
- New extraIconGap value. Default value is 2- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getExtraIconGap
public int getExtraIconGap()The amount of gap (in pixels) between the extraIcon (seegetExtraIcon()
) or checkbox icon and thenodeIcon
/folderIcon
or node text.- Returns:
- Current extraIconGap value. Default value is 2
- See Also:
-
setFields
An array of field objects, specifying the order, layout, dynamic calculation, and sorting behavior of each field in the treeGrid object. In TreeGrids, the fields array specifies columns. Each field in the fields array is TreeGridField object.If
dataSource
is also set, this value acts as a set of overrides as explained inDataBoundComponent.fields
.- Parameters:
fields
- New fields value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
setFolderIcon
The URL of the base icon for all folder nodes in this treeGrid. Note that this URL will haveopenIconSuffix
,closedIconSuffix
ordropIconSuffix
appended to indicate state changes if appropriate - see documentation onshowOpenIcons
,showSelectedIcons
andshowDropIcons
.See
showNodeIcons
andshowFolderIcons
for details on suppressing display of icons- Parameters:
folderIcon
- New folderIcon value. Default value is "[SKIN]folder.gif"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getFolderIcon
The URL of the base icon for all folder nodes in this treeGrid. Note that this URL will haveopenIconSuffix
,closedIconSuffix
ordropIconSuffix
appended to indicate state changes if appropriate - see documentation onshowOpenIcons
,showSelectedIcons
andshowDropIcons
.See
showNodeIcons
andshowFolderIcons
for details on suppressing display of icons- Returns:
- Current folderIcon value. Default value is "[SKIN]folder.gif"
- See Also:
-
setFolderIconPadding
Default padding to show between folder icon and cell value in the tree cell. This property is only consulted for folder nodes. If unset,iconPadding
will be applied to both folder and leaf nodes.To set the icon padding for individual nodes, use
iconPaddingProperty
- Parameters:
folderIconPadding
- New folderIconPadding value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getFolderIconPadding
Default padding to show between folder icon and cell value in the tree cell. This property is only consulted for folder nodes. If unset,iconPadding
will be applied to both folder and leaf nodes.To set the icon padding for individual nodes, use
iconPaddingProperty
- Returns:
- Current folderIconPadding value. Default value is null
-
setGroupByField
Not applicable to TreeGrids, as thedata
already represents a tree.- Overrides:
setGroupByField
in classListGrid
- Parameters:
groupByField
- New groupByField value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getGroupByField
Not applicable to TreeGrids, as thedata
already represents a tree.- Returns:
- Current groupByField value. Default value is null
- See Also:
-
setGroupByField
Not applicable to TreeGrids, as thedata
already represents a tree.- Overrides:
setGroupByField
in classListGrid
- Parameters:
groupByField
- New groupByField value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getGroupByFieldAsStringArray
Not applicable to TreeGrids, as thedata
already represents a tree.- Returns:
- Current groupByField value. Default value is null
- See Also:
-
setIconBaseStyle
The base CSS class to apply to icons used in this grid. Used to affect the colors of SVG graphics.- Parameters:
iconBaseStyle
- New iconBaseStyle value. Default value is "icon"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getIconBaseStyle
The base CSS class to apply to icons used in this grid. Used to affect the colors of SVG graphics.- Returns:
- Current iconBaseStyle value. Default value is "icon"
- See Also:
-
setIconPadding
Default padding to show between the folder or leaf node icon and cell value in the tree cell.May be overridden for
folderIcons
viafolderIconPadding
. May also be overridden for individual nodes by setting theiconPaddingProperty
value on individual nodes- Overrides:
setIconPadding
in classListGrid
- Parameters:
iconPadding
- New iconPadding value. Default value is 2- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getIconPadding
Default padding to show between the folder or leaf node icon and cell value in the tree cell.May be overridden for
folderIcons
viafolderIconPadding
. May also be overridden for individual nodes by setting theiconPaddingProperty
value on individual nodes- Overrides:
getIconPadding
in classListGrid
- Returns:
- Current iconPadding value. Default value is 2
-
setIconPaddingProperty
This property allows the developer to specify customiconPadding
for specific nodes- Parameters:
iconPaddingProperty
- New iconPaddingProperty value. Default value is "iconPadding"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getIconPaddingProperty
This property allows the developer to specify customiconPadding
for specific nodes- Returns:
- Current iconPaddingProperty value. Default value is "iconPadding"
-
setIconSize
The standard size (same height and width, in pixels) of node icons in this treeGrid.- Parameters:
iconSize
- New iconSize value. Default value is 16- Returns:
TreeGrid
instance, for chaining setter calls
-
getIconSize
public int getIconSize()The standard size (same height and width, in pixels) of node icons in this treeGrid.- Returns:
- Current iconSize value. Default value is 16
-
setIndentRecordComponents
For record components placed "within" thetreeField
column, should the component be indented to the position where a title would normally show?For more general placement of embedded components, see
addEmbeddedComponent
.- Parameters:
indentRecordComponents
- New indentRecordComponents value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getIndentRecordComponents
For record components placed "within" thetreeField
column, should the component be indented to the position where a title would normally show?For more general placement of embedded components, see
addEmbeddedComponent
.- Returns:
- Current indentRecordComponents value. Default value is true
-
setIndentSize
The amount of indentation (in pixels) to add to a node's icon/title for each level down in this tree's hierarchy.This value is ignored when
showConnectors
istrue
because fixed-size images are used to render the connectors.- Parameters:
indentSize
- New indentSize value. Default value is 20- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getIndentSize
public int getIndentSize()The amount of indentation (in pixels) to add to a node's icon/title for each level down in this tree's hierarchy.This value is ignored when
showConnectors
istrue
because fixed-size images are used to render the connectors.- Returns:
- Current indentSize value. Default value is 20
- See Also:
-
setKeepParentsOnFilter
If set, tree-based filtering is performed such that parent nodes are kept as long as they have children that match the filter criteria, even if the parents themselves do not match the filter criteria. If not set, filtering will exclude parent nodes not matching the criteria, and all nodes below them in the tree.If some criteria must be sent to the server in order to produce a valid tree of data, but
keepParentsOnFilter
is also required, theResultTree.serverFilterFields
attribute may be used to specify a list of field names that will be sent to the server whenever they are present in the criteria. Note that for the subset of criteria applied to these fields,keepParentsInFilter
behavior will not occur without custom logic in the DataSource fetch operation.If
FetchMode
is explicitly set to"paged"
, it is not possible to implementkeepParentsOnFilter
, either by local filtering or with the automatic client-driven handling mentioned below. Support forkeepParentsOnFilter
for a paged ResultTree therefore also requires custom logic in the DataSource fetch operation. To support this a developer must ensure that their fetch operation returns the appropriate set of nodes - all nodes that match the specified criteria plus their ancestor nodes even if they do not match the specified criteria.keepParentsOnFilter with load-on-demand trees
The combination ofkeepParentsOnFilter
andloadDataOnDemand
presents additional difficulties that require special handling. The problem is that in order to determine even the top-level folders, you have to examine every node in the entire tree. For example, say there is one top-level folder that has thousands of folders and nodes underneath it, and there is just one leaf node, 6 levels deep, that matches the filter criteria. You have to find out about that node, because it implies the top-level folder must be retained.So the server basically has to examine every node in the dataset to determine even what shows up at the top level of the tree. If it does not do this, parent nodes that don't match the filter criteria will be excluded from the tree, with the upshot that the child nodes that do match the criteria will be inaccessible because nodes in load-on-demand trees are only loaded when their parent node is opened
By default, Smart GWT solves this with a client-driven implementation of this special handling. This algorithm involves finding the nodes that match the filter criteria - which we term matching leaves - and then recursively travelling back up the tree, determining the ancestors of the matching leaves - the so-called dangling parents. When we have traversed all the way back to the root node from every matching leaf, we have recorded every dangling parent and have what we term the skeleton of the tree. The skeleton is then added to fetch criteria whenever a load-on-demand fetch request is made, ensuring that we fetch both dangling parents and matching leaves.
There are three ways this recursive traversal can be implemented:
- For dataSources that
support dynamic tree joins
, we use theadditionalOutputs
feature to declare self-joins that fetch multiple levels of parent in one query (the number of levels is configurable, seeResultTree.matchingLeafJoinDepth
). Of Smart GWT's built-in DataSource types, only SQLDataSource is currently capable of this approach - For server-side
dataSources that do not support self-joins, we combine individual single-level fetches into a
queue
, usingfieldValueExpressions
withresponseData "allRecords"
so that each fetch in the queue uses the output of the previous fetch as its criteria (so the first fetch returns the parents of the matching nodes, the second fetch returns the parents of those nodes, and so on). Again, the number of fetches per queue can be configured with thematchingLeafJoinDepth
property. This approach works for any server-side DataSource implementation, including your own custom implementations - For
client-side
dataSources, which support neither self-joins not queueing, the algorithm simply makes as many single-level requests as necessary to build the entire skeleton. Note, this is exactly what would happen with previously-mentioned queueing approach, if you setmatchingLeafJoinDepth
to 1
keepParentsOnFilter
on load-on-demand trees, seeResultTree.serverKeepParentsOnFilter
- Parameters:
keepParentsOnFilter
- New keepParentsOnFilter value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
- For dataSources that
-
getKeepParentsOnFilter
If set, tree-based filtering is performed such that parent nodes are kept as long as they have children that match the filter criteria, even if the parents themselves do not match the filter criteria. If not set, filtering will exclude parent nodes not matching the criteria, and all nodes below them in the tree.If some criteria must be sent to the server in order to produce a valid tree of data, but
keepParentsOnFilter
is also required, theResultTree.serverFilterFields
attribute may be used to specify a list of field names that will be sent to the server whenever they are present in the criteria. Note that for the subset of criteria applied to these fields,keepParentsInFilter
behavior will not occur without custom logic in the DataSource fetch operation.If
FetchMode
is explicitly set to"paged"
, it is not possible to implementkeepParentsOnFilter
, either by local filtering or with the automatic client-driven handling mentioned below. Support forkeepParentsOnFilter
for a paged ResultTree therefore also requires custom logic in the DataSource fetch operation. To support this a developer must ensure that their fetch operation returns the appropriate set of nodes - all nodes that match the specified criteria plus their ancestor nodes even if they do not match the specified criteria.keepParentsOnFilter with load-on-demand trees
The combination ofkeepParentsOnFilter
andloadDataOnDemand
presents additional difficulties that require special handling. The problem is that in order to determine even the top-level folders, you have to examine every node in the entire tree. For example, say there is one top-level folder that has thousands of folders and nodes underneath it, and there is just one leaf node, 6 levels deep, that matches the filter criteria. You have to find out about that node, because it implies the top-level folder must be retained.So the server basically has to examine every node in the dataset to determine even what shows up at the top level of the tree. If it does not do this, parent nodes that don't match the filter criteria will be excluded from the tree, with the upshot that the child nodes that do match the criteria will be inaccessible because nodes in load-on-demand trees are only loaded when their parent node is opened
By default, Smart GWT solves this with a client-driven implementation of this special handling. This algorithm involves finding the nodes that match the filter criteria - which we term matching leaves - and then recursively travelling back up the tree, determining the ancestors of the matching leaves - the so-called dangling parents. When we have traversed all the way back to the root node from every matching leaf, we have recorded every dangling parent and have what we term the skeleton of the tree. The skeleton is then added to fetch criteria whenever a load-on-demand fetch request is made, ensuring that we fetch both dangling parents and matching leaves.
There are three ways this recursive traversal can be implemented:
- For dataSources that
support dynamic tree joins
, we use theadditionalOutputs
feature to declare self-joins that fetch multiple levels of parent in one query (the number of levels is configurable, seeResultTree.matchingLeafJoinDepth
). Of Smart GWT's built-in DataSource types, only SQLDataSource is currently capable of this approach - For server-side
dataSources that do not support self-joins, we combine individual single-level fetches into a
queue
, usingfieldValueExpressions
withresponseData "allRecords"
so that each fetch in the queue uses the output of the previous fetch as its criteria (so the first fetch returns the parents of the matching nodes, the second fetch returns the parents of those nodes, and so on). Again, the number of fetches per queue can be configured with thematchingLeafJoinDepth
property. This approach works for any server-side DataSource implementation, including your own custom implementations - For
client-side
dataSources, which support neither self-joins not queueing, the algorithm simply makes as many single-level requests as necessary to build the entire skeleton. Note, this is exactly what would happen with previously-mentioned queueing approach, if you setmatchingLeafJoinDepth
to 1
keepParentsOnFilter
on load-on-demand trees, seeResultTree.serverKeepParentsOnFilter
- Returns:
- Current keepParentsOnFilter value. Default value is null
- See Also:
- For dataSources that
-
setLeaveSelectionCheckboxGap
public TreeGrid setLeaveSelectionCheckboxGap(Boolean leaveSelectionCheckboxGap) throws IllegalStateException IfselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected, should a gap be left where the checkbox icon would normally appear, in order to make the node's icon and title line up with the content for other nodes in the same parent?Has no effect if
showDisabledSelectionCheckbox
istrue
- Parameters:
leaveSelectionCheckboxGap
- New leaveSelectionCheckboxGap value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getLeaveSelectionCheckboxGap
IfselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected, should a gap be left where the checkbox icon would normally appear, in order to make the node's icon and title line up with the content for other nodes in the same parent?Has no effect if
showDisabledSelectionCheckbox
istrue
- Returns:
- Current leaveSelectionCheckboxGap value. Default value is true
- See Also:
-
setLoadDataOnDemand
For databound treeGrid instances, should the entire tree of data be loaded on initial fetch, or should folders load their children as they are opened.If unset, calling
fetchData()
will default it to true, otherwise, if a ResultTree is passed tosetData()
, theResultTree.loadDataOnDemand
setting is respected. Must be enabled on the underlyingResultTree
when usingdataFetchMode
: "paged".Note that when using
loadDataOnDemand
, every node returned by the server is assumed be a folder which may load further children. SeeResultTree.defaultIsFolder
for how to control this behavior.- Parameters:
loadDataOnDemand
- New loadDataOnDemand value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getLoadDataOnDemand
For databound treeGrid instances, should the entire tree of data be loaded on initial fetch, or should folders load their children as they are opened.If unset, calling
fetchData()
will default it to true, otherwise, if a ResultTree is passed tosetData()
, theResultTree.loadDataOnDemand
setting is respected. Must be enabled on the underlyingResultTree
when usingdataFetchMode
: "paged".Note that when using
loadDataOnDemand
, every node returned by the server is assumed be a folder which may load further children. SeeResultTree.defaultIsFolder
for how to control this behavior.- Returns:
- Current loadDataOnDemand value. Default value is null
- See Also:
-
setLoadingIcon
IfshowLoadingIcons
is set, this icon will be used when the folder isloading children from the server
. -
getLoadingIcon
IfshowLoadingIcons
is set, this icon will be used when the folder isloading children from the server
.- Returns:
- Current loadingIcon value. Default value is "[SKIN]folder_loading.gif"
- See Also:
-
setManyItemsImage
The filename of the icon displayed use as the default drag tracker when for multiple files and/or folders are being dragged.- Parameters:
manyItemsImage
- New manyItemsImage value. Default value is "[SKIN]folder_file.gif"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getManyItemsImage
The filename of the icon displayed use as the default drag tracker when for multiple files and/or folders are being dragged.- Returns:
- Current manyItemsImage value. Default value is "[SKIN]folder_file.gif"
- See Also:
-
setNodeIcon
The filename of the default icon for all leaf nodes in this grid. To specify a custom image for an individual node, set thecustomIconProperty
directly on the node.See
showNodeIcons
andshowFolderIcons
for details on suppressing display of icons
If this method is called after the component has been drawn/initialized: Set the icon for a particular treenode to a specified URL- Parameters:
nodeIcon
- tree node. Default value is "[SKIN]file.gif"- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getNodeIcon
The filename of the default icon for all leaf nodes in this grid. To specify a custom image for an individual node, set thecustomIconProperty
directly on the node.See
showNodeIcons
andshowFolderIcons
for details on suppressing display of icons- Returns:
- Current nodeIcon value. Default value is "[SKIN]file.gif"
- See Also:
-
setOfflineNodeMessage
For TreeGrids with loadDataOnDemand: true, a message to show the user if an attempt is made to open a folder, and thus load that node's children, while we are offline and there is no offline cache of that data. The message will be presented to the user in in a pop-up dialog box.- Parameters:
offlineNodeMessage
- New offlineNodeMessage value. Default value is "This data not available while offline"- Returns:
TreeGrid
instance, for chaining setter calls
-
getOfflineNodeMessage
For TreeGrids with loadDataOnDemand: true, a message to show the user if an attempt is made to open a folder, and thus load that node's children, while we are offline and there is no offline cache of that data. The message will be presented to the user in in a pop-up dialog box.- Returns:
- Current offlineNodeMessage value. Default value is "This data not available while offline"
-
setOpenerIconHeight
Height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.If not specified,
openerIconSize
is used instead.- Parameters:
openerIconHeight
- New openerIconHeight value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getOpenerIconHeight
Height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.If not specified,
openerIconSize
is used instead.- Returns:
- Current openerIconHeight value. Default value is null
-
setOpenerIconSize
Default width and height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol, if not overridden byopenerIconWidth
/openerIconHeight
.If
showConnectors
is true, the opener icon includes the connector line, and defaults tocellHeight
.Otherwise,
openerIconSize
defaults toiconSize
.- Parameters:
openerIconSize
- New openerIconSize value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getOpenerIconSize
Default width and height in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol, if not overridden byopenerIconWidth
/openerIconHeight
.If
showConnectors
is true, the opener icon includes the connector line, and defaults tocellHeight
.Otherwise,
openerIconSize
defaults toiconSize
.- Returns:
- Current openerIconSize value. Default value is null
-
setOpenerIconWidth
Width in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.If not specified,
openerIconSize
is used instead.- Parameters:
openerIconWidth
- New openerIconWidth value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getOpenerIconWidth
Width in pixels of the opener icons, that is, the icons which show the open or closed state of the node, typically a [+] or [-] symbol.If not specified,
openerIconSize
is used instead.- Returns:
- Current openerIconWidth value. Default value is null
-
setOpenerImage
The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid. The opener icon is displayed beside the folder icon in the Tree column for folder nodes. Clicking on this icon will toggle the open state of the folder.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node, as follows: If the openerImage is set to{baseName}.{extension}
,{baseName}_opened.{extension}
will be displayed next to opened folders, and{baseName}_closed.{extension}
will be displayed next to closed folders, or if this page is in RTL mode,{baseName}_opened_rtl.{extension}
and{baseName}_closed_rtl.{extension}
will be used.If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for an openerImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_opened_selected.{extension}
,{baseName}_closed_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states: opened, closed, opened_selected and closed_selected (RTL styles are also available, see above). These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
The following code shows using
SVG Symbols
from a sprite-file:openerImage: { // _base state is required, although will not be displayed in this case _base: "sprite:svg:fileName.svg#arrowRight;size:12,12;", // closed and closed_selected states - make the selected icon blue closed: "sprite:svg:fileName.svg#arrowRight;size:12,12;", closed_selected: "sprite:svg:fileName.svg#arrowRight;size:12,12;color:blue;", // opened and opened_selected states - make the selected icon blue opened: "sprite:svg:fileName.svg#arrowDown;size:12,12;", opened_selected: "sprite:svg:fileName.svg#arrowDown;size:12,12;color:blue;" }
- Parameters:
openerImage
- New openerImage value. Default value is "[SKIN]opener.gif"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getOpenerImage
The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid. The opener icon is displayed beside the folder icon in the Tree column for folder nodes. Clicking on this icon will toggle the open state of the folder.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node, as follows: If the openerImage is set to{baseName}.{extension}
,{baseName}_opened.{extension}
will be displayed next to opened folders, and{baseName}_closed.{extension}
will be displayed next to closed folders, or if this page is in RTL mode,{baseName}_opened_rtl.{extension}
and{baseName}_closed_rtl.{extension}
will be used.If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for an openerImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_opened_selected.{extension}
,{baseName}_closed_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states: opened, closed, opened_selected and closed_selected (RTL styles are also available, see above). These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
The following code shows using
SVG Symbols
from a sprite-file:openerImage: { // _base state is required, although will not be displayed in this case _base: "sprite:svg:fileName.svg#arrowRight;size:12,12;", // closed and closed_selected states - make the selected icon blue closed: "sprite:svg:fileName.svg#arrowRight;size:12,12;", closed_selected: "sprite:svg:fileName.svg#arrowRight;size:12,12;color:blue;", // opened and opened_selected states - make the selected icon blue opened: "sprite:svg:fileName.svg#arrowDown;size:12,12;", opened_selected: "sprite:svg:fileName.svg#arrowDown;size:12,12;color:blue;" }
- Returns:
- Current openerImage value. Default value is "[SKIN]opener.gif"
- See Also:
-
setOpenerImage
The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid. The opener icon is displayed beside the folder icon in the Tree column for folder nodes. Clicking on this icon will toggle the open state of the folder.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node, as follows: If the openerImage is set to{baseName}.{extension}
,{baseName}_opened.{extension}
will be displayed next to opened folders, and{baseName}_closed.{extension}
will be displayed next to closed folders, or if this page is in RTL mode,{baseName}_opened_rtl.{extension}
and{baseName}_closed_rtl.{extension}
will be used.If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for an openerImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_opened_selected.{extension}
,{baseName}_closed_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states: opened, closed, opened_selected and closed_selected (RTL styles are also available, see above). These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
The following code shows using
SVG Symbols
from a sprite-file:openerImage: { // _base state is required, although will not be displayed in this case _base: "sprite:svg:fileName.svg#arrowRight;size:12,12;", // closed and closed_selected states - make the selected icon blue closed: "sprite:svg:fileName.svg#arrowRight;size:12,12;", closed_selected: "sprite:svg:fileName.svg#arrowRight;size:12,12;color:blue;", // opened and opened_selected states - make the selected icon blue opened: "sprite:svg:fileName.svg#arrowDown;size:12,12;", opened_selected: "sprite:svg:fileName.svg#arrowDown;size:12,12;color:blue;" }
- Parameters:
openerImage
- New openerImage value. Default value is "[SKIN]opener.gif"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getOpenerImageAsSCStatefulImgConfig
The base filename orstateful image block
for the opener icon for folder nodes when "showConnectors" is false for this TreeGrid. The opener icon is displayed beside the folder icon in the Tree column for folder nodes. Clicking on this icon will toggle the open state of the folder.When set to an
SCImgURL
: the stateful filenames for these icons are assembled from this base filename and the state of the node, as follows: If the openerImage is set to{baseName}.{extension}
,{baseName}_opened.{extension}
will be displayed next to opened folders, and{baseName}_closed.{extension}
will be displayed next to closed folders, or if this page is in RTL mode,{baseName}_opened_rtl.{extension}
and{baseName}_closed_rtl.{extension}
will be used.If
showSelectedOpener
is true the URL for selected nodes will append the string"_selected"
to the image URLs described above. So for an openerImage set to{baseName}.{extension}
, the URLs for selected records would be{baseName}_opened_selected.{extension}
,{baseName}_closed_selected.{extension}
, etc.When set to an SCStatefulImgConfig</>: it should contain entries for the default _base state, as well as the custom states: opened, closed, opened_selected and closed_selected (RTL styles are also available, see above). These entries may be set to any combination of supported src strings, including file-paths and sprite-strings.
The following code shows using
SVG Symbols
from a sprite-file:openerImage: { // _base state is required, although will not be displayed in this case _base: "sprite:svg:fileName.svg#arrowRight;size:12,12;", // closed and closed_selected states - make the selected icon blue closed: "sprite:svg:fileName.svg#arrowRight;size:12,12;", closed_selected: "sprite:svg:fileName.svg#arrowRight;size:12,12;color:blue;", // opened and opened_selected states - make the selected icon blue opened: "sprite:svg:fileName.svg#arrowDown;size:12,12;", opened_selected: "sprite:svg:fileName.svg#arrowDown;size:12,12;color:blue;" }
- Returns:
- Current openerImage value. Default value is "[SKIN]opener.gif"
- See Also:
-
setOpenIconPadding
Default padding to show between theopenIcon
and the extra or folder icon in the tree cell.- Parameters:
openIconPadding
- New openIconPadding value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getOpenIconPadding
Default padding to show between theopenIcon
and the extra or folder icon in the tree cell.- Returns:
- Current openIconPadding value. Default value is null
-
setOpenIconSuffix
IfshowOpenIcons
is true, this suffix will be appended to thefolderIcon
for open folders in this grid.- Parameters:
openIconSuffix
- New openIconSuffix value. Default value is "open"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getOpenIconSuffix
IfshowOpenIcons
is true, this suffix will be appended to thefolderIcon
for open folders in this grid.- Returns:
- Current openIconSuffix value. Default value is "open"
-
setParentAlreadyContainsChildMessage
public TreeGrid setParentAlreadyContainsChildMessage(String parentAlreadyContainsChildMessage) throws IllegalStateException Message displayed when user attempts to drag a node into a parent that already contains a child of the same name/ID.- Parameters:
parentAlreadyContainsChildMessage
- New parentAlreadyContainsChildMessage value. Default value is "This item already contains a child item with that name."- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getParentAlreadyContainsChildMessage
Message displayed when user attempts to drag a node into a parent that already contains a child of the same name/ID.- Returns:
- Current parentAlreadyContainsChildMessage value. Default value is "This item already contains a child item with that name."
- See Also:
-
setRecordDropAppearance
IfcanAcceptDroppedRecords
is true for this treeGrid, this property governs whether the user can drop between, or over records within the grid. This controls whatRecordDropPosition
is passed to therecordDrop()
event handler.- Overrides:
setRecordDropAppearance
in classListGrid
- Parameters:
recordDropAppearance
- New recordDropAppearance value. Default value is ListGrid.BOTH- Returns:
TreeGrid
instance, for chaining setter calls
-
getRecordDropAppearance
IfcanAcceptDroppedRecords
is true for this treeGrid, this property governs whether the user can drop between, or over records within the grid. This controls whatRecordDropPosition
is passed to therecordDrop()
event handler.- Overrides:
getRecordDropAppearance
in classListGrid
- Returns:
- Current recordDropAppearance value. Default value is ListGrid.BOTH
-
setSaveOpenStateInViewState
Should the currentopen state
of the tree be included along with other details when saving this grid'sview-state
?- Parameters:
saveOpenStateInViewState
- New saveOpenStateInViewState value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getSaveOpenStateInViewState
Should the currentopen state
of the tree be included along with other details when saving this grid'sview-state
?- Returns:
- Current saveOpenStateInViewState value. Default value is true
-
setSelectedIconSuffix
IfshowSelectedIcons
is true, this suffix will be appended to thefolderIcon
for selected nodes in this grid.- Parameters:
selectedIconSuffix
- New selectedIconSuffix value. Default value is "selected"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getSelectedIconSuffix
IfshowSelectedIcons
is true, this suffix will be appended to thefolderIcon
for selected nodes in this grid.- Returns:
- Current selectedIconSuffix value. Default value is "selected"
-
setSelectionProperty
If specified, the selection object for this list will use this property to mark records as selected. In other words, if this attribute were set to"isSelected"
any records in the listGrid data where"isSelected"
istrue
will show up as selected in the grid. Similarly if records are selected within the grid after the grid has been created, this property will be set to true on the selected records.Note : This is an advanced setting
- Overrides:
setSelectionProperty
in classListGrid
- Parameters:
selectionProperty
- New selectionProperty value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getSelectionProperty
If specified, the selection object for this list will use this property to mark records as selected. In other words, if this attribute were set to"isSelected"
any records in the listGrid data where"isSelected"
istrue
will show up as selected in the grid. Similarly if records are selected within the grid after the grid has been created, this property will be set to true on the selected records.- Overrides:
getSelectionProperty
in classListGrid
- Returns:
- Current selectionProperty value. Default value is null
- See Also:
-
setSeparateFolders
If specified, this attribute will overrideTree.separateFolders
on the data for this treeGrid.Specifies whether folders and leaves should be segregated in the treeGrid display. Use
Tree.sortFoldersBeforeLeaves
to customize whether folders appear before or after their sibling leaves.If unset, at the treeGrid level, the property can be set directly on
the tree data object
or for dataBound TreeGrids on thedataProperties
.- Parameters:
separateFolders
- New separateFolders value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getSeparateFolders
If specified, this attribute will overrideTree.separateFolders
on the data for this treeGrid.Specifies whether folders and leaves should be segregated in the treeGrid display. Use
Tree.sortFoldersBeforeLeaves
to customize whether folders appear before or after their sibling leaves.If unset, at the treeGrid level, the property can be set directly on
the tree data object
or for dataBound TreeGrids on thedataProperties
.- Returns:
- Current separateFolders value. Default value is null
-
setServerFilterFields
ForfetchMode:"local"
ResultTrees, this property lists field names that will be sent to the server if they are present in the criteria.This property may be used to ensure a dataSource receives the necessary criteria to populate a ResultTree's data, and also support
keepParentsOnFilter
.Note that for some AdvancedCriteria it will not be possible to extract the subcriteria that apply to certain fields. See
DataSource.splitCriteria()
for details on how serverFilterFields-applicable subcriteria are extracted from the specified criteria for the tree.- Parameters:
serverFilterFields
- New serverFilterFields value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getServerFilterFields
ForfetchMode:"local"
ResultTrees, this property lists field names that will be sent to the server if they are present in the criteria.This property may be used to ensure a dataSource receives the necessary criteria to populate a ResultTree's data, and also support
keepParentsOnFilter
.Note that for some AdvancedCriteria it will not be possible to extract the subcriteria that apply to certain fields. See
DataSource.splitCriteria()
for details on how serverFilterFields-applicable subcriteria are extracted from the specified criteria for the tree.- Returns:
- Current serverFilterFields value. Default value is null
-
setShowConnectors
Should this treeGrid show connector lines illustrating the tree's hierarchy?For the set of images used to show connectors, see
connectorImage
.Note: in order for connector images to be perfectly connected, all styles for cells must have no top or bottom border or padding. If you see small gaps in connector lines, check your CSS files. See the example below for an example of correct configuration, including example CSS.
- Parameters:
showConnectors
- New showConnectors value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getShowConnectors
Should this treeGrid show connector lines illustrating the tree's hierarchy?For the set of images used to show connectors, see
connectorImage
.Note: in order for connector images to be perfectly connected, all styles for cells must have no top or bottom border or padding. If you see small gaps in connector lines, check your CSS files. See the example below for an example of correct configuration, including example CSS.
- Returns:
- Current showConnectors value. Default value is false
- See Also:
-
setShowCustomIconDrop
Should folder nodes showing custom icons (set via thecustomIconProperty
, defaultTreeNode.icon
), show drop state images when the user is drop-hovering over the folder. If true, thedropIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_drop.gif"
).
Can be overridden at the node level via the default propertyTreeNode.showDropIcon
and that property can be renamed viacustomIconDropProperty
.Note : This is an advanced setting
- Parameters:
showCustomIconDrop
- New showCustomIconDrop value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowCustomIconDrop
Should folder nodes showing custom icons (set via thecustomIconProperty
, defaultTreeNode.icon
), show drop state images when the user is drop-hovering over the folder. If true, thedropIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_drop.gif"
).
Can be overridden at the node level via the default propertyTreeNode.showDropIcon
and that property can be renamed viacustomIconDropProperty
.- Returns:
- Current showCustomIconDrop value. Default value is false
-
setShowCustomIconOpen
Should folder nodes showing custom icons (set via thecustomIconProperty
), show open state images when the folder is opened. If true, theopenIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_open.gif"
).
Note that theclosedIconSuffix
is never appended to custom folder icons.
Can be overridden at the node level via the default propertyTreeNode.showOpenIcon
and that property can be renamed viacustomIconOpenProperty
.Note : This is an advanced setting
- Parameters:
showCustomIconOpen
- New showCustomIconOpen value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowCustomIconOpen
Should folder nodes showing custom icons (set via thecustomIconProperty
), show open state images when the folder is opened. If true, theopenIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_open.gif"
).
Note that theclosedIconSuffix
is never appended to custom folder icons.
Can be overridden at the node level via the default propertyTreeNode.showOpenIcon
and that property can be renamed viacustomIconOpenProperty
.- Returns:
- Current showCustomIconOpen value. Default value is false
-
setShowCustomIconSelected
Should folder nodes showing custom icons (set via thecustomIconProperty
), show selected state images when the folder is selected, ifshowSelectedIcons
is true?If true, the
selectedIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_selected.gif"
).
Can be overridden at the node level via the default propertyTreeNode.showSelectedIcon
and that property can be renamed viacustomIconSelectedProperty
.Note : This is an advanced setting
- Parameters:
showCustomIconSelected
- New showCustomIconSelected value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowCustomIconSelected
Should folder nodes showing custom icons (set via thecustomIconProperty
), show selected state images when the folder is selected, ifshowSelectedIcons
is true?If true, the
selectedIconSuffix
will be appended to the image URL (so"customFolder.gif"
might be replaced with"customFolder_selected.gif"
).
Can be overridden at the node level via the default propertyTreeNode.showSelectedIcon
and that property can be renamed viacustomIconSelectedProperty
.- Returns:
- Current showCustomIconSelected value. Default value is false
-
setShowDisabledSelectionCheckbox
public TreeGrid setShowDisabledSelectionCheckbox(Boolean showDisabledSelectionCheckbox) throws IllegalStateException Should tree nodes show a disabled checkboxselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected?If set to
false
the treeGrid will useleaveSelectionCheckboxGap
to determine whether to leave a blank space where the checkbox would normally appear.- Parameters:
showDisabledSelectionCheckbox
- New showDisabledSelectionCheckbox value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getShowDisabledSelectionCheckbox
Should tree nodes show a disabled checkboxselectionAppearance
:"checkbox" is set on the treegrid, and a node can't be selected?If set to
false
the treeGrid will useleaveSelectionCheckboxGap
to determine whether to leave a blank space where the checkbox would normally appear.- Returns:
- Current showDisabledSelectionCheckbox value. Default value is false
- See Also:
-
setShowDropEndSpace
When the user drags over the treeGrid body, should the grid show some space under the last node in the grid allowing the user to drop after the last node? The height of this space can be customized viadropEndSpace
See also
canDropInEmptyArea
andcanDropSiblingAfterLastNode
Note : This is an advanced setting
- Parameters:
showDropEndSpace
- New showDropEndSpace value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getShowDropEndSpace
public boolean getShowDropEndSpace()When the user drags over the treeGrid body, should the grid show some space under the last node in the grid allowing the user to drop after the last node? The height of this space can be customized viadropEndSpace
See also
canDropInEmptyArea
andcanDropSiblingAfterLastNode
- Returns:
- Current showDropEndSpace value. Default value is true
- See Also:
-
setShowDropIcons
If true, when the user drags a droppable target over a folder in this TreeGrid, show a different folder icon. This is achieved by appending thedropIconSuffix
onto thefolderIcon
URL (for example"[SKIN]/folder.gif"
may be replaced by"[SKIN]/folder_drop.gif"
).- Parameters:
showDropIcons
- New showDropIcons value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getShowDropIcons
If true, when the user drags a droppable target over a folder in this TreeGrid, show a different folder icon. This is achieved by appending thedropIconSuffix
onto thefolderIcon
URL (for example"[SKIN]/folder.gif"
may be replaced by"[SKIN]/folder_drop.gif"
).- Returns:
- Current showDropIcons value. Default value is true
- See Also:
-
setShowFolderIcons
Should folder nodes in this TreeGrid show icons by default?If unset, folder node icons will be shown if
showNodeIcons
is trueSee
getIcon()
for more details on treeGrid icons- Parameters:
showFolderIcons
- New showFolderIcons value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowFolderIcons
Should folder nodes in this TreeGrid show icons by default?If unset, folder node icons will be shown if
showNodeIcons
is trueSee
getIcon()
for more details on treeGrid icons- Returns:
- Current showFolderIcons value. Default value is null
-
setShowFullConnectors
IfshowConnectors
is true, this property determines whether we should show vertical continuation lines for each level of indenting within the tree. Setting to false will show only the hierarchy lines for the most indented path ("sparse" connectors).- Parameters:
showFullConnectors
- New showFullConnectors value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowFullConnectors
IfshowConnectors
is true, this property determines whether we should show vertical continuation lines for each level of indenting within the tree. Setting to false will show only the hierarchy lines for the most indented path ("sparse" connectors).- Returns:
- Current showFullConnectors value. Default value is true
-
setShowLoadingIcons
If set, when a folder is loading its children from the server (Tree.getLoadState()
returns "loading"), it uses a distinct icon image given byloadingIcon
. This is typically used to show a small animating "spinner" icon to let the user know data is being fetched.- Parameters:
showLoadingIcons
- New showLoadingIcons value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getShowLoadingIcons
public boolean getShowLoadingIcons()If set, when a folder is loading its children from the server (Tree.getLoadState()
returns "loading"), it uses a distinct icon image given byloadingIcon
. This is typically used to show a small animating "spinner" icon to let the user know data is being fetched.- Returns:
- Current showLoadingIcons value. Default value is true
-
setShowNodeIcons
Should nodes in this TreeGrid show folder / leaf node icons by default?May be overridden for folder nodes via
showFolderIcons
See
getIcon()
for more details on treeGrid icons- Parameters:
showNodeIcons
- New showNodeIcons value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowNodeIcons
Should nodes in this TreeGrid show folder / leaf node icons by default?May be overridden for folder nodes via
showFolderIcons
See
getIcon()
for more details on treeGrid icons- Returns:
- Current showNodeIcons value. Default value is true
-
setShowOpener
Should the opener icon be displayed next to folder nodes? This is an icon which visually indicates whether the folder is opened or closed (typically via a [+] or [-] image, or a turn-down arrow) and may be clicked to expand or collapse the folder.For folders with no children, this icon is not shown unless
alwaysShowOpener
istrue
. Note that for trees whichload data on demand
, we may not know if a folder has any descendants if it has never been opened. As such we will show the opener icon next to the folder. Once the user opens the icon and a fetch occurs, if the folder is empty, andalwaysShowOpener
is false, the opener icon will be hidden.For more information on load on demand trees, and how we determine whether a node is a a folder or a leaf, please refer to the
TreeDataBinding
documentation.The opener icon URL is derived from the specified
openerImage
orconnectorImage
depending onshowConnectors
. IfshowSelectedOpener
is specified a separate opener icon will be displayed for selected nodes.- Parameters:
showOpener
- New showOpener value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowOpener
Should the opener icon be displayed next to folder nodes? This is an icon which visually indicates whether the folder is opened or closed (typically via a [+] or [-] image, or a turn-down arrow) and may be clicked to expand or collapse the folder.For folders with no children, this icon is not shown unless
alwaysShowOpener
istrue
. Note that for trees whichload data on demand
, we may not know if a folder has any descendants if it has never been opened. As such we will show the opener icon next to the folder. Once the user opens the icon and a fetch occurs, if the folder is empty, andalwaysShowOpener
is false, the opener icon will be hidden.For more information on load on demand trees, and how we determine whether a node is a a folder or a leaf, please refer to the
TreeDataBinding
documentation.The opener icon URL is derived from the specified
openerImage
orconnectorImage
depending onshowConnectors
. IfshowSelectedOpener
is specified a separate opener icon will be displayed for selected nodes.- Returns:
- Current showOpener value. Default value is true
-
setShowOpenIcons
If true, show a different icon foropen
folders than closed folders. This is achieved by appending theopenIconSuffix
onto thefolderIcon
URL [for example"[SKIN]/folder.gif"
might be replaced by"[SKIN]/folder_open.gif"
.
Note If this property is set tofalse
the same icon is shown for open folders as for closed folders, unless a custom folder icon was specified. This will be determined byfolderIcon
plus theclosedIconSuffix
.- Parameters:
showOpenIcons
- New showOpenIcons value. Default value is true- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getShowOpenIcons
If true, show a different icon foropen
folders than closed folders. This is achieved by appending theopenIconSuffix
onto thefolderIcon
URL [for example"[SKIN]/folder.gif"
might be replaced by"[SKIN]/folder_open.gif"
.
Note If this property is set tofalse
the same icon is shown for open folders as for closed folders, unless a custom folder icon was specified. This will be determined byfolderIcon
plus theclosedIconSuffix
.- Returns:
- Current showOpenIcons value. Default value is true
- See Also:
-
setShowPartialSelection
Should partially selected parents be shown with special icon?- Overrides:
setShowPartialSelection
in classListGrid
- Parameters:
showPartialSelection
- New showPartialSelection value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getShowPartialSelection
Should partially selected parents be shown with special icon?- Overrides:
getShowPartialSelection
in classListGrid
- Returns:
- Current showPartialSelection value. Default value is false
- See Also:
-
setShowRoot
Specifies whether the root node should be displayed in the treeGrid.This property is only available for "children" modelType trees, hence is not allowed for trees that load data from the server dynamically via
fetchData()
.To get the equivalent of a visible "root" node in a tree that loads data dynamically, add a singular, top-level parent to the data. However, note that this top-level parent will technically be the only child of root, and the implicit root object will be returned by
this.data.getRoot()
.- Parameters:
showRoot
- New showRoot value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getShowRoot
Specifies whether the root node should be displayed in the treeGrid.This property is only available for "children" modelType trees, hence is not allowed for trees that load data from the server dynamically via
fetchData()
.To get the equivalent of a visible "root" node in a tree that loads data dynamically, add a singular, top-level parent to the data. However, note that this top-level parent will technically be the only child of root, and the implicit root object will be returned by
this.data.getRoot()
.- Returns:
- Current showRoot value. Default value is false
-
setShowSelectedIcons
If true, show a different icon for selected nodes than unselected nodes. This is achieved by appending theselectedIconSuffix
onto thefolderIcon
URL ornodeIcon
for selected records.If appropriate, this suffix will be combined with the
openIconSuffix
orclosedIconSuffix
(seeshowOpenIcons
. So a treeGrid with itsfolderIcon
property set to"[SKIN]/folder.gif"
, with bothshowSelectedIcons
andshowOpenIcons
set to true would show an icon with the URL"[SKIN]/folder_open_selected.gif"
for a folder that was both selected and opened.- Parameters:
showSelectedIcons
- New showSelectedIcons value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowSelectedIcons
If true, show a different icon for selected nodes than unselected nodes. This is achieved by appending theselectedIconSuffix
onto thefolderIcon
URL ornodeIcon
for selected records.If appropriate, this suffix will be combined with the
openIconSuffix
orclosedIconSuffix
(seeshowOpenIcons
. So a treeGrid with itsfolderIcon
property set to"[SKIN]/folder.gif"
, with bothshowSelectedIcons
andshowOpenIcons
set to true would show an icon with the URL"[SKIN]/folder_open_selected.gif"
for a folder that was both selected and opened.- Returns:
- Current showSelectedIcons value. Default value is false
-
setShowSelectedOpener
IfshowOpener
is true, should a different opener icon be displayed for selected nodes? This provides a way for developers to show a "selected" version of the opener icon set which looks optimal with theselected appearance
applied the selected record.The selected icon URL is created by appending the suffix
"_selected"
to theopenerImage
orconnectorImage
.- Parameters:
showSelectedOpener
- New showSelectedOpener value. Default value is false- Returns:
TreeGrid
instance, for chaining setter calls
-
getShowSelectedOpener
IfshowOpener
is true, should a different opener icon be displayed for selected nodes? This provides a way for developers to show a "selected" version of the opener icon set which looks optimal with theselected appearance
applied the selected record.The selected icon URL is created by appending the suffix
"_selected"
to theopenerImage
orconnectorImage
.- Returns:
- Current showSelectedOpener value. Default value is false
-
setSortFoldersBeforeLeaves
public TreeGrid setSortFoldersBeforeLeaves(Boolean sortFoldersBeforeLeaves) throws IllegalStateException If specified, this attribute will overrideTree.sortFoldersBeforeLeaves
on the data for this treeGrid.Specifies whether when
Tree.separateFolders
is true, folders should be displayed before or after their sibling leaves in a sorted tree. If set to true, with sortDirection set to Array.ASCENDING, folders are displayed before their sibling leaves and with sort direction set to Array.DESCENDING they are displayed after. To invert this behavior, set this property to false.- Parameters:
sortFoldersBeforeLeaves
- New sortFoldersBeforeLeaves value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getSortFoldersBeforeLeaves
If specified, this attribute will overrideTree.sortFoldersBeforeLeaves
on the data for this treeGrid.Specifies whether when
Tree.separateFolders
is true, folders should be displayed before or after their sibling leaves in a sorted tree. If set to true, with sortDirection set to Array.ASCENDING, folders are displayed before their sibling leaves and with sort direction set to Array.DESCENDING they are displayed after. To invert this behavior, set this property to false.- Returns:
- Current sortFoldersBeforeLeaves value. Default value is null
- See Also:
-
setTreeFieldMinWidth
Defaultminimum width
for thetreeField
. If unset, the default minimum width will be derived fromminFieldWidth
, like any every other field.- Parameters:
treeFieldMinWidth
- New treeFieldMinWidth value. Default value is 100- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getTreeFieldMinWidth
public int getTreeFieldMinWidth()Defaultminimum width
for thetreeField
. If unset, the default minimum width will be derived fromminFieldWidth
, like any every other field.- Returns:
- Current treeFieldMinWidth value. Default value is 100
-
setTreeFieldTitle
Visible title for the tree column (field).- Parameters:
treeFieldTitle
- New treeFieldTitle value. Default value is "Name"- Returns:
TreeGrid
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the component has been created
-
getTreeFieldTitle
Visible title for the tree column (field).- Returns:
- Current treeFieldTitle value. Default value is "Name"
-
setUseAllDataSourceFields
If true, the set of fields given by the "default binding" (seeDataBoundComponent.fields
) is used, with any fields specified incomponent.fields
acting 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.fields
contains 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.This example shows a mixture of component fields and DataSource fields, and how they interact for validation.
This setting may be cleared if a
FieldPicker
is used to edit the component's field order.- Specified by:
setUseAllDataSourceFields
in interfaceDataBoundComponent
- Overrides:
setUseAllDataSourceFields
in classListGrid
- Parameters:
useAllDataSourceFields
- New useAllDataSourceFields value. Default value is null- Returns:
TreeGrid
instance, for chaining setter calls- See Also:
-
getUseAllDataSourceFields
If true, the set of fields given by the "default binding" (seeDataBoundComponent.fields
) is used, with any fields specified incomponent.fields
acting 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.fields
contains 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.This example shows a mixture of component fields and DataSource fields, and how they interact for validation.
This setting may be cleared if a
FieldPicker
is used to edit the component's field order.- Specified by:
getUseAllDataSourceFields
in interfaceDataBoundComponent
- Overrides:
getUseAllDataSourceFields
in classListGrid
- Returns:
- Current useAllDataSourceFields value. Default value is null
- See Also:
-
canEditCell
Overridden to disallow editing of thename
field of this grid's data tree. Also disallows editing of the auto-generated tree field, which displays the result ofTree.getTitle()
on the node.- Returns:
- Whether to allow editing this cell
-
closeFolder
Closes a folder.- Parameters:
node
- node to close- See Also:
-
addDataArrivedHandler
Add a dataArrived handler.Notification method fired whenever this TreeGrid receives new data nodes from the dataSource. Only applies to databound TreeGrids where
TreeGrid.data
is aResultTree
- either explicitly created and applied viaTreeGrid.setData()
or automatically generated via afetchData()
call.Note that
dataArrived()
, unlikeTreeGrid.dataChanged()
, only fires in limited circumstances - when data for aResultTree
arrives from the server due to a fetch or cache invalidation, or as a result of filtering. If you want to catch all data changes, you should instead react toTreeGrid.dataChanged()
.- Specified by:
addDataArrivedHandler
in interfaceHasDataArrivedHandlers
- Parameters:
handler
- the dataArrived handler- Returns:
HandlerRegistration
used to remove this handler
-
addDataChangedHandler
Add a dataChanged handler.Notification method fired when the TreeGrid's data changes, for any reason.
Examples of why data changed might be:
- a call to
addData()
,updateData()
, orremoveData()
-
DataSource
updates from the server forResultTree
data (triggered by record editing, etc.) - fetches arriving back from the server for
ResultTree
data -
programmatic changes to
Tree
data if made through APIs such asTree.add()
,Tree.remove()
, etc. - cache invalidation
- filtering
TreeGrid.setData()
doesn't call this notification directly, but it may fire if one of the above listed events is triggered (e.g. a server fetch forResultTree
data).Note that the
operationType
parameter is optional and will be passed and contain the operation (e.g. "update") if this notification was triggered by a fetch, anaddData()
,updateData()
, orremoveData()
, or aDataSource
update forResultTree
data (the first three reasons listed above) but otherwise will be null.- Specified by:
addDataChangedHandler
in interfaceHasDataChangedHandlers
- Parameters:
handler
- the dataChanged handler- Returns:
HandlerRegistration
used to remove this handler
- a call to
-
exportClientData
public void exportClientData()Exports this component's data with client-side formatters applied, so is suitable for direct display to users. SeeListGrid.exportClientData()
for details of the general requirements and restrictions when exporting client data.The following notes apply when exporting client data from TreeGrids:
- Export only works correctly if you specify
fields
; if you allow it to generate adefault field
, nothing will be exported - Only visible nodes are exported; if you close a node, its children are not exported even if they are loaded and known to the client
- Tree nodes are exported as a flat list, in the same order they are displayed in the TreeGrid
If your TreeGrid has custom formatters, formatted values will be exported by default, with HTML normalized to text where possible. Since some levels of HTML normalizing aren't possible, this may result in missing or incorrect export values. In this case, you have two possible approaches:
- Set
exportRawValues
on the field. This will export the raw underlying value of the field; your formatter will not be called - Have your formatter call
isExportingClientData()
and perform whatever alternative formatting you require if that method returns true
- Overrides:
exportClientData
in classListGrid
- See Also:
- Export only works correctly if you specify
-
exportClientData
- Overrides:
exportClientData
in classListGrid
- See Also:
-
exportClientData
Exports this component's data with client-side formatters applied, so is suitable for direct display to users. SeeListGrid.exportClientData()
for details of the general requirements and restrictions when exporting client data.The following notes apply when exporting client data from TreeGrids:
- Export only works correctly if you specify
fields
; if you allow it to generate adefault field
, nothing will be exported - Only visible nodes are exported; if you close a node, its children are not exported even if they are loaded and known to the client
- Tree nodes are exported as a flat list, in the same order they are displayed in the TreeGrid
If your TreeGrid has custom formatters, formatted values will be exported by default, with HTML normalized to text where possible. Since some levels of HTML normalizing aren't possible, this may result in missing or incorrect export values. In this case, you have two possible approaches:
- Set
exportRawValues
on the field. This will export the raw underlying value of the field; your formatter will not be called - Have your formatter call
isExportingClientData()
and perform whatever alternative formatting you require if that method returns true
- Overrides:
exportClientData
in classListGrid
- Parameters:
requestProperties
- Request properties for the export. Note that specifyingexportData
on the request properties allows the developer to pass in an explicit data set to export.callback
- Optional callback. If you specifyexportToClient
: false in the request properties, this callback will fire after export completes. Otherwise the callback will fire right before the download request is made to the server.- See Also:
- Export only works correctly if you specify
-
addFolderClickHandler
Add a folderClick handler.This method is called when a folder record is clicked on.
- Specified by:
addFolderClickHandler
in interfaceHasFolderClickHandlers
- Parameters:
handler
- the folderClick handler- Returns:
HandlerRegistration
used to remove this handler
-
addFolderClosedHandler
Add a folderClosed handler.This method is called when a folder is closed either via the user manipulating the expand/collapse control in the UI or via
TreeGrid.closeFolder()
. You can returnfalse
to cancel the close.- Specified by:
addFolderClosedHandler
in interfaceHasFolderClosedHandlers
- Parameters:
handler
- the folderClosed handler- Returns:
HandlerRegistration
used to remove this handler
-
addFolderContextClickHandler
Add a folderContextClick handler.This method is called when a context click occurs on a folder record.
- Specified by:
addFolderContextClickHandler
in interfaceHasFolderContextClickHandlers
- Parameters:
handler
- the folderContextClick handler- Returns:
HandlerRegistration
used to remove this handler
-
addFolderOpenedHandler
Add a folderOpened handler.This method is called when a folder is opened either via the user manipulating the expand/collapse control in the UI or via
TreeGrid.openFolder()
. You can returnfalse
to cancel the open.- Specified by:
addFolderOpenedHandler
in interfaceHasFolderOpenedHandlers
- Parameters:
handler
- the folderOpened handler- Returns:
HandlerRegistration
used to remove this handler
-
getDraggedNodeLocators
NOTE: Applicable only tomulti-link trees
; if called on a regularTreeGrid
, returns an empty array.During a drag-and-drop interaction, this method returns the set of node occurrences being dragged out of the component, wrapped inside
NodeLocator
s. In the default implementation, this is the list of currently selected node occurrences- Parameters:
source
- source grid from which the records will be transferred- Returns:
- Array of
NodeLocator
s unambiguously identifying the node occurrences that are currently selected
-
getEventRow
public int getEventRow()Returns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.- Overrides:
getEventRow
in classListGrid
- Returns:
- row number, or -2 if beyond last drawn row
-
getEventRow
Returns the row number of the provided Y-coordinate, or the most recent mouse event if a Y-coordinate is not provided.- Overrides:
getEventRow
in classListGrid
- Parameters:
y
- Y-coordinate relative to the top edge of the content to obtain the row number for. If not provided, thenCanvas.getOffsetY()
will be used.- Returns:
- row number, or -2 if beyond last drawn row
-
getOpenIcon
Get the appropriate open/close opener icon for a node. Returns null ifshowOpener
is set to false.- Parameters:
node
- tree node in question- Returns:
- URL for the icon to show the node's open state.
See
URL
-
getOpenState
Returns a snapshot of the current open state of this grid's data as aTreeGridOpenState
object.
This object can be passed tosetOpenState()
to open the same set of folders within the treeGrid's data (assuming the nodes are still present in the data).- Returns:
- current open state for the grid.
See
TreeGridOpenState
- See Also:
-
getSelectedPaths
Returns a snapshot of the current selection within this treeGrid as aListGridSelectedState
object.
This object can be passed tosetSelectedPaths()
to reset this grid's selection the current state (assuming the same data is present in the grid).- Returns:
- current state of this grid's selection.
See
ListGridSelectedState
- See Also:
-
groupBy
public void groupBy()Not applicable to TreeGrids, as thedata
already represents a tree.- See Also:
-
isExportingClientData
public boolean isExportingClientData()Returns true if this component is currentlyexporting client data
. This method can be called from custom cell formatters if you need to return a different formatted value for an export than for a live TreeGrid- Overrides:
isExportingClientData
in classListGrid
- Returns:
- returns true if this component is currently exporting client data
- See Also:
-
isOverExtraIcon
Returns true if the last event occurred overextra icon
for the current node.Returns false if the event did not occur over an extraIcon, or if no extraIcon is showing for the node in question.
- Returns:
- true if the user clicked the extra icon
-
isOverOpenArea
Returns true if the last event occurred over the indented area or over the open / close icon of a folder node in this TreeGrid. Returns false if the event did not occur over a folder node.- Returns:
- true if the user clicked the open icon
-
addLeafClickHandler
Add a leafClick handler.This method is called when a leaf record is clicked on.
- Specified by:
addLeafClickHandler
in interfaceHasLeafClickHandlers
- Parameters:
handler
- the leafClick handler- Returns:
HandlerRegistration
used to remove this handler
-
addLeafContextClickHandler
Add a leafContextClick handler.This method is called when a context click occurs on a leaf record.
- Specified by:
addLeafContextClickHandler
in interfaceHasLeafContextClickHandlers
- Parameters:
handler
- the leafContextClick handler- Returns:
HandlerRegistration
used to remove this handler
-
loadAllRecords
This method is not currently supported for this grid-type. SeeListGrid.loadAllRecords()
for more information.- Overrides:
loadAllRecords
in classListGrid
- Returns:
- true if a fetch was made or was not needed - false otherwise
-
loadAllRecords
- Overrides:
loadAllRecords
in classListGrid
- See Also:
-
loadAllRecords
This method is not currently supported for this grid-type. SeeListGrid.loadAllRecords()
for more information.- Overrides:
loadAllRecords
in classListGrid
- Parameters:
maxRecords
- optional maximum record count - if passed, no fetch takes place if maxRecords is below the known length of the datacallback
- callback to fire if a fetch is issued - if all data was already loaded, the callback is fired with no parameters- Returns:
- true if a fetch was made or was not needed - false otherwise
-
addNodeClickHandler
Add a nodeClick handler.This method is called when a leaf or folder record is clicked on. Note that if you set up a callback for
nodeClick()
and e.g.TreeGrid.leafClick()
, then both will fire (in that order) if a leaf is clicked on.- Specified by:
addNodeClickHandler
in interfaceHasNodeClickHandlers
- Parameters:
handler
- the nodeClick handler- Returns:
HandlerRegistration
used to remove this handler
-
addNodeContextClickHandler
Add a nodeContextClick handler.This method is called when a context click occurs on a leaf or folder record. Note that if you set up a callback for
nodeContextClick()
and e.g.TreeGrid.leafContextClick()
, then both will fire (in that order) if a leaf is contextclicked - unlessnodeContextClick()
returns false, in which case no further contextClick callbacks will be called.- Specified by:
addNodeContextClickHandler
in interfaceHasNodeContextClickHandlers
- Parameters:
handler
- the nodeContextClick handler- Returns:
HandlerRegistration
used to remove this handler
-
addFolderDropHandler
Add a folderDrop handler.Process a drop of one or more nodes on a TreeGrid folder.
Note: SeeTreeGridDrop
for 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
TreeGrid.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
parentId
field of the moved node(s).For a drop from another widget,
TreeGrid.transferDragData()
is called which, depending on thedragDataAction
specified 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
folder
at theindex
specified 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, andaddDropValues
is true,getDropValues
will be called for every item being dropped.As a special case, if the
sourceWidget
is also databound and aforeignKey
relationship 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().- Specified by:
addFolderDropHandler
in interfaceHasFolderDropHandlers
- Parameters:
handler
- the folderDrop handler- Returns:
HandlerRegistration
used to remove this handler
-
openFolder
Opens a folder.Executed when a folder node receives a 'doubleClick' event.
See the ListGrid Widget Class for inherited recordClick and recordDoubleClick events.
- Parameters:
node
- node to open- See Also:
-
openFolder
Opens a folder.Executed when a folder node receives a 'doubleClick' event.
See the ListGrid Widget Class for inherited recordClick and recordDoubleClick events.
- Parameters:
node
- node to openpath
- optional parameter containing the full path to the node. This is essential context for amulti-link tree
, but is not required in ordinary trees- See Also:
-
recordDoubleClick
public boolean recordDoubleClick(TreeGrid viewer, TreeNode record, int recordNum, TreeGridField field, int fieldNum, Map value, Map rawValue) Handle a doubleClick on a tree node - override of ListGrid stringMethod of same name. If the node is a folder, this implementation callstoggleFolder()
on it. If the node is a leaf, callsopenLeaf()
on it.- Parameters:
viewer
- the treeGrid that contains doubleclick eventrecord
- the record that was double-clickedrecordNum
- number of the record clicked on in the current set of displayed records (starts with 0)field
- the field that was clicked on (field definition)fieldNum
- number of the field clicked on in the treeGrid.fields arrayvalue
- value of the cell (after valueMap, etc. applied)rawValue
- raw value of the cell (before valueMap, etc applied)- Returns:
- false to stop event bubbling
- See Also:
-
setOpenState
Reset this set of open folders within this grid's data to match theTreeGridOpenState
object passed in.
Used to restore previous state retrieved from the grid by a call togetOpenState()
.- Parameters:
openState
- Object describing the desired set of open folders. SeeTreeGridOpenState
- See Also:
-
setSelectedPaths
Reset this grid's selection to match theListGridSelectedState
object passed in.
Used to restore previous state retrieved from the grid by a call togetSelectedPaths()
.- Parameters:
selectedPaths
- Object describing the desired selection state of the grid. SeeListGridSelectedState
- See Also:
-
toggleFolder
Opens the folder specified by node if it's closed, and closes it if it's open. TreeGrid will redraw if there's a change in the folder's open/closed state.- Parameters:
node
- the node in question, or the the node's ID, or a NodeLocator object
-
toggleFolder
Opens the folder specified by node if it's closed, and closes it if it's open. TreeGrid will redraw if there's a change in the folder's open/closed state.- Parameters:
node
- the node in question, or the the node's ID, or a NodeLocator object
-
toggleFolder
Opens the folder specified by node if it's closed, and closes it if it's open. TreeGrid will redraw if there's a change in the folder's open/closed state.- Parameters:
node
- the node in question, or the the node's ID, or a NodeLocator object
-
toggleFolder
Opens the folder specified by node if it's closed, and closes it if it's open. TreeGrid will redraw if there's a change in the folder's open/closed state.- Parameters:
node
- the node in question, or the the node's ID, or a NodeLocator object
-
setDefaultProperties
Class 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:
treeGridProperties
- properties that should be used as new defaults when instances of this class are created- See Also:
-
onInit
protected void onInit() -
startEditingNew
public void startEditingNew()This inheritedListGrid API
is not supported by the TreeGrid since adding a new tree node arbitrarily at the end of the tree is usually not useful. Instead, to add a new tree node and begin editing it, use either of these two strategies:- add a new node to the client-side Tree
model via
Tree.add
, then usestartEditing
to begin editing this node. Note that if using a DataSource, when the node is saved, an "update" operation will be used since adding a node directly to the client-sideResultTree
effectively means a new node has been added server side. - use
DataSource.addData
to immediately save a new node. Automatic cache sync by theResultTree
will cause the node to be integrated into the tree. When the callback to addData() fires, locate the new node by matching primary key and callstartEditing
to begin editing it.
- Overrides:
startEditingNew
in classListGrid
- See Also:
- add a new node to the client-side Tree
model via
-
getNodeTitle

 Returns the title to show for a node in the tree column. If the field specifies the
name
attribute, then the currentnode[field.name]
is returned.
 Otherwise, the result of callingTree.getTitle(com.smartgwt.client.widgets.tree.TreeNode)
on the node is called.


 You can override this method to return a custom title for node titles in the tree column.

 Note : This is an override point- Parameters:
node
- The node for which the title is being requested.recordNum
- The index of the node.field
- The field for which the title is being requested.- Returns:
- the title to display.
-
getIcon
Get the appropriate icon for a node.

 By default icons are derived from
folderIcon
andnodeIcon
.
 Custom icons for individual nodes can be overridden by setting thecustomIconProperty

 on a node.

 If you want to suppress icons altogether, provide an override of this method that simply
 returns null.


 Note that the full icon URL will be derived by applying
Canvas.getImgURL(java.lang.String)
to the
 value returned from this method.

Note: This is an override point
- Parameters:
node
- tree node in questiondefaultState
- defaultState- Returns:
- URL for icon to show for this node
-
setCustomNodeIcon
Set the icon for a particular TreeNode to a specified URL- Parameters:
node
- the tree nodeicon
- path to the resource
-
getExtraIcon
Get an additional icon to show between the open icon and folder/node icon for a particular node.NOTE: If
selectionAppearance
is"checkbox"
, this method will NOT be called. Extra icons cannot be shown for that appearance.Note: This is an override point
- Parameters:
node
- tree node in question- Returns:
- URL for the extra icon (null if none required). See
TreeNode
-
getDropFolder
When the user is dragging a droppable element over this grid, this method returns the folder
 which would contain the item if dropped. This is the current drop node if the user is hovering
 over a folder, or the node's parent if the user is hovering over a leaf.
- Returns:
- target drop folder
-
setData
ATree
object containing of nestedTreeNode
s to display as rows in this TreeGrid. Thedata
property will typically not be explicitly specified for databound TreeGrids, 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 theTree
object this TreeGrid will view and manipulate.- Parameters:
data
- Tree to show. Default value is null
-
getData
ATree
object containing of nestedTreeNode
s to display as rows in this TreeGrid. Thedata
property will typically not be explicitly specified for databound TreeGrids, where the data is returned from the server via databound component methods such asfetchData()
- Returns:
- Tree
-
getTree
Synonym forgetData()
- Returns:
- the underlying tree
-
setDataProperties
For databound TreeGrids, this attribute can be used to customize thecom.smartgwt.client.tree.ResultTree
object created for this grid when data is fetched.Note : This is an advanced setting
Class overrides forResultTree
cannot be applied to the grid using this API. Instead, consider setting theresultTreeClass
property in the file defining yourDataSource
. Your class must beregistered for reflection
.- Parameters:
resultTreeProperties
- the data properties- See Also:
-
getRecords
Return the tree nodes as a flat array of ListGridRecords. Internally this method retrieves all the nodes viaTree.getOpenList(TreeNode)
. You should favor working with the underlyingTree
data structure when working with a TreeGrid.- Overrides:
getRecords
in classListGrid
- Returns:
- the tree nodes as ListGridRecord's
-
setInitialData
You can specify the initial set of data for a databound TreeGrid using this property. The value of this attribute should be a list ofparentId
-linkedTreeNode
s in a format equivalent to that documented onTree.data
or, for TreeGrids withdataFetchMode
set to"paged"
, onResultTree.data
.If you create a standalone
Tree
orResultTree
as the TreeGrid'sdata
then you may equivalently specify this initial set of tree nodes in that tree'sdata
property.Note : This is an advanced setting
- Parameters:
initialData
- New initialData value. Default value is null- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
fetchData
public void fetchData()Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.This method will create a
com.smartgwt.client.data.ResultTree
to manage tree data, which will subsequently be available astreeGrid.data
. DataSource records returned by the "fetch" operation are linked into a tree structure according toprimaryKey
andforeignKey
declarations on DataSource fields. See theTreeDataBinding
topic for complete details.By default, the created ResultTree will use folder-by-folder load on demand, asking the server for the children of each folder as the user opens it.
The
com.smartgwt.client.data.ResultTree
created byfetchData()
can be customized by settingdataProperties
to an Object containing properties and methods to apply to the created ResultTree. For example, the property that determines whether a node is a folder (isFolderProperty
) can be customized, or level-by-level loading can be disabled vialoadDataOnDemand
.The callback passed to
fetchData
will fire once, the first time that data is loaded from the server. If using folder-by-folder load on demand, use thecom.smartgwt.client.data.ResultTree#dataArrived
notification to be notified each time new nodes are loaded.Note that, if criteria are passed to
fetchData()
, they will be passed every time a new "fetch" operation is sent to the server. This allows you to retrieve multiple different tree structures from the same DataSource. However note that the server is expected to always respond with an intact tree - returned nodes which do not have parents are dropped from the dataset and not displayed.- Specified by:
fetchData
in interfaceDataBoundComponent
- Overrides:
fetchData
in classListGrid
-
fetchData
Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.This method will create a
com.smartgwt.client.data.ResultTree
to manage tree data, which will subsequently be available astreeGrid.data
. DataSource records returned by the "fetch" operation are linked into a tree structure according toprimaryKey
andforeignKey
declarations on DataSource fields. See theTreeDataBinding
topic for complete details.By default, the created ResultTree will use folder-by-folder load on demand, asking the server for the children of each folder as the user opens it.
The
com.smartgwt.client.data.ResultTree
created byfetchData()
can be customized by settingdataProperties
to an Object containing properties and methods to apply to the created ResultTree. For example, the property that determines whether a node is a folder (isFolderProperty
) can be customized, or level-by-level loading can be disabled vialoadDataOnDemand
.The callback passed to
fetchData
will fire once, the first time that data is loaded from the server. If using folder-by-folder load on demand, use thecom.smartgwt.client.data.ResultTree#dataArrived
notification to be notified each time new nodes are loaded.Note that, if criteria are passed to
fetchData()
, they will be passed every time a new "fetch" operation is sent to the server. This allows you to retrieve multiple different tree structures from the same DataSource. However note that the server is expected to always respond with an intact tree - returned nodes which do not have parents are dropped from the dataset and not displayed.- Specified by:
fetchData
in interfaceDataBoundComponent
- Overrides:
fetchData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
-
fetchData
Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.This method will create a
com.smartgwt.client.data.ResultTree
to manage tree data, which will subsequently be available astreeGrid.data
. DataSource records returned by the "fetch" operation are linked into a tree structure according toprimaryKey
andforeignKey
declarations on DataSource fields. See theTreeDataBinding
topic for complete details.By default, the created ResultTree will use folder-by-folder load on demand, asking the server for the children of each folder as the user opens it.
The
com.smartgwt.client.data.ResultTree
created byfetchData()
can be customized by settingdataProperties
to an Object containing properties and methods to apply to the created ResultTree. For example, the property that determines whether a node is a folder (isFolderProperty
) can be customized, or level-by-level loading can be disabled vialoadDataOnDemand
.The callback passed to
fetchData
will fire once, the first time that data is loaded from the server. If using folder-by-folder load on demand, use thecom.smartgwt.client.data.ResultTree#dataArrived
notification to be notified each time new nodes are loaded.Note that, if criteria are passed to
fetchData()
, they will be passed every time a new "fetch" operation is sent to the server. This allows you to retrieve multiple different tree structures from the same DataSource. However note that the server is expected to always respond with an intact tree - returned nodes which do not have parents are dropped from the dataset and not displayed.- Specified by:
fetchData
in interfaceDataBoundComponent
- Overrides:
fetchData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
callback
- callback to invoke when a fetch is complete. Fires only if server contact was required
-
fetchData
Uses a "fetch" operation on the currentDataSource
to retrieve data that matches the provided criteria, and displays the matching data in this component as a tree.This method will create a
com.smartgwt.client.data.ResultTree
to manage tree data, which will subsequently be available astreeGrid.data
. DataSource records returned by the "fetch" operation are linked into a tree structure according toprimaryKey
andforeignKey
declarations on DataSource fields. See theTreeDataBinding
topic for complete details.By default, the created ResultTree will use folder-by-folder load on demand, asking the server for the children of each folder as the user opens it.
The
com.smartgwt.client.data.ResultTree
created byfetchData()
can be customized by settingdataProperties
to an Object containing properties and methods to apply to the created ResultTree. For example, the property that determines whether a node is a folder (isFolderProperty
) can be customized, or level-by-level loading can be disabled vialoadDataOnDemand
.The callback passed to
fetchData
will fire once, the first time that data is loaded from the server. If using folder-by-folder load on demand, use thecom.smartgwt.client.data.ResultTree#dataArrived
notification to be notified each time new nodes are loaded.Note that, if criteria are passed to
fetchData()
, they will be passed every time a new "fetch" operation is sent to the server. This allows you to retrieve multiple different tree structures from the same DataSource. However note that the server is expected to always respond with an intact tree - returned nodes which do not have parents are dropped from the dataset and not displayed.- Specified by:
fetchData
in interfaceDataBoundComponent
- Overrides:
fetchData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
callback
- callback to invoke when a fetch is complete. Fires only if server contact was requiredrequestProperties
- additional properties to set on the DSRequest that will be issued
-
filterData
Retrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like
fetchData()
except thattextMatchStyle
is automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
filterData
in interfaceDataBoundComponent
- Overrides:
filterData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
-
filterData
Retrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like
fetchData()
except thattextMatchStyle
is automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
filterData
in interfaceDataBoundComponent
- Overrides:
filterData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
callback
- callback to invoke when a fetch is complete. Fires only if server contact was required; seeDataBoundComponent.fetchData()
for details
-
filterData
Retrieves data that matches the provided criteria and displays the matching data in this component.This method behaves exactly like
fetchData()
except thattextMatchStyle
is automatically set to "substring" so that String-valued fields are matched by case-insensitive substring comparison.- Specified by:
filterData
in interfaceDataBoundComponent
- Overrides:
filterData
in classListGrid
- Parameters:
criteria
- Search criteria. If aDynamicForm
is passed in as this argument instead of a raw criteria object, will be derived by callingDynamicForm.getValuesAsCriteria()
callback
- callback to invoke when a fetch is complete. Fires only if server contact was required; seeDataBoundComponent.fetchData()
for detailsrequestProperties
- for databound components only - optional additional properties to set on the DSRequest that will be issued
-
getSelectedRecord
Return the first selected record in this component.
This method is appropriate if
isselectionType
"single"
, or if you only care about the first selected record in a multiple-record selection. To access all selected records, use
instead.ListGrid.getSelection()
- Overrides:
getSelectedRecord
in classListGrid
- Returns:
- first selected record, or null if nothing selected
- See Also:
-
getRecord
Return the pointer to a particular record by record number. Synonym forcom.smartgwt.client.widgets.grid.ListGrid#getCellRecord
.- Overrides:
getRecord
in classListGrid
- Parameters:
recordNum
- row index of record to return.- Returns:
- Record object for the row.
- See Also:
-
com.smartgwt.client.widgets.grid.ListGrid#getCellRecord
ListGrid.getEditedRecord(int)
-
setTreeRootValue
For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.This property allows you to have a particular component navigate a tree starting from any given node as the root.
Note : This is an advanced setting
- Parameters:
treeRootValue
- New treeRootValue value. Default value is null- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
setTreeRootValue
For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.This property allows you to have a particular component navigate a tree starting from any given node as the root.
Note : This is an advanced setting
- Parameters:
treeRootValue
- New treeRootValue value. Default value is null- Throws:
IllegalStateException
- this property cannot be changed after the component has been created- See Also:
-
getTreeRootValue
For databound trees, use this attribute to supply aDataSourceField.rootValue
for this component's generated data object.This property allows you to have a particular component navigate a tree starting from any given node as the root.
- Returns:
- Current treeRootValue value. Default value is null
- See Also:
-
getCellAlign
Return the horizontal alignment for cell contents. Default implementation will always left-align the specialtreeField
[or right-align if the page is in RTL mode] - otherwise will returncellAlign
if specified, otherwisealign
.- Parameters:
record
- this cell's recordrowNum
- row number for the cellcolNum
- column number of the cell- Returns:
- Horizontal alignment of cell contents: 'right', 'center', or 'left'
-
setCellValueHoverFormatter
Description copied from class:ListGrid
Provide a custom implementation ofListGrid.cellValueHoverHTML(ListGridRecord, int, int, String)
.The
CellValueHoverFormatter
should return the HTML to display in the hover canvas that is displayed by default if a registeredCellValueHoverHandler
does not cancel aCellValueHoverEvent
. The formatter can return null or an empty string to cancel the hover.- Overrides:
setCellValueHoverFormatter
in classListGrid
- Parameters:
formatter
- the cell value hover formatter
-
willAcceptDrop
This method overridesListGrid.willAcceptDrop()
and works as follows:
First,ListGrid.willAcceptDrop()
(the superclass definition) is consulted. If it returns false, then this method returns false immediately.
This handles the following cases:
- reordering of records within this TreeGrid whencanReorderRecords
is true
- accepting dropped records from another dragTarget whencanAcceptDroppedRecords
is true and the dragTarget gives us a valid set of records to drop into place.
- disallowing drop over disabled nodes, or nodes withcanAcceptDrop:false
This method will also return false if the drop occurred over a leaf node whose immediate parent hascanAcceptDrop
set tofalse
IfcanReparentNodes
is true, and the user is dragging a node from one folder to another, this method will return true to allow the change of parent folder.
Otherwise this method returns true. Note: This is an override point.- Overrides:
willAcceptDrop
in classListGrid
- Returns:
- true if this component will accept a drop of the dragData
-
transferNodes
public void transferNodes(TreeNode[] nodes, TreeNode folder, Integer index, Canvas sourceWidget, TransferNodesCallback callback) Transfer a list ofTreeNode
s from another component (does not have to be a databound component) into this TreeGrid.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 default folder drop behavior is simply to call
transferNodes()
, 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
DropCompleteHandler
to this component.See also
transferSelectedData()
- Parameters:
nodes
- Nodes to transfer to this componentfolder
- The target folder (eg, of a drop interaction), for contextindex
- (Insert point within the target folder data for the transferred nodessourceWidget
- The databound or non-databound component from which the nodes are to be transferred.callback
- optional TransferNodesCallback 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 nodes actually transferred to this component
-
addRecordDropHandler
public HandlerRegistration addRecordDropHandler(RecordDropHandler handler) throws UnsupportedOperationException This ListGrid superclass event does not fire on a TreeGrid, useaddFolderDropHandler(com.smartgwt.client.widgets.tree.events.FolderDropHandler)
instead.- Specified by:
addRecordDropHandler
in interfaceHasRecordDropHandlers
- Overrides:
addRecordDropHandler
in classListGrid
- Parameters:
handler
- the onRecordDrop handler- Returns:
HandlerRegistration
used to remove this handler- Throws:
UnsupportedOperationException
-
setLogicalStructure
Setter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility. -
getLogicalStructure
Getter implementing theLogicalStructure
interface, which supports Eclipse's logical structure debugging facility.- Specified by:
getLogicalStructure
in interfaceLogicalStructure
- Overrides:
getLogicalStructure
in classListGrid
-