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

    Fields inherited from class org.jhotdraw.app.AbstractApplication

    labels, model, VIEW_COUNT_PROPERTY

    Fields inherited from class org.jhotdraw.beans.AbstractBean

    propertySupport

    Fields inherited from interface org.jhotdraw.app.Application

    ACTIVE_VIEW_PROPERTY, RECENT_URIS_PROPERTY
  • 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
    void onEvent​(java.lang.Object event)  
    void show​(org.jhotdraw.app.View view)  
    protected void updateViewTitle​(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, wrapViewComponent

    Methods 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, views

    Methods inherited from class org.jhotdraw.beans.AbstractBean

    addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jhotdraw.app.Application

    addPropertyChangeListener, 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:
      show in interface org.jhotdraw.app.Application
      Overrides:
      show in class org.jhotdraw.app.SDIApplication
    • updateViewTitle

      protected void updateViewTitle​(org.jhotdraw.app.View view, javax.swing.JFrame frame)
      Overrides:
      updateViewTitle in class org.jhotdraw.app.SDIApplication
    • onEvent

      public void onEvent​(java.lang.Object event)
      Specified by:
      onEvent in interface org.opentcs.util.event.EventHandler