Package com.rmwin1

Class OWEditorUI


public class OWEditorUI extends RMEditorUI
This class contains all of the methods to display and handle RMEditor UI methods.
  • Constructor Details

    • OWEditorUI

      public OWEditorUI()
  • Method Details

    • getUI

      public RJPanel getUI()
      Description copied from class: RMEditorUI
      Returns the Swing UI panel for the editor window.
      Overrides:
      getUI in class RMEditorUI
    • newDocument

      public RMEditorUI newDocument()
      Creates a new default editorUI.
      Overrides:
      newDocument in class RMEditorUI
    • open

      public RMEditorUI open()
      Creates a new editor window from an open panel.
      Overrides:
      open in class RMEditorUI
    • open

      public RMEditorUI open(Object aSource)
      Creates a new editor window by opening the document from the given source.
      Overrides:
      open in class RMEditorUI
    • save

      public void save()
      Saves the current editor document, running the save panel if needed.
      Overrides:
      save in class RMEditorUI
    • saveAs

      public void saveAs()
      Saves the current editor document, running the save panel.
      Overrides:
      saveAs in class RMEditorUI
    • saveAs

      public void saveAs(String aPath)
      Saves the current editor document to the given path.
      Overrides:
      saveAs in class RMEditorUI
    • revert

      public void revert()
      Reloads the current editor document from the last saved version.
      Overrides:
      revert in class RMEditorUI
    • quit

      public void quit()
      RMEditor IO method - callled when the app is about to exit to gracefully handle any open documents.
      Overrides:
      quit in class RMEditorUI
    • runWelcome

      public void runWelcome()
      Runs the welcome panel.
      Overrides:
      runWelcome in class RMEditorUI