Class Facet
- All Implemented Interfaces:
- HasHandlers
CubeGrid and FacetChart classes.- 
Field SummaryFields inherited from class com.smartgwt.client.core.RefDataClassidFields inherited from class com.smartgwt.client.core.DataClassfactoryCreated, factoryProperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAlign()Default alignment for facet label title, and cells for this facet.CSS line style to apply as a border after this facet, eg "1px dashed blue"CSS line style to apply as a border before this facet, eg "1px dashed blue"For tree facets, whether expand/collapse controls should be shown.If facet minimizing is enabled, whether this facet should show controls to minimize the next facet.Default alignment of cells (in the body) for this facet.For tree facets, default collapse state for parent nodes.Integer number of pixels.getId()id of this facet.id of this facet.id of this facet.Controls indenting for ahierarchicalcolumn facet if set non-null, overrriding the value ofCubeGrid.indentVTreeFacets.When applied to a Chart, does the chart's data contain multiple values per record for this facet.Marks this facet as a hierarchical facet.Integer number of pixels.Defaultminimize statefor parent nodes.static FacetgetOrCreateRef(JavaScriptObject jsObj) ForFacetChartsonly, this property specifies the value axis label when a FacetChart is inproportional rendering modeand has this facet as itslegend facet.facetValueId of the rollup facetValue for this facet.Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.Should folders in the facet tree be sorted separately from leaves or should the facet values retain their data order regardless of whether a value is a leaf or folder in the tree?Indicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children).IfseparateFoldersis true, should folders be displayed above or below leaves? When set totruefolders will appear above leaves unless the data order has been reversed by settingshowParentsLasttotrue.Title for facet summary.Value for facet summary.If true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize.getTitle()User-visible title of this facet.Alignment of facet label title.Array of facetValue definitions.intgetWidth()Integer number of pixels.Default alignment for facet label title, and cells for this facet.setBorderAfter(String borderAfter) CSS line style to apply as a border after this facet, eg "1px dashed blue"setBorderBefore(String borderBefore) CSS line style to apply as a border before this facet, eg "1px dashed blue"setCanCollapse(Boolean canCollapse) For tree facets, whether expand/collapse controls should be shown.setCanMinimize(Boolean canMinimize) If facet minimizing is enabled, whether this facet should show controls to minimize the next facet.setCellAlign(Alignment cellAlign) Default alignment of cells (in the body) for this facet.setCollapsed(Boolean collapsed) For tree facets, default collapse state for parent nodes.Integer number of pixels.voidid of this facet.voidid of this facet.setIndentVTree(Boolean indentVTree) Controls indenting for ahierarchicalcolumn facet if set non-null, overrriding the value ofCubeGrid.indentVTreeFacets.setInlinedValues(Boolean inlinedValues) When applied to a Chart, does the chart's data contain multiple values per record for this facet.Marks this facet as a hierarchical facet.setLabelHeight(Integer labelHeight) Integer number of pixels.setMinimized(Boolean minimized) Defaultminimize statefor parent nodes.setProportionalTitle(String proportionalTitle) ForFacetChartsonly, this property specifies the value axis label when a FacetChart is inproportional rendering modeand has this facet as itslegend facet.setRollupValue(String rollupValue) facetValueId of the rollup facetValue for this facet.setSelectionBoundary(SelectionBoundary selectionBoundary) Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.setSeparateFolders(Boolean separateFolders) Should folders in the facet tree be sorted separately from leaves or should the facet values retain their data order regardless of whether a value is a leaf or folder in the tree?setShowParentsLast(Boolean showParentsLast) Indicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children).setSortFoldersBeforeLeaves(Boolean sortFoldersBeforeLeaves) IfseparateFoldersis true, should folders be displayed above or below leaves? When set totruefolders will appear above leaves unless the data order has been reversed by settingshowParentsLasttotrue.setSummaryTitle(String summaryTitle) Title for facet summary.setSummaryValue(String summaryValue) Value for facet summary.setSynchColumnLayout(Boolean synchColumnLayout) If true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize.User-visible title of this facet.setTitleAlign(Alignment titleAlign) Alignment of facet label title.setValues(FacetValue... values) Array of facetValue definitions.setWidth(int width) Integer number of pixels.Methods inherited from class com.smartgwt.client.core.RefDataClassgetRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClassapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
- 
Constructor Details- 
Facetpublic Facet()
- 
Facet
- 
Facet
- 
Facet
 
