Class AbstractViewUI
java.lang.Object
edu.ntnu.idi.idatt.view.components.AbstractView<javafx.scene.layout.StackPane>
edu.ntnu.idi.idatt.view.components.AbstractViewUI
- Direct Known Subclasses:
ExchangeView, NewspaperView, PortfolioView, StockView, TransactionView
Abstract View UI class.
Creates a view layout to simplify further view creation for child classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract javafx.scene.ParentAbstract method for content creation.abstract javafx.scene.ParentAbstract method for header creation.abstract javafx.scene.ParentAbstract method for menu creation.abstract javafx.scene.ParentAbstract method for navigation creation.abstract javafx.scene.ParentAbstract method for toolbar creation.voidMethod for creating initial view wrappers.javafx.scene.layout.HBoxGetter for header.javafx.scene.layout.VBoxGetter for navigation.javafx.scene.layout.HBoxGetter for toolbar.voidMethod for toggling the visibility of the menu.Methods inherited from class AbstractView
getInstance, setInstanceModifier and TypeMethodDescriptionjavafx.scene.layout.StackPaneGetter for current view instance.voidsetInstance(javafx.scene.layout.StackPane instance) Setter for current view instance.
-
Constructor Details
-
AbstractViewUI
public AbstractViewUI()Constructor for AbstactViewUI.Binds the abstract classes into the root StackPane. Binds together smaller modules which are persistent across all views.
-
-
Method Details
-
createUIComponents
public void createUIComponents()Method for creating initial view wrappers. -
createContent
public abstract javafx.scene.Parent createContent()Abstract method for content creation.- Specified by:
createContentin classAbstractView<javafx.scene.layout.StackPane>- Returns:
- Root node of content.
-
createHeader
public abstract javafx.scene.Parent createHeader()Abstract method for header creation.- Returns:
- Root node of header.
-
createToolbar
public abstract javafx.scene.Parent createToolbar()Abstract method for toolbar creation.- Returns:
- Root node of toolbar.
-
createMenu
public abstract javafx.scene.Parent createMenu()Abstract method for menu creation.- Returns:
- Root node of menu.
-
getHeader
public javafx.scene.layout.HBox getHeader()Getter for header.- Returns:
- HBox;
-
getToolbar
public javafx.scene.layout.HBox getToolbar()Getter for toolbar.- Returns:
- HBox;
-
toggleMenu
public void toggleMenu()Method for toggling the visibility of the menu.
-