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 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 modifiedvoid
initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)
void
setColumnRow(int column, int row)
Update the colum row countervoid
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 interfacejavafx.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 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
-
-