Class TreeGridField

All Implemented Interfaces:
HasHandlers, HasCellSavedHandlers, HasChangedHandlers, HasChangeHandlers, HasEditorEnterHandlers, HasEditorExitHandlers, HasRecordClickHandlers, HasValueIconClickHandlers

public class TreeGridField extends ListGridField
An object literal with a particular set of properties used to configure the display of and interaction with the columns of a TreeGrid. TreeGrid is a subclass of ListGrid and as a result, for all fields except the field containing the Tree itself (specified by treeField, all properties settable on ListGridField apply to TreeGridField as well.

This class documents just those properties that are specific to TreeGridFields - see ListGridField for the set of inherited properties.

See Also:
  • Constructor Details

    • TreeGridField

      public TreeGridField()
    • TreeGridField

      public TreeGridField(JavaScriptObject jsObj)
    • TreeGridField

      public TreeGridField(String name)
    • TreeGridField

      public TreeGridField(String name, int width)
    • TreeGridField

      public TreeGridField(String name, String title)
    • TreeGridField

      public TreeGridField(String name, String title, int width)
  • Method Details

    • getOrCreateRef

      public static TreeGridField getOrCreateRef(JavaScriptObject jsObj)
    • setCanExport

      public TreeGridField setCanExport(Boolean canExport)
      Dictates whether the data in this field be exported. Explicitly set this to false to prevent exporting. Has no effect if the underlying dataSourceField is explicitly set to canExport: false.
      Overrides:
      setCanExport in class ListGridField
      Parameters:
      canExport - New canExport value. Default value is null
      Returns:
      TreeGridField instance, for chaining setter calls
    • getCanExport

      public Boolean getCanExport()
      Dictates whether the data in this field be exported. Explicitly set this to false to prevent exporting. Has no effect if the underlying dataSourceField is explicitly set to canExport: false.
      Overrides:
      getCanExport in class ListGridField
      Returns:
      Current canExport value. Default value is null
    • setTreeField

      public TreeGridField setTreeField(Boolean treeField)
      The field containing treeField: true will display the Tree. If no field specifies this property, if a field named after the Tree.titleProperty of the Tree is present in TreeGrid.fields, that field will show the tree. Note that when using a DataSource, you typically define the title field via DataSource.titleField and the generated ResultTree automatically uses this field.

      If none of the above rules apply, the first field in TreeGrid.fields is assigned to display the Tree.

      Note that if TreeGrid.treeFieldMinWidth is specified, this will act as a default minimum width for tree fields (taking precedence over treeGrid.minFieldWidth).

      Parameters:
      treeField - New treeField value. Default value is see below
      Returns:
      TreeGridField instance, for chaining setter calls
    • getTreeField

      public Boolean getTreeField()
      The field containing treeField: true will display the Tree. If no field specifies this property, if a field named after the Tree.titleProperty of the Tree is present in TreeGrid.fields, that field will show the tree. Note that when using a DataSource, you typically define the title field via DataSource.titleField and the generated ResultTree automatically uses this field.

      If none of the above rules apply, the first field in TreeGrid.fields is assigned to display the Tree.

      Note that if TreeGrid.treeFieldMinWidth is specified, this will act as a default minimum width for tree fields (taking precedence over treeGrid.minFieldWidth).

      Returns:
      Current treeField value. Default value is see below