Package app.controllers
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 voidhandle(EditorChangedEvent event)Updates the column-row number display whenever the editor cursor changes position.voidhandle(FileSaveStateChangedEvent event)Updates the saveState label whenever the file either is saved or modifiedvoidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)voidsetColumnRow(int column, int row)Update the colum row countervoidsetEventBus(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:
initializein interfacejavafx.fxml.Initializable
-
setEventBus
public void setEventBus(com.google.common.eventbus.EventBus eventBus)Description copied from interface:ControllerRegisters the main EventBus into the controller.- Specified by:
setEventBusin interfaceController
-
setColumnRow
public void setColumnRow(int column, int row)Update the colum row counter- Parameters:
column- The column numberrow- The row number
-
handle
Updates the column-row number display whenever the editor cursor changes position.- Parameters:
event-
-
handle
Updates the saveState label whenever the file either is saved or modified- Parameters:
event-
-