Class OpenTCSSDIApplication
java.lang.Object
org.jhotdraw.beans.AbstractBean
org.jhotdraw.app.AbstractApplication
org.jhotdraw.app.SDIApplication
org.opentcs.thirdparty.jhotdraw.application.OpenTCSSDIApplication
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.jhotdraw.app.Application,org.opentcs.util.event.EventHandler
public class OpenTCSSDIApplication
extends org.jhotdraw.app.SDIApplication
implements org.opentcs.util.event.EventHandler
The enclosing SDI application.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OpenTCSSDIApplication(javax.swing.JFrame frame, javax.inject.Provider<ApplicationMenuBar> menuBarProvider, org.opentcs.guing.persistence.ModelManager modelManager, org.opentcs.util.event.EventSource eventSource, org.opentcs.common.PortalManager portalManager)Creates a new instance. -
Method Summary
Modifier and Type Method Description voidonEvent(java.lang.Object event)voidshow(org.jhotdraw.app.View view)protected voidupdateViewTitle(org.jhotdraw.app.View view, javax.swing.JFrame frame)Methods inherited from class org.jhotdraw.app.SDIApplication
configure, createEditMenu, createFileMenu, createHelpMenu, createMenuBar, createModelActionMap, createViewActionMap, createViewMenu, createWindowMenu, dispose, getComponent, hide, init, initLookAndFeel, isSharingToolsAmongViews, launch, remove, wrapViewComponentMethods inherited from class org.jhotdraw.app.AbstractApplication
add, addAction, addAction, addMenuItem, addPalette, addRecentURI, addWindow, basicCreateView, clearRecentURIs, createContainer, createOpenRecentFileMenu, createView, destroy, getAction, getActionMap, getActiveView, getCopyright, getExportChooser, getImportChooser, getModel, getName, getOpenChooser, getOpenURIsFromMainArgs, getRecentURIs, getSaveChooser, getVersion, initLabels, isEnabled, maybeAddSeparator, removePalette, removeWindow, setActionMap, setActiveView, setEnabled, setModel, start, stop, viewsMethods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
OpenTCSSDIApplication
@Inject public OpenTCSSDIApplication(javax.swing.JFrame frame, javax.inject.Provider<ApplicationMenuBar> menuBarProvider, org.opentcs.guing.persistence.ModelManager modelManager, org.opentcs.util.event.EventSource eventSource, org.opentcs.common.PortalManager portalManager)Creates a new instance.- Parameters:
frame- The frame in which the OpenTCSView is to be shown.menuBarProvider- Provides the main application menu bar.modelManager- Provides the current system model.eventSource- Where this instance registers for application events.portalManager- The portal manager.
-
-
Method Details
-
show
public void show(org.jhotdraw.app.View view)- Specified by:
showin interfaceorg.jhotdraw.app.Application- Overrides:
showin classorg.jhotdraw.app.SDIApplication
-
updateViewTitle
protected void updateViewTitle(org.jhotdraw.app.View view, javax.swing.JFrame frame)- Overrides:
updateViewTitlein classorg.jhotdraw.app.SDIApplication
-
onEvent
public void onEvent(java.lang.Object event)- Specified by:
onEventin interfaceorg.opentcs.util.event.EventHandler
-