Package com.stimulsoft.webviewer
Class StiWebViewerOptions.ToolbarOptions
java.lang.Object
com.stimulsoft.webviewer.StiWebViewerOptions.ToolbarOptions
- Enclosing class:
StiWebViewerOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe alignment of the viewer toolbar.A color of the toolbar background.A color of the toolbar border.the display mode of the toolbar - simple or separated into upper and lower parts.A color of the toolbar texts.A value which indicates which font family will be used for drawing texts in the viewer.The default mode of the report print destination.The mode that shows menu of the viewer.a color of the toolbar background.a color of the toolbar border.The mode of showing a report in the viewer - one page or the whole report.intgetZoom()The report showing zoom.booleana value which allows automatically hide the viewer toolbar in mobile mode.booleanA value which indicates that menu animation is enabled.booleanA visibility of the About button in the toolbar of the viewer.booleanA visibility of the Bookmarks button in the toolbar of the viewer.booleanA value which allows displaying or hiding toolbar buttons captions.booleanA visibility of the current page control in the toolbar of the viewer.booleanA visibility of the Design button in the toolbar of the viewer.booleanA visibility of the Editor button in the toolbar of the viewer.booleana visibility of the Find button in the toolbar of the viewer.booleanA visibility of the First Page button in the toolbar of the viewer.booleanA visibility of the Full Screen button in the toolbar of the viewer.booleanA visibility of the Last Page button in the toolbar of the viewer.booleanA visibility of the Next Page button in the toolbar of the viewer.booleana visibility of the Open button in the toolbar of the viewer.booleanA visibility of the Parameters button in the toolbar of the viewer.booleana visibility of the Pin button in the toolbar of the viewer in mobile mode.booleanA visibility of the Prev Page button in the toolbar of the viewer.booleanA visibility of the Print button in the toolbar of the viewer.booleana visibility of the Resources button in the toolbar of the viewer.booleanA visibility of the Save button in the toolbar of the viewer.booleanA visibility of the Send Email button in the toolbar of the viewer.booleana value which indicates that toolbar will be shown in the viewer.booleanA visibility of the View Mode button in the toolbar of the viewer.booleanA visibility of the Zoom control in the toolbar of the viewer.booleanA value which indicates that toolbar will be shown in the viewer.voidsetAlignment(StiContentAlignment alignment) The alignment of the viewer toolbar.voidsetAutoHide(boolean autoHide) a value which allows automatically hide the viewer toolbar in mobile mode.voidsetBackgroundColor(StiColor backgroundColor) A color of the toolbar background.voidsetBorderColor(StiColor borderColor) A color of the toolbar border.voidsetDisplayMode(StiToolbarDisplayMode displayMode) the display mode of the toolbar - simple or separated into upper and lower parts.voidsetFontColor(StiColor fontColor) A color of the toolbar texts.voidsetFontFamily(String fontFamily) A value which indicates which font family will be used for drawing texts in the viewer.voidsetMenuAnimation(boolean menuAnimation) A value which indicates that menu animation is enabled.voidsetPrintDestination(StiPrintDestination printDestination) The default mode of the report print destination.voidsetShowAboutButton(boolean showAboutButton) A visibility of the About button in the toolbar of the viewer.voidsetShowBookmarksButton(boolean showBookmarksButton) A visibility of the Bookmarks button in the toolbar of the viewer.voidsetShowButtonCaptions(boolean showButtonCaptions) A value which allows displaying or hiding toolbar buttons captions.voidsetShowCurrentPageControl(boolean showCurrentPageControl) A visibility of the current page control in the toolbar of the viewer.voidsetShowDesignButton(boolean showDesignButton) A visibility of the Design button in the toolbar of the viewer.voidsetShowEditorButton(boolean showEditorButton) A visibility of the Editor button in the toolbar of the viewer.voidsetShowFindButton(boolean showFindButton) a visibility of the Find button in the toolbar of the viewer.voidsetShowFirstPageButton(boolean showFirstPageButton) A visibility of the First Page button in the toolbar of the viewer.voidsetShowFullScreenButton(boolean showFullScreenButton) A visibility of the Full Screen button in the toolbar of the viewer.voidsetShowLastPageButton(boolean showLastPageButton) A visibility of the Last Page button in the toolbar of the viewer.voidsetShowMenuMode(StiShowMenuMode showMenuMode) The mode that shows menu of the viewer.voidsetShowNextPageButton(boolean showNextPageButton) A visibility of the Next Page button in the toolbar of the viewer.voidsetShowOpenButton(boolean showOpenButton) a visibility of the Open button in the toolbar of the viewer.voidsetShowParametersButton(boolean showParametersButton) A visibility of the Parameters button in the toolbar of the viewer.voidsetShowPinToolbarButton(boolean showPinToolbarButton) a visibility of the Pin button in the toolbar of the viewer in mobile mode.voidsetShowPreviousPageButton(boolean showPreviousPageButton) A visibility of the Prev Page button in the toolbar of the viewer.voidsetShowPrintButton(boolean showPrintButton) A visibility of the Print button in the toolbar of the viewer.voidsetShowResourcesButton(boolean showResourcesButton) a visibility of the Resources button in the toolbar of the viewer.voidsetShowSaveButton(boolean showSaveButton) A visibility of the Save button in the toolbar of the viewer.voidsetShowSendEmailButton(boolean showSendEmailButton) A visibility of the Send Email button in the toolbar of the viewer.voidsetShowToolbar(boolean showToolbar) a value which indicates that toolbar will be shown in the viewer.voidsetShowViewModeButton(boolean showViewModeButton) A visibility of the View Mode button in the toolbar of the viewer.voidsetShowZoomButton(boolean showZoomButton) A visibility of the Zoom control in the toolbar of the viewer.voidsetToolbarBackgroundColor(StiColor toolbarBackgroundColor) a color of the toolbar background.voidsetToolbarBorderColor(StiColor toolbarBorderColor) a color of the toolbar border.voidsetViewMode(StiWebViewMode viewMode) The mode of showing a report in the viewer - one page or the whole report.voidsetVisible(boolean visible) A value which indicates that toolbar will be shown in the viewer.voidsetZoom(int zoom) The report showing zoom.
-
Constructor Details
-
ToolbarOptions
public ToolbarOptions()
-
-
Method Details
-
isShowResourcesButton
public boolean isShowResourcesButton()a visibility of the Resources button in the toolbar of the viewer.- Returns:
- the showResourcesButton
-
setShowResourcesButton
public void setShowResourcesButton(boolean showResourcesButton) a visibility of the Resources button in the toolbar of the viewer.- Parameters:
showResourcesButton- the showResourcesButton to set
-
isAutoHide
public boolean isAutoHide()a value which allows automatically hide the viewer toolbar in mobile mode.- Returns:
- the autoHide
-
setAutoHide
public void setAutoHide(boolean autoHide) a value which allows automatically hide the viewer toolbar in mobile mode.- Parameters:
autoHide- the autoHide to set
-
isShowPinToolbarButton
public boolean isShowPinToolbarButton()a visibility of the Pin button in the toolbar of the viewer in mobile mode.- Returns:
- the showPinToolbarButton
-
setShowPinToolbarButton
public void setShowPinToolbarButton(boolean showPinToolbarButton) a visibility of the Pin button in the toolbar of the viewer in mobile mode.- Parameters:
showPinToolbarButton- the showPinToolbarButton to set
-
getDisplayMode
the display mode of the toolbar - simple or separated into upper and lower parts.- Returns:
- the displayMode
-
setDisplayMode
the display mode of the toolbar - simple or separated into upper and lower parts.- Parameters:
displayMode- the displayMode to set
-
isShowOpenButton
public boolean isShowOpenButton()a visibility of the Open button in the toolbar of the viewer.- Returns:
- the showOpenButton
-
setShowOpenButton
public void setShowOpenButton(boolean showOpenButton) a visibility of the Open button in the toolbar of the viewer.- Parameters:
showOpenButton- the showOpenButton to set
-
isShowFindButton
public boolean isShowFindButton()a visibility of the Find button in the toolbar of the viewer.- Returns:
- the showFindButton
-
setShowFindButton
public void setShowFindButton(boolean showFindButton) a visibility of the Find button in the toolbar of the viewer.- Parameters:
showFindButton- the showFindButton to set
-
getToolbarBorderColor
a color of the toolbar border. The default value is the theme color.- Returns:
- the toolbarBorderColor
-
setToolbarBorderColor
a color of the toolbar border. The default value is the theme color.- Parameters:
toolbarBorderColor- the toolbarBorderColor to set
-
getToolbarBackgroundColor
a color of the toolbar background. The default value is the theme color.- Returns:
- the toolbarBackgroundColor
-
setToolbarBackgroundColor
a color of the toolbar background. The default value is the theme color.- Parameters:
toolbarBackgroundColor- the toolbarBackgroundColor to set
-
isShowToolbar
public boolean isShowToolbar()a value which indicates that toolbar will be shown in the viewer.- Returns:
- the showToolbar
-
setShowToolbar
public void setShowToolbar(boolean showToolbar) a value which indicates that toolbar will be shown in the viewer.- Parameters:
showToolbar- the showToolbar to set
-
isVisible
public boolean isVisible()A value which indicates that toolbar will be shown in the viewer.- Returns:
- the visible
-
setVisible
public void setVisible(boolean visible) A value which indicates that toolbar will be shown in the viewer.- Parameters:
visible- the visible to set
-
getBackgroundColor
A color of the toolbar background. The default value is the theme color.- Returns:
- the backgroundColor
-
setBackgroundColor
A color of the toolbar background. The default value is the theme color.- Parameters:
backgroundColor- the backgroundColor to set
-
getBorderColor
A color of the toolbar border. The default value is the theme color.- Returns:
- the borderColor
-
setBorderColor
A color of the toolbar border. The default value is the theme color.- Parameters:
borderColor- the borderColor to set
-
getFontColor
A color of the toolbar texts.- Returns:
- the fontColor
-
setFontColor
A color of the toolbar texts.- Parameters:
fontColor- the fontColor to set
-
getFontFamily
A value which indicates which font family will be used for drawing texts in the viewer.- Returns:
- the fontFamily
-
setFontFamily
A value which indicates which font family will be used for drawing texts in the viewer.- Parameters:
fontFamily- the fontFamily to set
-
getAlignment
The alignment of the viewer toolbar.- Returns:
- the alignment
-
setAlignment
The alignment of the viewer toolbar.- Parameters:
alignment- the alignment to set
-
isShowButtonCaptions
public boolean isShowButtonCaptions()A value which allows displaying or hiding toolbar buttons captions.- Returns:
- the showButtonCaptions
-
setShowButtonCaptions
public void setShowButtonCaptions(boolean showButtonCaptions) A value which allows displaying or hiding toolbar buttons captions.- Parameters:
showButtonCaptions- the showButtonCaptions to set
-
isShowPrintButton
public boolean isShowPrintButton()A visibility of the Print button in the toolbar of the viewer.- Returns:
- the showPrintButton
-
setShowPrintButton
public void setShowPrintButton(boolean showPrintButton) A visibility of the Print button in the toolbar of the viewer.- Parameters:
showPrintButton- the showPrintButton to set
-
isShowSaveButton
public boolean isShowSaveButton()A visibility of the Save button in the toolbar of the viewer.- Returns:
- the showSaveButton
-
setShowSaveButton
public void setShowSaveButton(boolean showSaveButton) A visibility of the Save button in the toolbar of the viewer.- Parameters:
showSaveButton- the showSaveButton to set
-
isShowSendEmailButton
public boolean isShowSendEmailButton()A visibility of the Send Email button in the toolbar of the viewer.- Returns:
- the showSendEmailButton
-
setShowSendEmailButton
public void setShowSendEmailButton(boolean showSendEmailButton) A visibility of the Send Email button in the toolbar of the viewer.- Parameters:
showSendEmailButton- the showSendEmailButton to set
-
isShowBookmarksButton
public boolean isShowBookmarksButton()A visibility of the Bookmarks button in the toolbar of the viewer.- Returns:
- the showBookmarksButton
-
setShowBookmarksButton
public void setShowBookmarksButton(boolean showBookmarksButton) A visibility of the Bookmarks button in the toolbar of the viewer.- Parameters:
showBookmarksButton- the showBookmarksButton to set
-
isShowParametersButton
public boolean isShowParametersButton()A visibility of the Parameters button in the toolbar of the viewer.- Returns:
- the showParametersButton
-
setShowParametersButton
public void setShowParametersButton(boolean showParametersButton) A visibility of the Parameters button in the toolbar of the viewer.- Parameters:
showParametersButton- the showParametersButton to set
-
isShowEditorButton
public boolean isShowEditorButton()A visibility of the Editor button in the toolbar of the viewer.- Returns:
- the showEditorButton
-
setShowEditorButton
public void setShowEditorButton(boolean showEditorButton) A visibility of the Editor button in the toolbar of the viewer.- Parameters:
showEditorButton- the showEditorButton to set
-
isShowFullScreenButton
public boolean isShowFullScreenButton()A visibility of the Full Screen button in the toolbar of the viewer.- Returns:
- the showFullScreenButton
-
setShowFullScreenButton
public void setShowFullScreenButton(boolean showFullScreenButton) A visibility of the Full Screen button in the toolbar of the viewer.- Parameters:
showFullScreenButton- the showFullScreenButton to set
-
isShowFirstPageButton
public boolean isShowFirstPageButton()A visibility of the First Page button in the toolbar of the viewer.- Returns:
- the showFirstPageButton
-
setShowFirstPageButton
public void setShowFirstPageButton(boolean showFirstPageButton) A visibility of the First Page button in the toolbar of the viewer.- Parameters:
showFirstPageButton- the showFirstPageButton to set
-
isShowPreviousPageButton
public boolean isShowPreviousPageButton()A visibility of the Prev Page button in the toolbar of the viewer.- Returns:
- the showPreviousPageButton
-
setShowPreviousPageButton
public void setShowPreviousPageButton(boolean showPreviousPageButton) A visibility of the Prev Page button in the toolbar of the viewer.- Parameters:
showPreviousPageButton- the showPreviousPageButton to set
-
isShowCurrentPageControl
public boolean isShowCurrentPageControl()A visibility of the current page control in the toolbar of the viewer.- Returns:
- the showCurrentPageControl
-
setShowCurrentPageControl
public void setShowCurrentPageControl(boolean showCurrentPageControl) A visibility of the current page control in the toolbar of the viewer.- Parameters:
showCurrentPageControl- the showCurrentPageControl to set
-
isShowNextPageButton
public boolean isShowNextPageButton()A visibility of the Next Page button in the toolbar of the viewer.- Returns:
- the showNextPageButton
-
setShowNextPageButton
public void setShowNextPageButton(boolean showNextPageButton) A visibility of the Next Page button in the toolbar of the viewer.- Parameters:
showNextPageButton- the showNextPageButton to set
-
isShowLastPageButton
public boolean isShowLastPageButton()A visibility of the Last Page button in the toolbar of the viewer.- Returns:
- the showLastPageButton
-
setShowLastPageButton
public void setShowLastPageButton(boolean showLastPageButton) A visibility of the Last Page button in the toolbar of the viewer.- Parameters:
showLastPageButton- the showLastPageButton to set
-
isShowZoomButton
public boolean isShowZoomButton()A visibility of the Zoom control in the toolbar of the viewer.- Returns:
- the showZoomButton
-
setShowZoomButton
public void setShowZoomButton(boolean showZoomButton) A visibility of the Zoom control in the toolbar of the viewer.- Parameters:
showZoomButton- the showZoomButton to set
-
isShowViewModeButton
public boolean isShowViewModeButton()A visibility of the View Mode button in the toolbar of the viewer.- Returns:
- the showViewModeButton
-
setShowViewModeButton
public void setShowViewModeButton(boolean showViewModeButton) A visibility of the View Mode button in the toolbar of the viewer.- Parameters:
showViewModeButton- the showViewModeButton to set
-
isShowDesignButton
public boolean isShowDesignButton()A visibility of the Design button in the toolbar of the viewer.- Returns:
- the showDesignButton
-
setShowDesignButton
public void setShowDesignButton(boolean showDesignButton) A visibility of the Design button in the toolbar of the viewer.- Parameters:
showDesignButton- the showDesignButton to set
-
isShowAboutButton
public boolean isShowAboutButton()A visibility of the About button in the toolbar of the viewer.- Returns:
- the showAboutButton
-
setShowAboutButton
public void setShowAboutButton(boolean showAboutButton) A visibility of the About button in the toolbar of the viewer.- Parameters:
showAboutButton- the showAboutButton to set
-
getPrintDestination
The default mode of the report print destination.- Returns:
- the printDestination
-
setPrintDestination
The default mode of the report print destination.- Parameters:
printDestination- the printDestination to set
-
getViewMode
The mode of showing a report in the viewer - one page or the whole report.- Returns:
- the viewMode
-
setViewMode
The mode of showing a report in the viewer - one page or the whole report.- Parameters:
viewMode- the viewMode to set
-
getZoom
public int getZoom()The report showing zoom. The default value is 100. PageWidth = -1;PageHeight = -2;- Returns:
- the zoom
-
setZoom
public void setZoom(int zoom) The report showing zoom. The default value is 100. PageWidth = -1; PageHeight = -2;- Parameters:
zoom- the zoom to set
-
isMenuAnimation
public boolean isMenuAnimation()A value which indicates that menu animation is enabled.- Returns:
- the menuAnimation
-
setMenuAnimation
public void setMenuAnimation(boolean menuAnimation) A value which indicates that menu animation is enabled.- Parameters:
menuAnimation- the menuAnimation to set
-
getShowMenuMode
The mode that shows menu of the viewer.- Returns:
- the showMenuMode
-
setShowMenuMode
The mode that shows menu of the viewer.- Parameters:
showMenuMode- the showMenuMode to set
-