com.levigo.jadice.demo.launcher
Class EmbeddedDemoApplication

java.lang.Object
  extended by com.levigo.jadice.demo.launcher.BasicDemoApplication
      extended by com.levigo.jadice.demo.launcher.EmbeddedDemoApplication

public class EmbeddedDemoApplication
extends BasicDemoApplication

A demo of the Jadice Viewer in an embedded environment. For this demo, the BasicDemoApplication is subclassed to provide a different Frame for the viewer.

This demo also includes a compare view for side by side comparison of a document. The listener registered here (see postInitCallback(JFrame, BasicJadicePanel)) will simply synchronize the loaded document from the "main viewer" to the "compare viewer".

To provide the compare view, the following steps have been done:


Field Summary
protected  BasicJadicePanel compareViewer
           
protected  BasicJadicePanel mainViewer
           
 
Fields inherited from class com.levigo.jadice.demo.launcher.BasicDemoApplication
JADICE_NAME
 
Constructor Summary
EmbeddedDemoApplication()
           
EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory)
           
EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory, String[] args)
           
 
Method Summary
protected  JFrame createFrame(BasicJadicePanel viewerPanel)
          Called during initialization to create the main Window.
protected  void postInitCallback(JFrame mainFrame, BasicJadicePanel mainViewerPanel)
          After creating the UI components, this is the last method called by the abstract superclass.
 
Methods inherited from class com.levigo.jadice.demo.launcher.BasicDemoApplication
addMenuContributions, close, configureAreaSelectionTool, configureDragAndDrop, configureImportExportHandlers, configureKeyBindingsTool, configureStatusBar, configureTextSelectionTool, configureToolManager, createBasicJadicePanel, doConfigureImportExportHandlers, getArgumentValue, getBasicJadicePanel, getFrame, getPresentationRules, getRollingMessagePanelPosition, getSorterToolbarPosition, getTrayPopupMenu, handleArgs, hasTrayIcon, hideTrayPopupMenu, init, installTrayIcon, isTrayVisibilityToggle, main, registerContextListeners, registerPropertyChangeListeners, removeTrayIcon, showTrayPopupMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compareViewer

protected BasicJadicePanel compareViewer

mainViewer

protected BasicJadicePanel mainViewer
Constructor Detail

EmbeddedDemoApplication

public EmbeddedDemoApplication()

EmbeddedDemoApplication

public EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory)

EmbeddedDemoApplication

public EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory,
                               String[] args)
Method Detail

createFrame

protected JFrame createFrame(BasicJadicePanel viewerPanel)
Description copied from class: BasicDemoApplication
Called during initialization to create the main Window. By default, the window will use the given viewerPanel as ContentPane.

Overrides:
createFrame in class BasicDemoApplication
Parameters:
viewerPanel - - the viewer panel
Returns:
- the created frame

postInitCallback

protected void postInitCallback(JFrame mainFrame,
                                BasicJadicePanel mainViewerPanel)
After creating the UI components, this is the last method called by the abstract superclass. Here we register listeners to synchronize the compare viewer with the main viewer.

Overrides:
postInitCallback in class BasicDemoApplication
Parameters:
mainFrame - - the main frame
mainViewerPanel - - the viewer panel


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.