Package com.ribsapp

Class RBEditorUI


public class RBEditorUI extends RMEditorUI
This RMEditor subclass customizes RMEditor behavior for Ribs.
  • Constructor Details

    • RBEditorUI

      public RBEditorUI()
  • Method Details

    • getUI

      public RJPanel getUI()
      Returns the UI for the editor.
      Overrides:
      getUI in class RMEditorUI
    • resetUI

      public void resetUI()
      Updates Swing UI controls from current selection.
      Overrides:
      resetUI in class RMEditorUI
    • respondUI

      public void respondUI(Object anObj)
      Updates current selection from UI controls.
      Overrides:
      respondUI in class RMEditorUI
    • getMainRBEditorUI

      public static RBEditorUI getMainRBEditorUI()
      Returns the main Ribs editor UI.
    • getMainRBEditor

      public static RBEditor getMainRBEditor()
      Returns the main Ribs editor.
    • getRBEditorUI

      public static RBEditorUI getRBEditorUI(RBEditor anEditor)
      Returns the editor ui for the given editor.
    • getEditorRB

      public RBEditor getEditorRB()
      Returns this editor ui's editor as RBEditor.
    • newDocument

      public RMEditorUI newDocument()
      Creates a new editor window for a new document.
      Overrides:
      newDocument 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
    • 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
    • previewXML

      public static void previewXML(RMEditor anEditor)
      Preview XML.
    • isControllerSelected

      public boolean isControllerSelected()
      Returns whether controller is selected.
    • getSelectedBinder

      public RBListBinder getSelectedBinder()
      Returns the currently selected binder for this editor.
    • setSelectedBinder

      public void setSelectedBinder(RBListBinder aBinder)
      Sets the currently selected binder for this editor.
    • isBindersPanelVisible

      public boolean isBindersPanelVisible()
      Returns whether binder panel is visible or hidden.
    • setBindersPanelVisible

      public void setBindersPanelVisible(boolean aValue)
      Make binder panel visible or hidden.
    • buildBindersList

      public void buildBindersList()
      Builds the binders list UI.
    • runWelcome

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

      public void windowDidResize()
      Overridden from RMEditor to suppress editor resize behavior. RBEditor.rib sets minimum sizes for the editor, which is handled by RJPanel, so having a second windowsize constrainer just causes problems.
      Overrides:
      windowDidResize in class RMEditorUI