|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.cube.Facet
public class Facet
Facet definition object made use of by the CubeGrid class.
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
Facet()
|
|
Facet(JavaScriptObject jsObj)
|
|
Facet(String id)
|
|
Facet(String id,
String title)
|
|
| Method Summary | |
|---|---|
Alignment |
getAlign()
Default alignment for facet label title, and cells for this facet. |
String |
getBorderAfter()
CSS line style to apply as a border after this facet, eg "1px dashed blue" |
String |
getBorderBefore()
CSS line style to apply as a border before this facet, eg "1px dashed blue" |
Boolean |
getCanCollapse()
For tree facets, whether expand/collapse controls should be shown. |
Boolean |
getCanMinimize()
If facet minimizing is enabled, whether this facet should show controls to minimize the next facet. |
Alignment |
getCellAlign()
Default alignment of cells (in the body) for this facet |
Boolean |
getCollapsed()
For tree facets, default collapse state for parent nodes |
Object |
getId()
id of this facet. |
Integer |
getIdAsInt()
id of this facet. |
String |
getIdAsString()
id of this facet. |
Boolean |
getInlinedValues()
When applied to a Chart, does the chart's data contain multiple values per record for this facet. |
Boolean |
getIsTree()
Marks this facet as a hierarchical facet. |
static Facet |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getRollupValue()
facetValueId of the rollup facetValue for this facet |
SelectionBoundary |
getSelectionBoundary()
Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection |
Boolean |
getShowParentsLast()
Indicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children) |
String |
getSummaryTitle()
Title for facet summary. |
String |
getSummaryValue()
Value for facet summary. |
Boolean |
getSynchColumnLayout()
If true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize. |
String |
getTitle()
User-visible title of this facet. |
Alignment |
getTitleAlign()
Alignment of facet label title |
FacetValue[] |
getValues()
Array of facetValue definitions. |
int |
getWidth()
Integer number of pixels. |
void |
setAlign(Alignment align)
Default alignment for facet label title, and cells for this facet. |
void |
setBorderAfter(String borderAfter)
CSS line style to apply as a border after this facet, eg "1px dashed blue" |
void |
setBorderBefore(String borderBefore)
CSS line style to apply as a border before this facet, eg "1px dashed blue" |
void |
setCanCollapse(Boolean canCollapse)
For tree facets, whether expand/collapse controls should be shown. |
void |
setCanMinimize(Boolean canMinimize)
If facet minimizing is enabled, whether this facet should show controls to minimize the next facet. |
void |
setCellAlign(Alignment cellAlign)
Default alignment of cells (in the body) for this facet |
void |
setCollapsed(Boolean collapsed)
For tree facets, default collapse state for parent nodes |
void |
setId(Integer id)
id of this facet. |
void |
setId(String id)
id of this facet. |
void |
setInlinedValues(Boolean inlinedValues)
When applied to a Chart, does the chart's data contain multiple values per record for this facet. |
void |
setIsTree(Boolean isTree)
Marks this facet as a hierarchical facet. |
void |
setRollupValue(String rollupValue)
facetValueId of the rollup facetValue for this facet |
void |
setSelectionBoundary(SelectionBoundary selectionBoundary)
Selection boundary determining what facets / facetValues can be selected together by drag selection / shift+click selection |
void |
setShowParentsLast(Boolean showParentsLast)
Indicates internal hierarchy should be displayed in reverse of normal tree order (so that parents follow children) |
void |
setSummaryTitle(String summaryTitle)
Title for facet summary. |
void |
setSummaryValue(String summaryValue)
Value for facet summary. |
void |
setSynchColumnLayout(Boolean synchColumnLayout)
If true, treat all values in this facet as a facetValueGroup - causes synched header reorder and resize. |
void |
setTitle(String title)
User-visible title of this facet. |
void |
setTitleAlign(Alignment titleAlign)
Alignment of facet label title |
void |
setValues(FacetValue... values)
Array of facetValue definitions. |
void |
setWidth(int width)
Integer number of pixels. |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Facet()
public Facet(JavaScriptObject jsObj)
public Facet(String id)
public Facet(String id,
String title)
| Method Detail |
|---|
public static Facet getOrCreateRef(JavaScriptObject jsObj)
public void setAlign(Alignment align)
align - align Default value is nullsetTitleAlign(com.smartgwt.client.types.Alignment),
setCellAlign(com.smartgwt.client.types.Alignment)public Alignment getAlign()
getTitleAlign(),
getCellAlign()public void setBorderAfter(String borderAfter)
borderAfter - borderAfter Default value is nullpublic String getBorderAfter()
public void setBorderBefore(String borderBefore)
borderBefore - borderBefore Default value is nullpublic String getBorderBefore()
public void setCanCollapse(Boolean canCollapse)
canCollapse - canCollapse Default value is facet.isTreepublic Boolean getCanCollapse()
public void setCanMinimize(Boolean canMinimize)
See canMinimizeFacets.
canMinimize - canMinimize Default value is cubeGrid.canMinimizeFacetspublic Boolean getCanMinimize()
See canMinimizeFacets.
public void setCellAlign(Alignment cellAlign)
cellAlign - cellAlign Default value is cubeGrid.cellAlignCubeGrid.setCellAlign(com.smartgwt.client.types.Alignment)public Alignment getCellAlign()
CubeGrid.getCellAlign()public void setCollapsed(Boolean collapsed)
collapsed - collapsed Default value is falsepublic Boolean getCollapsed()
public void setInlinedValues(Boolean inlinedValues)
inlinedValues behavior.
inlinedValues - inlinedValues Default value is nullpublic Boolean getInlinedValues()
inlinedValues behavior.
public void setIsTree(Boolean isTree)
If set, facet.value will be linked as for a modelType:"parent" Tree,
using facetValue.id and facetValue.parentId. Expand/collapse controls will be shown
allowing navigation of the facet's values.
The CubeGrid's load on demand system 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.collapsed and collapsed.
isTree - isTree Default value is falsepublic Boolean getIsTree()
If set, facet.value will be linked as for a modelType:"parent" Tree,
using facetValue.id and facetValue.parentId. Expand/collapse controls will be shown
allowing navigation of the facet's values.
The CubeGrid's load on demand system 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.collapsed and collapsed.
public void setRollupValue(String rollupValue)
rollupValue - rollupValue Default value is cubeGrid.rollupValuepublic String getRollupValue()
public void setSelectionBoundary(SelectionBoundary selectionBoundary)
selectionBoundary - selectionBoundary Default value is nullpublic SelectionBoundary getSelectionBoundary()
public void setShowParentsLast(Boolean showParentsLast)
showParentsLast - showParentsLast Default value is falsepublic Boolean getShowParentsLast()
public void setSummaryTitle(String summaryTitle)
summaryTitle - summaryTitle Default value is cubeGrid.summaryTitlepublic String getSummaryTitle()
public void setSummaryValue(String summaryValue)
summaryValue - summaryValue Default value is cubeGrid.summaryValuepublic String getSummaryValue()
public void setSynchColumnLayout(Boolean synchColumnLayout)
synchColumnLayout - synchColumnLayout Default value is truepublic Boolean getSynchColumnLayout()
public void setTitle(String title)
title - title Default value is nullpublic String getTitle()
public void setTitleAlign(Alignment titleAlign)
titleAlign - titleAlign Default value is cubeGrid.facetTitleAlignCubeGrid.setFacetTitleAlign(com.smartgwt.client.types.Alignment)public Alignment getTitleAlign()
CubeGrid.getFacetTitleAlign()public void setValues(FacetValue... values)
values - values Default value is nullFacetValuepublic FacetValue[] getValues()
FacetValuepublic void setWidth(int width)
width - width Default value is cubeGrid.defaultFacetWidthCubeGrid.setDefaultFacetWidth(int)public int getWidth()
CubeGrid.getDefaultFacetWidth()public void setId(Integer id)
id - id Default value is nullpublic void setId(String id)
id - id Default value is nullpublic Object getId()
id - id Default value is nullpublic String getIdAsString()
id - id Default value is nullpublic Integer getIdAsInt()
id - id Default value is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||