java.lang.Object
com.wyu4.snowberryjam.gui.framework.ViewBuilder
- All Implemented Interfaces:
javafx.util.Builder<javafx.scene.layout.Region>
The ViewBuilder of the MVCI framework.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Interactorprivate static final org.slf4j.Loggerprivate final Model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.layout.Regionbuild()javafx.scene.NodeCreate a new code editorjavafx.scene.NodeCreate a console widgetjavafx.scene.control.ButtoncreateFontButton(org.kordamp.ikonli.javafx.FontIcon icon) javafx.scene.NodeCreate a log widget to be inserted in the consolejavafx.scene.NodeCreate a newMenuBarfilled with project operations.javafx.scene.NodeCreates a debug viewer for the compiled code.javafx.scene.NodeCreate a project widget
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
model
-
interactor
-
-
Constructor Details
-
ViewBuilder
Creates a new ViewBuilder- Parameters:
model- The model of the MVCI framework
-
-
Method Details
-
build
public javafx.scene.layout.Region build()- Specified by:
buildin interfacejavafx.util.Builder<javafx.scene.layout.Region>
-
createMenuBar
public javafx.scene.Node createMenuBar()Create a newMenuBarfilled with project operations.- Returns:
MenuBar
-
createProjectWidget
public javafx.scene.Node createProjectWidget()Create a project widget- Returns:
- A widget with a code editor, viewer, and console.
- See Also:
-
createConsole
public javafx.scene.Node createConsole()Create a console widget- Returns:
NodeConsole that displays logs fromLocalStorage
-
createLog
Create a log widget to be inserted in the console- Parameters:
source- The source of the logmessage- The messagecolor- The background color- Returns:
- A new
HBox
-
createProjectViewer
public javafx.scene.Node createProjectViewer()Creates a debug viewer for the compiled code.- Returns:
- A new
SplitPane
-
createCodeEditor
public javafx.scene.Node createCodeEditor()Create a new code editor- Returns:
CodeArea- See Also:
-
createFontButton
public javafx.scene.control.Button createFontButton(org.kordamp.ikonli.javafx.FontIcon icon)
-