- 
- 
Method Details- 
getOrCreateRef
- 
setAlignDefault alignment for facet label title, and cells for this facet. Can be overridden at the facetValue level, or by setting titleAlign or cellAlign on the facet.Note: This property is specific to CubeGrids(see, for example,CubeGrid.facetValueAlign).- Parameters:
- align- New align value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getAlignDefault alignment for facet label title, and cells for this facet. Can be overridden at the facetValue level, or by setting titleAlign or cellAlign on the facet.Note: This property is specific to CubeGrids(see, for example,CubeGrid.facetValueAlign).- Returns:
- Current align value. Default value is null
- See Also:
 
- 
setBorderAfterCSS line style to apply as a border after this facet, eg "1px dashed blue"Note: This property is specific to CubeGrids.- Parameters:
- borderAfter- New borderAfter value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getBorderAfterCSS line style to apply as a border after this facet, eg "1px dashed blue"Note: This property is specific to CubeGrids.- Returns:
- Current borderAfter value. Default value is null
 
- 
setBorderBeforeCSS line style to apply as a border before this facet, eg "1px dashed blue"Note: This property is specific to CubeGrids.- Parameters:
- borderBefore- New borderBefore value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getBorderBeforeCSS line style to apply as a border before this facet, eg "1px dashed blue"Note: This property is specific to CubeGrids.- Returns:
- Current borderBefore value. Default value is null
 
- 
setCanCollapseFor tree facets, whether expand/collapse controls should be shown.Note: This property is specific to CubeGrids(see, for example,CubeGrid.canCollapseFacets).- Parameters:
- canCollapse- New canCollapse value. Default value is facet.isTree
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getCanCollapseFor tree facets, whether expand/collapse controls should be shown.Note: This property is specific to CubeGrids(see, for example,CubeGrid.canCollapseFacets).- Returns:
- Current canCollapse value. Default value is facet.isTree
 
- 
setCanMinimizeIf facet minimizing is enabled, whether this facet should show controls to minimize the next facet. Generally a tree facet should not also allow minimizing the next facet - the interaction of the two types of collapsing can be confusing.Note: This property is specific to CubeGrids. SeeCubeGrid.canMinimizeFacets.- Parameters:
- canMinimize- New canMinimize value. Default value is cubeGrid.canMinimizeFacets
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getCanMinimizeIf facet minimizing is enabled, whether this facet should show controls to minimize the next facet. Generally a tree facet should not also allow minimizing the next facet - the interaction of the two types of collapsing can be confusing.Note: This property is specific to CubeGrids. SeeCubeGrid.canMinimizeFacets.- Returns:
- Current canMinimize value. Default value is cubeGrid.canMinimizeFacets
 
- 
setCellAlignDefault alignment of cells (in the body) for this facet.Note: This property is specific to CubeGrids.- Parameters:
- cellAlign- New cellAlign value. Default value is cubeGrid.cellAlign
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getCellAlignDefault alignment of cells (in the body) for this facet.Note: This property is specific to CubeGrids.- Returns:
- Current cellAlign value. Default value is cubeGrid.cellAlign
- See Also:
 
- 
setCollapsedFor tree facets, default collapse state for parent nodes.Note: This property is specific to CubeGrids.- Parameters:
- collapsed- New collapsed value. Default value is false
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getCollapsedFor tree facets, default collapse state for parent nodes.Note: This property is specific to CubeGrids.- Returns:
- Current collapsed value. Default value is false
 
- 
setHeightInteger number of pixels. For column facets, specifies the height of header. Has no effect on row facets.If this property conflicts with a labelHeight, the greater of the two properties will be used for determining the height of the affected row.Note: This property is specific to CubeGrids.- Parameters:
- height- New height value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getHeightInteger number of pixels. For column facets, specifies the height of header. Has no effect on row facets.If this property conflicts with a labelHeight, the greater of the two properties will be used for determining the height of the affected row.Note: This property is specific to CubeGrids.- Returns:
- Current height value. Default value is null
 
- 
setIndentVTreeControls indenting for ahierarchicalcolumn facet if set non-null, overrriding the value ofCubeGrid.indentVTreeFacets.- Parameters:
- indentVTree- New indentVTree value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getIndentVTreeControls indenting for ahierarchicalcolumn facet if set non-null, overrriding the value ofCubeGrid.indentVTreeFacets.- Returns:
- Current indentVTree value. Default value is null
- See Also:
 
