Class ModelineController

java.lang.Object
app.controllers.ModelineController
All Implemented Interfaces:
Controller, javafx.fxml.Initializable

public class ModelineController
extends java.lang.Object
implements javafx.fxml.Initializable, Controller
A FXML controller that controls the Modeline
  • Constructor Summary

    Constructors
    Constructor Description
    ModelineController()  
  • Method Summary

    Modifier and Type Method Description
    void handle​(EditorChangedEvent event)
    Updates the column-row number display whenever the editor cursor changes position.
    void handle​(FileSaveStateChangedEvent event)
    Updates the saveState label whenever the file either is saved or modified
    void initialize​(java.net.URL url, java.util.ResourceBundle resourceBundle)  
    void setColumnRow​(int column, int row)
    Update the colum row counter
    void setEventBus​(com.google.common.eventbus.EventBus eventBus)
    Registers the main EventBus into the controller.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelineController

      public ModelineController()
  • Method Details

    • initialize

      public void initialize​(java.net.URL url, java.util.ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.fxml.Initializable
    • setEventBus

      public void setEventBus​(com.google.common.eventbus.EventBus eventBus)
      Description copied from interface: Controller
      Registers the main EventBus into the controller.
      Specified by:
      setEventBus in interface Controller
    • setColumnRow

      public void setColumnRow​(int column, int row)
      Update the colum row counter
      Parameters:
      column - The column number
      row - The row number
    • handle

      public void handle​(EditorChangedEvent event)
      Updates the column-row number display whenever the editor cursor changes position.
      Parameters:
      event -
    • handle

      public void handle​(FileSaveStateChangedEvent event)
      Updates the saveState label whenever the file either is saved or modified
      Parameters:
      event -