com.venetica.vbr.viewer.client
Class CommonViewerApplet
- java.lang.Object
- java.awt.Component
- java.awt.Container
- java.awt.Panel
- java.applet.Applet
- javax.swing.JApplet
- com.venetica.vbr.viewer.client.CommonViewerApplet
All implemented interfaces:
- public class CommonViewerApplet
- extends JApplet
repository, username,
password, and contentID
. To display content previously cached in
the session attribute vbr-content
, specify the parameter
displayCachedContent
. Parameter baseServletURL
is
required in both modes.
Mode 1 with applet-managed logon/logoff and display of repository content:
- repository - Repository ID
- username - User name
- password - Password
- contentID - Content ID of image in repository
Mode 2 to display content previously cached within the servlet session:
- displayCachedContent - Indicates that the viewer should display content previously cached in the servlet session attribute vbr-content. The repository object should also be cached in servlet session attribute vbr-repository.
Additional Parameters:
- baseServletURL - Required parameter to indicate the URL for the servlet engine eg: "http://localhost:8080/vbr_viewer"
- nativeContentServletURL - Optional parameter to indicate the name of the getNativeContentServlet at the baseServletURL address eg: "GetNativeContent"
- useImageURLs - Enable or disable the use of image URLs. Image URLs allow the applet to load images directly from a server rather than through the VeniceBridge framework. HTTP Access must be correctly configured to use this flag.
- userData - Custom user data that is passed to all servlets.
- debug - Enable or disable debug output. When enabled, debug output will be written to standard out. You may need to enable the Java console of your web browser to see debug output.
See Also:
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary
Constructor and Description |
---|
CommonViewerApplet()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createCommonViewerFrame()
Create a CommonViewerFrame display the image.
|
|
destroy()
Destroy the applet.
|
|
init()
Initialize the applet.
|
Methods inherited from class javax.swing.JApplet |
---|
getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
Methods inherited from class java.applet.Applet |
---|
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
CommonViewerApplet
- public CommonViewerApplet()
Method Detail
init
- public void init()
Initialize the applet. The default behavior is to set the layout manager
to BorderLayout, create a new external window for the viewer, set applicable
variables on the viewer, then display the image selected on the viewer.
createCommonViewerFrame
- public void createCommonViewerFrame( )
Create a CommonViewerFrame display the image.
Since:
8.4
destroy
- public void destroy()
Destroy the applet. Automatically calls viewer logoff if applet
handled original logon.