- 
setInlinedValuesWhen applied to a Chart, does the chart's data contain multiple values per record for this facet. See Chart.data for a full overview ofinlinedValuesbehavior.- Parameters:
- inlinedValues- New inlinedValues value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getInlinedValuesWhen applied to a Chart, does the chart's data contain multiple values per record for this facet. See Chart.data for a full overview ofinlinedValuesbehavior.- Returns:
- Current inlinedValues value. Default value is null
 
- 
setIsTreeMarks this facet as a hierarchical facet.If set, facet.valuewill be linked as for amodelType:"parent"Tree, usingfacetValue.idandfacetValue.parentId. Expand/collapse controls will be shown allowing navigation of the facet's values.The CubeGrid's load on demandsystem automatically avoids fetching data for facetValues that are not currently visible due to the expand/collapse state of a tree facet.Initial open/close state can be controlled via facet.collapsedandFacetValue.collapsed.Note: This property is specific to CubeGrids.- Parameters:
- isTree- New isTree value. Default value is false
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getIsTreeMarks this facet as a hierarchical facet.If set, facet.valuewill be linked as for amodelType:"parent"Tree, usingfacetValue.idandfacetValue.parentId. Expand/collapse controls will be shown allowing navigation of the facet's values.The CubeGrid's load on demandsystem automatically avoids fetching data for facetValues that are not currently visible due to the expand/collapse state of a tree facet.Initial open/close state can be controlled via facet.collapsedandFacetValue.collapsed.Note: This property is specific to CubeGrids.- Returns:
- Current isTree value. Default value is false
- See Also:
 
- 
setLabelHeightInteger number of pixels. For column facets other than the innermost, specifies the height of the header. For row facets, specifies the height of the row containing that row facet's label (which is the same row containing the innermost column facet if one or more column facets are present).If this property conflicts with a height, the greater of the two properties will be used for determining the height of the affected row.Note: This property is specific to CubeGrids.- Parameters:
- labelHeight- New labelHeight value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getLabelHeightInteger number of pixels. For column facets other than the innermost, specifies the height of the header. For row facets, specifies the height of the row containing that row facet's label (which is the same row containing the innermost column facet if one or more column facets are present).If this property conflicts with a height, the greater of the two properties will be used for determining the height of the affected row.Note: This property is specific to CubeGrids.- Returns:
- Current labelHeight value. Default value is null
 
- 
setMinimizedDefaultminimize statefor parent nodes.Note: This property is specific to CubeGrids.- Parameters:
- minimized- New minimized value. Default value is false
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getMinimizedDefaultminimize statefor parent nodes.Note: This property is specific to CubeGrids.- Returns:
- Current minimized value. Default value is false
 
- 
setProportionalTitleForFacetChartsonly, this property specifies the value axis label when a FacetChart is inproportional rendering modeand has this facet as itslegend facet. If theproportionalTitleis not specified thenFacetChart.proportionalAxisLabelis used as the default title.- Parameters:
- proportionalTitle- New proportionalTitle value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getProportionalTitleForFacetChartsonly, this property specifies the value axis label when a FacetChart is inproportional rendering modeand has this facet as itslegend facet. If theproportionalTitleis not specified thenFacetChart.proportionalAxisLabelis used as the default title.- Returns:
- Current proportionalTitle value. Default value is null
 
- 
setRollupValuefacetValueId of the rollup facetValue for this facet.Note: This property is specific to CubeGrids. SeeCubeGrid.rollupValue.- Parameters:
- rollupValue- New rollupValue value. Default value is cubeGrid.rollupValue
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getRollupValuefacetValueId of the rollup facetValue for this facet.Note: This property is specific to CubeGrids. SeeCubeGrid.rollupValue.- Returns:
- Current rollupValue value. Default value is cubeGrid.rollupValue
 
- 
setSelectionBoundarySelection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.Note: This property is specific to CubeGrids.- Parameters:
- selectionBoundary- New selectionBoundary value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getSelectionBoundarySelection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.Note: This property is specific to CubeGrids.- Returns:
- Current selectionBoundary value. Default value is null
 
