com.smartgwt.client.widgets.cube

## Class FacetValue

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.core.RefDataClass
      - - com.smartgwt.client.widgets.cube.FacetValue

-     public class FacetValue
      extends RefDataClass

  Facet value definition object made use of by the `CubeGrid` and `FacetChart` classes (contained by facets).

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.RefDataClass

      `id`

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FacetValue()`
    `FacetValue(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `FacetValue(java.lang.String id)`
    `FacetValue(java.lang.String id, java.lang.String title)`
    `FacetValue(java.lang.String id, java.lang.String title, java.lang.String parentId)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Alignment` | `getAlign()` Default alignment for facet label title and cells for this facetValue.
    `java.lang.String` | `getBorderAfter()` CSS line style to apply as a border after this facetValue.
    `java.lang.String` | `getBorderBefore()` CSS line style to apply as a border before this facetValue.
    `java.lang.Boolean` | `getCanCollapse()` For individual parent facetValues within a hierarchical facet, this flag controls whether an expand/collapse control will be shown.
    `java.lang.Boolean` | `getCanEdit()` Whether cells for this facetValue can be edited.
    `Alignment` | `getCellAlign()` Default alignment of cells (in the body) for this facetValue.
    `java.lang.Boolean` | `getCollapsed()` For tree facets, initial collapse state for this node.
    `java.lang.Object` | `getId()` id of this facetValue.
    `java.lang.Integer` | `getIdAsInt()` id of this facetValue.
    `java.lang.String` | `getIdAsString()` id of this facetValue.
    `java.lang.Boolean` | `getIsMinimizeValue()` Used to determine which facetValue is to be shown when the facet is minimized.
    `static FacetValue` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `java.lang.String` | `getParentId()` For tree facets (`facet.isTree`), id of this facetValue's parent facetValue.
    `SelectionBoundary` | `getSelectionBoundary()` Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.
    `java.lang.String` | `getTitle()` User-visible title of this facetValue.
    `java.lang.String` | `getTitleHilite()` Hilite style to apply to the title for this facetValue.
    `int` | `getWidth()` Width of the cube grid facetValue in pixels.
    `void` | `setAlign(Alignment align)` Default alignment for facet label title and cells for this facetValue.
    `void` | `setBorderAfter(java.lang.String borderAfter)` CSS line style to apply as a border after this facetValue.
    `void` | `setBorderBefore(java.lang.String borderBefore)` CSS line style to apply as a border before this facetValue.
    `void` | `setCanCollapse(java.lang.Boolean canCollapse)` For individual parent facetValues within a hierarchical facet, this flag controls whether an expand/collapse control will be shown.
    `void` | `setCanEdit(java.lang.Boolean canEdit)` Whether cells for this facetValue can be edited.
    `void` | `setCellAlign(Alignment cellAlign)` Default alignment of cells (in the body) for this facetValue.
    `void` | `setCollapsed(java.lang.Boolean collapsed)` For tree facets, initial collapse state for this node.
    `void` | `setId(java.lang.Integer id)` id of this facetValue.
    `void` | `setId(java.lang.String id)` id of this facetValue.
    `void` | `setIsMinimizeValue(java.lang.Boolean isMinimizeValue)` Used to determine which facetValue is to be shown when the facet is minimized.
    `void` | `setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `void` | `setParentId(java.lang.String parentId)` For tree facets (`facet.isTree`), id of this facetValue's parent facetValue.
    `void` | `setSelectionBoundary(SelectionBoundary selectionBoundary)` Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.
    `void` | `setTitle(java.lang.String title)` User-visible title of this facetValue.
    `void` | `setTitleHilite(java.lang.String titleHilite)` Hilite style to apply to the title for this facetValue.
    `void` | `setWidth(int width)` Width of the cube grid facetValue in pixels.

    - ### Methods inherited from class com.smartgwt.client.core.RefDataClass

      `getRef, getRef, internalSetID`

    - ### Methods inherited from class com.smartgwt.client.core.DataClass

      `doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, hashCode, isCreated, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FacetValue

          public FacetValue()

    - #### FacetValue

          public FacetValue(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### FacetValue

          public FacetValue(java.lang.String id)

    - #### FacetValue

          public FacetValue(java.lang.String id,
                    java.lang.String title)

    - #### FacetValue

          public FacetValue(java.lang.String id,
                    java.lang.String title,
                    java.lang.String parentId)

  - ### Method Detail

    - #### getOrCreateRef

          public static FacetValue getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setJavaScriptObject

          public void setJavaScriptObject(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setAlign

          public void setAlign(Alignment align)

      Default alignment for facet label title and cells for this facetValue. Can be overridden by setting titleAlign or cellAlign on the facetValue.

      Note: This property is specific to `CubeGrids` (see, for example, `facetValueAlign`).

      Parameters:
        `align` - align Default value is null

    - #### getAlign

          public Alignment getAlign()

      Default alignment for facet label title and cells for this facetValue. Can be overridden by setting titleAlign or cellAlign on the facetValue.

      Note: This property is specific to `CubeGrids` (see, for example, `facetValueAlign`).

      Returns:
        Alignment

    - #### setBorderAfter

          public void setBorderAfter(java.lang.String borderAfter)

      CSS line style to apply as a border after this facetValue.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `borderAfter` - . See `String`. Default value is null

    - #### getBorderAfter

          public java.lang.String getBorderAfter()

      CSS line style to apply as a border after this facetValue.

      Note: This property is specific to `CubeGrids`.

      Returns:
        . See `String`

    - #### setBorderBefore

          public void setBorderBefore(java.lang.String borderBefore)

      CSS line style to apply as a border before this facetValue.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `borderBefore` - . See `String`. Default value is null

    - #### getBorderBefore

          public java.lang.String getBorderBefore()

      CSS line style to apply as a border before this facetValue.

      Note: This property is specific to `CubeGrids`.

      Returns:
        . See `String`

    - #### setCanCollapse

          public void setCanCollapse(java.lang.Boolean canCollapse)

      For individual parent facetValues within a hierarchical facet, this flag controls whether an expand/collapse control will be shown.

      Note: This property is specific to `CubeGrids` (see, for example, `canCollapseFacets`).

      Parameters:
        `canCollapse` - canCollapse Default value is true

    - #### getCanCollapse

          public java.lang.Boolean getCanCollapse()

      For individual parent facetValues within a hierarchical facet, this flag controls whether an expand/collapse control will be shown.

      Note: This property is specific to `CubeGrids` (see, for example, `canCollapseFacets`).

      Returns:
        Boolean

    - #### setCanEdit

          public void setCanEdit(java.lang.Boolean canEdit)

      Whether cells for this facetValue can be edited. Defaults to `canEdit`.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `canEdit` - canEdit Default value is cubeGrid.canEdit

    - #### getCanEdit

          public java.lang.Boolean getCanEdit()

      Whether cells for this facetValue can be edited. Defaults to `canEdit`.

      Note: This property is specific to `CubeGrids`.

      Returns:
        Boolean

    - #### setCellAlign

          public void setCellAlign(Alignment cellAlign)

      Default alignment of cells (in the body) for this facetValue.

      Note: This property is specific to `CubeGrids` (see, for example, `cellAlign`).

      Parameters:
        `cellAlign` - cellAlign Default value is facet.cellAlign

    - #### getCellAlign

          public Alignment getCellAlign()

      Default alignment of cells (in the body) for this facetValue.

      Note: This property is specific to `CubeGrids` (see, for example, `cellAlign`).

      Returns:
        Alignment

    - #### setCollapsed

          public void setCollapsed(java.lang.Boolean collapsed)

      For tree facets, initial collapse state for this node. Defaults to `collapsed`.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `collapsed` - collapsed Default value is facet.collapsed

    - #### getCollapsed

          public java.lang.Boolean getCollapsed()

      For tree facets, initial collapse state for this node. Defaults to `collapsed`.

      Note: This property is specific to `CubeGrids`.

      Returns:
        Boolean

    - #### setIsMinimizeValue

          public void setIsMinimizeValue(java.lang.Boolean isMinimizeValue)

      Used to determine which facetValue is to be shown when the facet is minimized.

      Note: This property is specific to `CubeGrids`. See `canMinimizeFacets`.

      Parameters:
        `isMinimizeValue` - isMinimizeValue Default value is false

    - #### getIsMinimizeValue

          public java.lang.Boolean getIsMinimizeValue()

      Used to determine which facetValue is to be shown when the facet is minimized.

      Note: This property is specific to `CubeGrids`. See `canMinimizeFacets`.

      Returns:
        Boolean

    - #### setParentId

          public void setParentId(java.lang.String parentId)

      For tree facets (`facet.isTree`), id of this facetValue's parent facetValue.

      Note: This property is specific to `CubeGrids`.

      Note : This is an advanced setting

      Parameters:
        `parentId` - . See `String`. Default value is null

    - #### getParentId

          public java.lang.String getParentId()

      For tree facets (`facet.isTree`), id of this facetValue's parent facetValue.

      Note: This property is specific to `CubeGrids`.

      Returns:
        . See `String`

    - #### setSelectionBoundary

          public void setSelectionBoundary(SelectionBoundary selectionBoundary)

      Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `selectionBoundary` - selectionBoundary Default value is null

    - #### getSelectionBoundary

          public SelectionBoundary getSelectionBoundary()

      Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection.

      Note: This property is specific to `CubeGrids`.

      Returns:
        SelectionBoundary

    - #### setTitle

          public void setTitle(java.lang.String title)

      User-visible title of this facetValue. Shown on the field header.
      Parameters:
        `title` - . See `String`. Default value is null

    - #### getTitle

          public java.lang.String getTitle()

      User-visible title of this facetValue. Shown on the field header.
      Returns:
        . See `String`

    - #### setTitleHilite

          public void setTitleHilite(java.lang.String titleHilite)

      Hilite style to apply to the title for this facetValue.

      Note: This property is specific to `CubeGrids`. See `hilites`.

      Parameters:
        `titleHilite` - . See `String`. Default value is null

    - #### getTitleHilite

          public java.lang.String getTitleHilite()

      Hilite style to apply to the title for this facetValue.

      Note: This property is specific to `CubeGrids`. See `hilites`.

      Returns:
        . See `String`

    - #### setWidth

          public void setWidth(int width)

      Width of the cube grid facetValue in pixels.

      Note: This property is specific to `CubeGrids`.

      Parameters:
        `width` - width Default value is facet.width

    - #### getWidth

          public int getWidth()

      Width of the cube grid facetValue in pixels.

      Note: This property is specific to `CubeGrids`.

      Returns:
        int

    - #### setId

          public void setId(java.lang.Integer id)

      id of this facetValue. Any string or number.
      Parameters:
        `id` - id Default value is null

    - #### setId

          public void setId(java.lang.String id)

      id of this facetValue. Any string or number.
      Parameters:
        `id` - id Default value is null

    - #### getId

          public java.lang.Object getId()

      id of this facetValue. Any string or number.
      Parameters:
        `id` - id Default value is null

    - #### getIdAsString

          public java.lang.String getIdAsString()

      id of this facetValue. Any string or number.
      Parameters:
        `id` - id Default value is null

    - #### getIdAsInt

          public java.lang.Integer getIdAsInt()

      id of this facetValue. Any string or number.
      Parameters:
        `id` - id Default value is null