com.levigo.jadice.demo.launcher
Class EmbeddedDemoApplication
java.lang.Object
com.levigo.jadice.demo.launcher.BasicDemoApplication
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:
- The
CompareToggler
will be registered in the Context
by this class in
postInitCallback
- The menucomponents.properties, actions.properties and command.properties must be configured
to contain the ToggleCompareView definitions
- The
ToggleCompareCommand
will perform the action of switching from compare to
non-compare mode
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 |
compareViewer
protected BasicJadicePanel compareViewer
mainViewer
protected BasicJadicePanel mainViewer
EmbeddedDemoApplication
public EmbeddedDemoApplication()
EmbeddedDemoApplication
public EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory)
EmbeddedDemoApplication
public EmbeddedDemoApplication(DefaultMenuComponentFactory menuComponentFactory,
String[] args)
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 framemainViewerPanel
- - the viewer panel
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.