- 
setSeparateFoldersShould folders in the facet tree be sorted separately from leaves or should the facet values retain their data order regardless of whether a value is a leaf or folder in the tree?- Parameters:
- separateFolders- New separateFolders value. Default value is false
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getSeparateFoldersShould folders in the facet tree be sorted separately from leaves or should the facet values retain their data order regardless of whether a value is a leaf or folder in the tree?- Returns:
- Current separateFolders value. Default value is false
- See Also:
 
- 
setShowParentsLastIndicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children).Note: This property is specific to CubeGrids.- Parameters:
- showParentsLast- New showParentsLast value. Default value is false
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getShowParentsLastIndicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children).Note: This property is specific to CubeGrids.- Returns:
- Current showParentsLast value. Default value is false
 
- 
setSortFoldersBeforeLeavesIfseparateFoldersis true, should folders be displayed above or below leaves? When set totruefolders will appear above leaves unless the data order has been reversed by settingshowParentsLasttotrue.- Parameters:
- sortFoldersBeforeLeaves- New sortFoldersBeforeLeaves value. Default value is true
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getSortFoldersBeforeLeavesIfseparateFoldersis true, should folders be displayed above or below leaves? When set totruefolders will appear above leaves unless the data order has been reversed by settingshowParentsLasttotrue.- Returns:
- Current sortFoldersBeforeLeaves value. Default value is true
 
- 
setSummaryTitleTitle for facet summary.Note: This property is specific to CubeGrids.- Parameters:
- summaryTitle- New summaryTitle value. Default value is cubeGrid.summaryTitle
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getSummaryTitleTitle for facet summary.Note: This property is specific to CubeGrids.- Returns:
- Current summaryTitle value. Default value is cubeGrid.summaryTitle
 
- 
setSummaryValueValue for facet summary.Note: This property is specific to CubeGrids.- Parameters:
- summaryValue- New summaryValue value. Default value is cubeGrid.summaryValue
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getSummaryValueValue for facet summary.Note: This property is specific to CubeGrids.- Returns:
- Current summaryValue value. Default value is cubeGrid.summaryValue
 
- 
setSynchColumnLayoutIf true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize.Note: This property is specific to CubeGridsand is only supported when all of a facet's values are used.- Parameters:
- synchColumnLayout- New synchColumnLayout value. Default value is true
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getSynchColumnLayoutIf true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize.Note: This property is specific to CubeGridsand is only supported when all of a facet's values are used.- Returns:
- Current synchColumnLayout value. Default value is true
 
- 
setTitleUser-visible title of this facet. Shown on the facet label in the CubeGrid.- Parameters:
- title- New title value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
 
- 
getTitleUser-visible title of this facet. Shown on the facet label in the CubeGrid.- Returns:
- Current title value. Default value is null
 
- 
setTitleAlignAlignment of facet label title.Note: This property is specific to CubeGrids.- Parameters:
- titleAlign- New titleAlign value. Default value is cubeGrid.facetTitleAlign
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getTitleAlignAlignment of facet label title.Note: This property is specific to CubeGrids.- Returns:
- Current titleAlign value. Default value is cubeGrid.facetTitleAlign
- See Also:
 
- 
setValuesArray of facetValue definitions.- Parameters:
- values- New values value. Default value is null
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getValuesArray of facetValue definitions.- Returns:
- Current values value. Default value is null
- See Also:
 
- 
setWidthInteger number of pixels. For row facets, width of headers.Note: This property is specific to CubeGrids.- Parameters:
- width- New width value. Default value is cubeGrid.defaultFacetWidth
- Returns:
- Facetinstance, for chaining setter calls
- See Also:
 
- 
getWidthpublic int getWidth()Integer number of pixels. For row facets, width of headers.Note: This property is specific to CubeGrids.- Returns:
- Current width value. Default value is cubeGrid.defaultFacetWidth
- See Also:
 
- 
setIdid of this facet. Any string or number.- Parameters:
- id- id Default value is null
 
- 
setIdid of this facet. Any string or number.- Parameters:
- id- id Default value is null
 
- 
getIdid of this facet. Any string or number.- Parameters:
- id- id Default value is null
 
- 
getIdAsStringid of this facet. Any string or number.- Parameters:
- id- id Default value is null
 
- 
getIdAsIntid of this facet. Any string or number.- Parameters:
- id- id Default value is null
 
 
-