public class BBJasperViewerWindow
Displays a JasperReport in a window where the user can view it, save it to disk in various formats, and print it
Modifier and Type | Field and Description |
---|---|
BBJasperViewerControl | ParentViewerControl! The parent BBJasperViewerControl |
BBjNumber | ReleaseOnClose When set to TRUE (1), the interpreter running the viewer window will release when closed by the user |
static BBjString | VIEWER_WINDOW_NAME$="BBJVWindow" Constant which represents the viewer window name |
static BBjNumber | WINDOW_ERROR=401 Constant which represents that an error occured in the window |
Constructor and Description |
---|
BBJasperViewerWindow(BBJasperReport p_report!) Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object |
BBJasperViewerWindow(BBjVector p_reports!) Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects |
BBJasperViewerWindow(net.sf.jasperreports.engine.JasperPrint p_jasperPrint!) Constructor Constructs a BBJasperViewerWindow given a JasperPrint object |
BBJasperViewerWindow(BBJasperReport p_report!, BBjString p_title!) Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object and a window title |
BBJasperViewerWindow(BBjVector p_reports!, BBjString p_title!) Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects and a window title |
BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjString p_title!) Constructor Constructs a BBJasperViewerWindow given a JasperPrint object and a window title |
BBJasperViewerWindow(BBJasperReport p_report!, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window title, and window flags |
BBJasperViewerWindow(BBjVector p_reports!, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window title, and window flags |
BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window title, and window flags |
BBJasperViewerWindow(BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window x, window y, window width, window height, window title, and window flags |
BBJasperViewerWindow(BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window x, window y, window width, window height, window title, and window flags |
BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$) Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window X, window Y, window width, window height, window title, and window flags |
BBJasperViewerWindow(BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window x, window y, window width, window height, window title, window flags, and fit type |
BBJasperViewerWindow(BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window x, window y, window width, window height, window title, window flags, and fit type |
BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window X, window Y, window width, window height, window title, window flags, and fit type |
BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a parent BBJasperViewercontrol object, BBJasperReport object, window x, window y, window width, window height, window title, and window flags |
BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a parent BBJasperViewercontrol object, BBJasperReport object, window x, window y, window width, window height, window title, and window flags |
BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType) Constructor Constructs a BBJasperViewerWindow given a parent JasperViewerControl object, JasperPrint object, window X, window Y, window width, window height, window title, window flags, and fit type |
Modifier and Type | Method and Description |
---|---|
void | center() center Centers the viewer window on either the MDI window or client desktop |
void | destroy() destroy Removes self from any parent viewer control, then destroys the viewer control and the viewer window |
BBJasperViewerControl | getViewerControl() getViewerControl Returns the viewer control |
BBjTopLevelWindow | getViewerWindow() getViewerWindow Returns the viewer window |
BBjString | getWindowTitle() getWindowTitle Returns the title of the viewer window |
void | OnClose(BBjSysGuiEvent p_event!) OnClose Called when the window is closed by the user |
void | OnScreenResize(BBjScreenResizeEvent p_event!) OnWindowResize Called when the screen is resized by the user |
void | OnScreenResizeTimer(BBjTimerEvent p_event!) OnScreenResizeTimer Called when the screen resize timer is triggered |
void | OnWindowResize(BBjResizeEvent p_event!) OnWindowResize Called when the window is resized by the user |
void | OnWindowResizeTimer(BBjTimerEvent p_event!) OnWindowResizeTimer Called when the window resize timer is triggered |
static BBjNumber | setDefaults() setDefaults Sets the default X, Y, width, height for the window |
void | setSize(BBjNumber p_width, BBjNumber p_height) setSize Sets the size of the viewer window and control |
void | setWindowTitle(BBjString p_windowTitle!) setWindowTitle Sets the title of the viewer window |
void | show(BBjNumber p_processEvents) show Shows the viewer window for non empty reports, and optionally process events for the window |
void | show(BBjNumber p_processEvents, BBjNumber p_showEmpty) show Shows the viewer window for empty or non empty reports, and optionally process events for the window |
public BBJasperViewerControl ParentViewerControl!
The parent BBJasperViewerControl
public BBjNumber ReleaseOnClose
When set to TRUE (1), the interpreter running the viewer window will release when closed by the user
public static BBjString VIEWER_WINDOW_NAME$="BBJVWindow"
Constant which represents the viewer window name
public static BBjNumber WINDOW_ERROR=401
Constant which represents that an error occured in the window
public BBJasperViewerWindow(BBJasperReport p_report!)
Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object
p_report!
A BBJasperReport objectpublic BBJasperViewerWindow(BBjVector p_reports!)
Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects
p_reports!
BBjVector of BBJasperReport objects 16.0
public BBJasperViewerWindow(net.sf.jasperreports.engine.JasperPrint p_jasperPrint!)
Constructor Constructs a BBJasperViewerWindow given a JasperPrint object
p_jasperPrint!
A JasperPrint object 12.0
public BBJasperViewerWindow(BBJasperReport p_report!, BBjString p_title!)
Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object and a window title
p_report!
A BBJasperReport objectp_title!
Title for the windowpublic BBJasperViewerWindow(BBjVector p_reports!, BBjString p_title!)
Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects and a window title
p_reports!
BBjVector of BBJasperReport objectsp_title!
Title for the window 16.0
public BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjString p_title!)
Constructor Constructs a BBJasperViewerWindow given a JasperPrint object and a window title
p_jasperPrint!
A JasperPrint objectp_title!
Title for the window 12.0
public BBJasperViewerWindow(BBJasperReport p_report!, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window title, and window flags
p_report!
A BBJasperReport objectp_title!
Title for the windowp_flags$
Flags for the windowpublic BBJasperViewerWindow(BBjVector p_reports!, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window title, and window flags
p_reports!
BBjVector of BBJasperReport objectsp_title!
Title for the windowp_flags$
Flags for the window 16.0
public BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window title, and window flags
p_jasperPrint!
A JasperPrint objectp_title!
Title for the windowp_flags$
Flags for the window 12.0
public BBJasperViewerWindow(BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window x, window y, window width, window height, window title, and window flags
p_report!
A BBJasperReport objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowpublic BBJasperViewerWindow(BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window x, window y, window width, window height, window title, and window flags
p_reports!
BBjVector of BBJasperReport objectsp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the window 16.0
public BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$)
Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window X, window Y, window width, window height, window title, and window flags
p_jasperPrint!
A JasperPrint objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the window 12.0
public BBJasperViewerWindow(BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a BBJasperReport object, window x, window y, window width, window height, window title, window flags, and fit type
p_report!
A BBJasperReport objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGEpublic BBJasperViewerWindow(BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a BBjVector of BBJasperReport objects, window x, window y, window width, window height, window title, window flags, and fit type
p_reports!
BBjVector containing BBJasperReport objectsp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGE 16.0
public BBJasperViewerWindow(JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a JasperPrint object, window X, window Y, window width, window height, window title, window flags, and fit type
p_jasperPrint!
A JasperPrint objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGE 12.0
public BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, BBJasperReport p_report!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a parent BBJasperViewercontrol object, BBJasperReport object, window x, window y, window width, window height, window title, and window flags
p_parentViewerControl!
Specifies the parent BBJasperViewerControl objectp_report!
A BBJasperReport objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGEpublic BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, BBjVector p_reports!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a parent BBJasperViewercontrol object, BBJasperReport object, window x, window y, window width, window height, window title, and window flags
p_parentViewerControl!
Specifies the parent BBJasperViewerControl objectp_reports!
BBjVector of BBJasperReport objectsp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGE 16.0
public BBJasperViewerWindow(BBJasperViewerControl p_parentViewerControl!, JasperPrint p_jasperPrint!, BBjNumber p_x, BBjNumber p_y, BBjNumber p_width, BBjNumber p_height, BBjString p_title!, BBjString p_flags$, BBjNumber p_fitType)
Constructor Constructs a BBJasperViewerWindow given a parent JasperViewerControl object, JasperPrint object, window X, window Y, window width, window height, window title, window flags, and fit type
p_parentViewerControl!
Specifies the parent BBJasperViewerControl objectp_jasperPrint!
A JasperPrint objectp_x
X location for the windowp_y
Y location for the windowp_width
Width of the windowp_height
Height of the windowp_title!
Title for the windowp_flags$
Flags for the windowp_fitType
Specifies on the following fit types: FIT_TYPE_ACTUAL, FIT_TYPE_WIDTH, FIT_TYPE_PAGE 12.0
public void center()
center Centers the viewer window on either the MDI window or client desktop
public void destroy()
destroy Removes self from any parent viewer control, then destroys the viewer control and the viewer window
public BBJasperViewerControl getViewerControl()
getViewerControl Returns the viewer control
public BBjTopLevelWindow getViewerWindow()
getViewerWindow Returns the viewer window
public BBjString getWindowTitle()
getWindowTitle Returns the title of the viewer window
public void OnClose(BBjSysGuiEvent p_event!)
OnClose Called when the window is closed by the user
p_event!
BBjSysGuiEvent objectpublic void OnScreenResize(BBjScreenResizeEvent p_event!)
OnWindowResize Called when the screen is resized by the user
p_event!
BBjScreenResizeEvent objectpublic void OnScreenResizeTimer(BBjTimerEvent p_event!)
OnScreenResizeTimer Called when the screen resize timer is triggered
p_event!
BBjTimerEvent objectpublic void OnWindowResize(BBjResizeEvent p_event!)
OnWindowResize Called when the window is resized by the user
p_event!
BBjResizeEvent objectpublic void OnWindowResizeTimer(BBjTimerEvent p_event!)
OnWindowResizeTimer Called when the window resize timer is triggered
p_event!
BBjTimerEvent objectpublic static BBjNumber setDefaults()
setDefaults Sets the default X, Y, width, height for the window
public void setSize(BBjNumber p_width, BBjNumber p_height)
setSize Sets the size of the viewer window and control
p_width
Window widthp_height
Window heightpublic void setWindowTitle(BBjString p_windowTitle!)
setWindowTitle Sets the title of the viewer window
p_windowTitle$
Window titlepublic void show(BBjNumber p_processEvents)
show Shows the viewer window for non empty reports, and optionally process events for the window
p_processEvents
Specify TRUE to process events for the window, otherwise FALSEpublic void show(BBjNumber p_processEvents, BBjNumber p_showEmpty)
show Shows the viewer window for empty or non empty reports, and optionally process events for the window
p_processEvents
Specify TRUE to process events for the window, otherwise FALSEp_showEmpty
Specify TRUE to show empty reports, otherwise FALSE