public abstract class CellController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javafx.scene.layout.HBox |
cellBody |
protected javafx.scene.layout.VBox |
cellLayout |
protected CellModel |
cellModel |
protected javafx.scene.control.TextField |
cellName |
protected NotebookController |
controller |
protected javafx.scene.layout.Region |
statusBar |
Constructor and Description |
---|
CellController(NotebookController controller,
CellModel cellModel) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
changeCellName(java.lang.String cellName) |
void |
changeStatus(java.lang.String color) |
javafx.scene.layout.VBox |
getCellLayout()
Returns the layout of the current cell.
|
CellModel |
getCellModel()
Returns the model of the current cell.
|
NotebookController |
getController() |
NotebookController |
getNotebookController()
Returns the controller of the notebook this cell is in.
|
void |
handleCellName(javafx.scene.input.KeyEvent e)
Handler for the cell name.
|
void |
handleStatusBar() |
void |
hide() |
void |
prependCellButtonHandler() |
void |
remove()
Removes the current cell (model) from the notebook model.
|
void |
setCellLayout(javafx.scene.layout.VBox cellLayout) |
void |
setCellModel(CellModel cellModel) |
void |
setController(NotebookController controller) |
void |
show() |
protected NotebookController controller
protected CellModel cellModel
protected javafx.scene.layout.VBox cellLayout
protected javafx.scene.layout.Region statusBar
protected javafx.scene.control.TextField cellName
protected javafx.scene.layout.HBox cellBody
public CellController(NotebookController controller, CellModel cellModel)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public NotebookController getController()
public void handleCellName(javafx.scene.input.KeyEvent e)
public void remove()
public NotebookController getNotebookController()
public void setController(NotebookController controller)
public javafx.scene.layout.VBox getCellLayout()
public void setCellLayout(javafx.scene.layout.VBox cellLayout)
public CellModel getCellModel()
public void setCellModel(CellModel cellModel)
public void handleStatusBar()
public void changeStatus(java.lang.String color)
public void changeCellName(java.lang.String cellName)
public void prependCellButtonHandler()
public void show()
public void hide()