|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.crystaldecisions.sdk.occa.report.gridcontent.GridColumn
The GridColumn class allows you to modify the
individual grid columns that appear in the GridViewer.
A GridColumnCollection class also exists that is used as a container for the
GridColumn class.
| Constructor Summary | |
GridColumn()
|
|
GridColumn(java.lang.String fieldName)
|
|
| Method Summary | |
CrColumnVisibilityEnum |
getColumnVisibility()
Returns the visibility of the column. |
java.lang.String |
getFieldName()
Returns the column's field name. |
java.lang.String |
getFormatPattern()
Returns the format pattern of the column values. |
int |
getGroupLevel()
Returns the group level for the main report or the subreport. |
java.lang.String |
getHeading()
Returns the column heading. |
java.lang.String |
getStyleClassName()
Returns the style class name of the column. |
void |
setColumnVisibility(CrColumnVisibilityEnum newColumnVisibility)
Sets the visibility of the column based on the view mode. |
void |
setFieldName(java.lang.String newFieldName)
Sets the field name of the column. |
void |
setFormatPattern(java.lang.String newFormatPattern)
Sets the format pattern of the column values. |
void |
setGroupLevel(int newGroupLevel)
Sets the group level for the main report or subreport. |
void |
setHeading(java.lang.String heading)
Sets the column heading. |
void |
setStyleClassName(java.lang.String newStyleClassName)
Sets the style class name of the column. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridColumn()
public GridColumn(java.lang.String fieldName)
| Method Detail |
public CrColumnVisibilityEnum getColumnVisibility()
Returns the visibility of the column.
CrColumnVisibilityEnum specifying the
visibility of the column (0 = Flat, 1 = Group, 2 = All)setColumnVisibilitypublic java.lang.String getFieldName()
Returns the column's field name. The field name is the field (for example, a database field) that the column represents.
StringsetFieldNamepublic java.lang.String getFormatPattern()
Returns the format pattern of the column values.
StringsetFormatPatternpublic int getGroupLevel()
Returns the group level for the main report or the subreport.
Note: This property is only used when the ColumnVisibility property is set to group. It determines how far a user needs to drill down before the column is visible.
intsetGroupLevelpublic java.lang.String getStyleClassName()
Returns the style class name of the column. The style class name defines the CSS style class to be applied to each item in the column.
StringsetStyleClassNamepublic void setColumnVisibility(CrColumnVisibilityEnum newColumnVisibility)
Sets the visibility of the column based on the view mode. For example, if the view mode is Flat and ColumnVisibility is set to Group, then the column will not be visible.
newColumnVisibility - a constant that specifies
the visibility of the column as a CrColumnVisibilityEnum
(0 = Flat, 1 = Group, 2 = All)getColumnVisibilitypublic void setFieldName(java.lang.String newFieldName)
Sets the field name of the column. The field name is the field (for example, a database field) that the column represents.
newFieldName - a String that
specifies the field name of the columngetFieldNamepublic void setFormatPattern(java.lang.String newFormatPattern)
Sets the format pattern of the column values.
newFormatPattern - a String that
specifies the format pattern of the columngetFormatPatternpublic void setGroupLevel(int newGroupLevel)
Sets the group level for the main report or subreport.
Note: This property is only used when the ColumnVisibility property is set to group. It determines how far a user needs to drill down before the column is visible.
newGroupLevel - an int that
specifies the group level of the columngetGroupLevelpublic void setStyleClassName(java.lang.String newStyleClassName)
Sets the style class name of the column. The style class name defines the CSS style class to be applied to each item in the column.
newStyleClassName - a string that
specifies the style class name of the columngetStyleClassNamepublic java.lang.String getHeading()
Returns the column heading. The heading is the title given to the column.
StringsetHeadingpublic void setHeading(java.lang.String heading)
Sets the column heading. The heading is the title given to the column.
heading - the column heading as a StringgetHeading
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||