|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.crystaldecisions.report.web.ServerControl
|
+--com.crystaldecisions.report.web.viewer.ReportServerControl
|
+--com.crystaldecisions.report.web.viewer.GridViewer
This class enables you to create a grid viewer and manipulate how
the viewer is displayed. The GridViewer class provides
the functionality to view report data in a grid format that is
independent of the original format of the source report. This class
implements the Java grid viewer.
See the Getting Started > Tutorials section of the Viewer Java SDK Guide for
an example of how to use the GridViewer class.
| Constructor Summary | |
GridViewer()
|
|
| Method Summary | |
boolean |
displayGroupTree()
Returns whether the group tree is visible. |
boolean |
displayNavigationBar()
Returns whether the Navigation bar is visible. |
CrDisplayRowNumberColumnEnum |
displayRowNumberColumn()
Returns the style class of the row number column. |
boolean |
displayToolbar()
Returns whether the Toolbar is visible. |
boolean |
displayToolbarCrystalLogo()
Returns whether the Business Objects Logo is displayed on the Toolbar. |
boolean |
displayToolbarExportList()
Returns whether the export list is displayed on the Toolbar. |
boolean |
displayToolbarFindRowButton()
Returns whether the find row button will be displayed on the Toolbar. |
boolean |
displayToolbarGroupViewList()
Returns whether the view list will be displayed on the Toolbar. |
boolean |
displayToolbarNavigationButtons()
Returns whether or not the navigation buttons will be displayed on the Toolbar. |
boolean |
displayToolbarSwitchViewButton()
Returns whether the Switch View button is displayed on the Toolbar. |
boolean |
displayToolbarToggleTreeButton()
Returns whether the toggle tree button is displayed on the Toolbar. |
boolean |
enableGridToGrow()
Returns whether the grid is allowed to grow. |
java.lang.String |
getCellStyle()
Returns the style class of the cells in the grid. |
GridColumnCollection |
getGridColumnCollection()
Returns the GridColumnCollection associated with the GridViewer. |
CrGridViewModeEnum |
getGridViewMode()
Returns the viewing mode of the Java grid viewer. |
int |
getGroupTreeWidth()
Returns the width of the group tree. |
CrHtmlUnitEnum |
getGroupTreeWidthUnit()
Returns the value of the GroupTreeWidthUnit property. |
java.lang.String |
getHeadingStyle()
Gets the style class of the heading. |
java.lang.String |
getNavigationBarStyle()
Returns the Navigation bar style class. |
int |
getPageSize()
Returns the number of records displayed per page. |
java.lang.String |
getRowNumberColumnStyle()
Returns the style class of the row number column. |
java.lang.String |
getTableStyle()
Returns the style class of the table. |
java.lang.String |
getToolbarStyle()
Returns the Toolbar style class. |
boolean |
matchGridAndToolbarWidths()
Returns whether the grid and Toolbar widths will be matched. |
void |
setCellStyle(java.lang.String newCellStyle)
Sets the style class to an existing class in a cascading style sheet (.css). |
void |
setDisplayGroupTree(boolean newDisplayGroupTree)
Sets whether or not to display the Group Tree. |
void |
setDisplayNavigationBar(boolean displayNavigationBar)
Sets whether or not to display the Navigation Bar. |
void |
setDisplayRowNumberColumn(CrDisplayRowNumberColumnEnum newEnumValue)
Sets whether to display an initial column in the grid that displays the number assigned to each row. |
void |
setDisplayToolbar(boolean displayToolbar)
Sets whether to display the Toolbar. |
void |
setDisplayToolbarCrystalLogo(boolean displayToolbarCrystalLogo)
Sets whether to display the Business Objects Logo on the Toolbar. |
void |
setDisplayToolbarExportList(boolean displayToolbarExportList)
Sets whether to display the export button when rendering the Toolbar. |
void |
setDisplayToolbarFindRowButton(boolean displayToolbarFindRowButton)
Sets whether to include the find row text box when rendering the Toolbar. |
void |
setDisplayToolbarGroupViewList(boolean displayToolbarGroupViewList)
Sets whether the viewer should display the current mode and group information. |
void |
setDisplayToolbarNavigationButtons(boolean displayToolbarNavigationButtons)
Sets whether to display the navigation buttons on the Toolbar. |
void |
setDisplayToolbarSwitchViewButton(boolean displayToolbarSwitchButton)
Sets whether to include or exclude the button to switch between flat and group view modes. |
void |
setDisplayToolbarToggleTreeButton(boolean newDisplayToolbarToggleTreeButton)
Sets whether to display the toggle tree button on the Toolbar. |
void |
setEnableGridToGrow(boolean enableGridToGrow)
Sets whether or not to enable the grid to grow. |
void |
setGridColumnCollection(GridColumnCollection newColumnCollection)
Sets the GridColumnCollection associated with the Java grid viewer. |
void |
setGridViewMode(CrGridViewModeEnum newViewMode)
Sets the viewing mode of the Java grid viewer. |
void |
setGroupTreeWidth(int newGroupTreeWidth)
Sets the width of the Group Tree. |
void |
setGroupTreeWidthUnit(CrHtmlUnitEnum newGroupTreeWidthUnit)
Sets the unit of measurement for the GroupTreeWidth. |
void |
setHeadingStyle(java.lang.String newHeadingStyle)
Sets the style class of the heading row to an existing class in a cascading style sheet (.css). |
void |
setMatchGridAndToolbarWidths(boolean matchGridAndToolbarWidths)
Sets whether or not the grid and Toolbar widths will be matched. |
void |
setNavigationBarStyle(java.lang.String newNavigationBarStyle)
Set the style class of the bottom toolbar to an existing class in a cascading style sheet (.css). |
void |
setPageSize(int newPageSize)
Sets the number of records to display per page. |
void |
setRowNumberColumnStyle(java.lang.String newRowNumberColumnStyle)
Sets the style class of the row number column to an existing class in a cascading style sheet (.css). |
void |
setTableStyle(java.lang.String s)
Sets the style class of the table. |
void |
setToolbarStyle(java.lang.String newToolbarStyle)
Sets the style class of the Toolbar to an existing class in a cascading style sheet (.css). |
| Methods inherited from class com.crystaldecisions.report.web.ServerControl |
getHeight, getHtmlContent, getLeft, getName, getProductLocale, getTop, getURI, getViewState, getWidth, isIgnoreViewStateOnLoad, isOwnForm, isOwnPage, processHttpRequest, setHeight, setIgnoreViewStateOnLoad, setLeft, setName, setOwnForm, setOwnPage, setProductLocale, setTop, setURI, setViewState, setWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridViewer()
| Method Detail |
public int getGroupTreeWidth()
Returns the width of the group tree.
public CrHtmlUnitEnum getGroupTreeWidthUnit()
Returns the value of the GroupTreeWidthUnit property. The
GroupTreeWidthUnit property specifies the unit used to specify
the width of the group tree.
GroupTreeWidthUnit as a CrHtmlUnitEnumpublic int getPageSize()
Returns the number of records displayed per page.
public boolean displayToolbarFindRowButton()
Returns whether the find row button will be displayed on the Toolbar.
true if the find row button is displayed;
false if the find row button is hidden.public boolean displayToolbarCrystalLogo()
Returns whether the Business Objects Logo is displayed on the Toolbar.
true if the Business Objects Logo is displayed;
false if the Business Objects Logo is hidden.public boolean displayToolbarSwitchViewButton()
Returns whether the Switch View button is displayed on the Toolbar.
true if the Switch View button is displayed;
false if the Switch View button is hidden.public boolean enableGridToGrow()
Returns whether the grid is allowed to grow.
Note: If set to false, the grid is restricted to the size of the height and width properties. If the height and width properties are not set, then enableGridToGrow is essentially true. When enableGridToGrow is true, the height and width properties are ignored and the grid is allowed to grow as large as is necessary to show all of the content.
true if the grid is allowed to grow;
false if the grid is not allowed to growpublic boolean displayNavigationBar()
Returns whether the Navigation bar is visible.
This property is equivalent to the setHasPageBottomToolbar method of the CrystalReportViewer and the CrystalReportInteractiveViewer objects.
true if the Navigation bar is visible;
false if the Navigation bar is hiddenpublic boolean displayGroupTree()
Returns whether the group tree is visible.
If the DisplayGroupTree property is false, and setDisplayToolbarToggleTreeButton is true,
the user can view the group tree by using the toggle tree button. To remove the ability to view
the group tree, set both the DisplayGroupTree and setDisplayToolbarToggleTreeButton methods to false.
If the DisplayGroupTree property is true and the report does not contain any groups,
an empty group tree is displayed.
true if the Group Tree is visible;
false if the Group Tree is hiddenpublic boolean displayToolbar()
Returns whether the Toolbar is visible.
true if the Toolbar is visible;
false if the Toolbar is hiddenpublic GridColumnCollection getGridColumnCollection()
Returns the GridColumnCollection associated with the GridViewer.
GridColumnCollection object as a GridColumnCollection objectpublic CrGridViewModeEnum getGridViewMode()
Returns the viewing mode of the Java grid viewer.
GridViewMode of the Java grid viewer as a CrGridViewModeEnumpublic void setEnableGridToGrow(boolean enableGridToGrow)
Sets whether or not to enable the grid to grow.
enableGridToGrow - true to enable
the grid to growpublic void setDisplayNavigationBar(boolean displayNavigationBar)
Sets whether or not to display the Navigation Bar.
displayNavigationBar - true to display
the Navigation Barpublic void setDisplayGroupTree(boolean newDisplayGroupTree)
Sets whether or not to display the Group Tree.
newDisplayGroupTree - true to display
the Group Treepublic void setDisplayToolbar(boolean displayToolbar)
Sets whether to display the Toolbar.
displayToolbar - true to display
the Toolbarpublic void setGridViewMode(CrGridViewModeEnum newViewMode)
Sets the viewing mode of the Java grid viewer.
newViewMode - a CrGridViewModeEnum that
specifies the viewing mode of the Java grid viewer (0 = flat
1 = Group)public void setGroupTreeWidth(int newGroupTreeWidth)
Sets the width of the Group Tree.
newGroupTreeWidth - an int that
specifies the width of the Group Treepublic void setGroupTreeWidthUnit(CrHtmlUnitEnum newGroupTreeWidthUnit)
Sets the unit of measurement for the GroupTreeWidth.
newGroupTreeWidthUnit - a CrHtmlUnitEnum that
specifies the unit of measurement for the GroupTreeWidthpublic void setGridColumnCollection(GridColumnCollection newColumnCollection)
Sets the GridColumnCollection associated with the Java grid viewer.
If this property is not set, the DHTML grid viewer defaults to showing all of the fields in the report. Use this property if you do not want to display all of the fields, if you want to change the order of the fields, or if you want to specify the formatting ( style sheet, number or date formatting, and heading names) of the fields.
newColumnCollection - the GridColumnCollection to use with
this grid viewer objectpublic void setDisplayToolbarFindRowButton(boolean displayToolbarFindRowButton)
Sets whether to include the find row text box when rendering the Toolbar.
displayToolbarFindRowButton - true to display
the find row buttonpublic void setDisplayToolbarCrystalLogo(boolean displayToolbarCrystalLogo)
Sets whether to display the Business Objects Logo on the Toolbar.
displayToolbarCrystalLogo - true to display the
Business Objects logo on the Toolbarpublic void setDisplayToolbarSwitchViewButton(boolean displayToolbarSwitchButton)
Sets whether to include or exclude the button to switch between flat and group view modes.
displayToolbarSwitchButton - true to display
the switch view button on the Toolbarpublic void setPageSize(int newPageSize)
Sets the number of records to display per page.
newPageSize - the number of records to display
per page as an intpublic boolean matchGridAndToolbarWidths()
Returns whether the grid and Toolbar widths will be matched.
true if the grid and Toolbar widths will be matched;
false if the grid and Toolbar widths will not be
matchedpublic void setMatchGridAndToolbarWidths(boolean matchGridAndToolbarWidths)
Sets whether or not the grid and Toolbar widths will be matched.
matchGridAndToolbarWidths - true to have the grid
and Toolbar widths matchedpublic CrDisplayRowNumberColumnEnum displayRowNumberColumn()
Returns the style class of the row number column.
CrDisplayRowNumberColumnEnum
that specifies the style class of the row number columnpublic void setDisplayRowNumberColumn(CrDisplayRowNumberColumnEnum newEnumValue)
Sets whether to display an initial column in the grid that displays the number assigned to each row.
The valid values for this property are:
newEnumValue - a CrDisplayRowNumberColumnEnum that
specifies the style class of the row number columnpublic void setToolbarStyle(java.lang.String newToolbarStyle)
Sets the style class of the Toolbar to an existing class in a cascading style sheet (.css).
newToolbarStyle - a String that specifies
the Toolbar style classgetToolbarStylepublic java.lang.String getToolbarStyle()
Returns the Toolbar style class.
StringsetToolbarStylepublic void setNavigationBarStyle(java.lang.String newNavigationBarStyle)
Set the style class of the bottom toolbar to an existing class in a cascading style sheet (.css).
newNavigationBarStyle - a String that specifies
the Navigation bar style classgetNavigationBarStylepublic java.lang.String getNavigationBarStyle()
Returns the Navigation bar style class.
StringsetNavigationBarStyle(String newNavigationBarStyle)public void setHeadingStyle(java.lang.String newHeadingStyle)
Sets the style class of the heading row to an existing class in a cascading style sheet (.css).
newHeadingStyle - a String that specifies
the style class of the headinggetHeadingStylepublic java.lang.String getHeadingStyle()
Gets the style class of the heading.
StringsetHeadingStylepublic void setCellStyle(java.lang.String newCellStyle)
Sets the style class to an existing class in a cascading style sheet (.css).
newCellStyle - a String that specifies
the style class of the cells in the gridpublic java.lang.String getCellStyle()
Returns the style class of the cells in the grid.
String that specifies the
style class of the cells in the gridsetCellStylepublic void setTableStyle(java.lang.String s)
Sets the style class of the table.
s - a String that specifies
the style class of the tablepublic java.lang.String getTableStyle()
Returns the style class of the table.
String that specifies
the style class of the tablepublic void setRowNumberColumnStyle(java.lang.String newRowNumberColumnStyle)
Sets the style class of the row number column to an existing class in a cascading style sheet (.css).
newRowNumberColumnStyle - a String that
specifies the style class of the row number columngetRowNumberColumnStylepublic java.lang.String getRowNumberColumnStyle()
Returns the style class of the row number column.
String that specifies the style
class of the row number columnsetRowNumberColumnStylepublic void setDisplayToolbarExportList(boolean displayToolbarExportList)
Sets whether to display the export button when rendering the Toolbar.
displayToolbarExportList - true to display
the export button on the Toolbarpublic boolean displayToolbarExportList()
Returns whether the export list is displayed on the Toolbar.
true if the export list is displayed;
false if the export list is hiddenpublic void setDisplayToolbarGroupViewList(boolean displayToolbarGroupViewList)
Sets whether the viewer should display the current mode and group information. The default value is false.
displayToolbarGroupViewList - true to display the current mode and group information.public boolean displayToolbarGroupViewList()
Returns whether the view list will be displayed on the Toolbar.
true if the view list will be displayed;
false if the view list will be hiddenpublic boolean displayToolbarNavigationButtons()
Returns whether or not the navigation buttons will be displayed on the Toolbar.
true if the navigation buttons will
be displayed
false if the navigation buttons will
be hiddenpublic boolean displayToolbarToggleTreeButton()
Returns whether the toggle tree button is displayed on the Toolbar.
true if the toggle tree button is
displayed in the Toolbar
false if the toggle tree button is
hiddenpublic void setDisplayToolbarNavigationButtons(boolean displayToolbarNavigationButtons)
Sets whether to display the navigation buttons on the Toolbar.
The navigation buttons include the first page, previous page, next page, and last page buttons. They also include the find row text box and the row number label.
displayToolbarNavigationButtons - true to
display the navigation buttons on the Toolbarpublic void setDisplayToolbarToggleTreeButton(boolean newDisplayToolbarToggleTreeButton)
Sets whether to display the toggle tree button on the Toolbar.
newDisplayToolbarToggleTreeButton - true to
display the toggle tree button on the Toolbar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||