public class StartWindowToolbox extends java.lang.Object implements IFragment, ISelectable, IThemeSwitcher
Modifier and Type | Field and Description |
---|---|
javafx.scene.control.Button |
uiAdd |
javafx.scene.layout.HBox |
uiButtonBar |
javafx.scene.layout.GridPane |
uiMetroToolBox |
javafx.scene.control.Button |
uiRemove |
ToolboxFragment |
uiSelectedNode |
javafx.scene.control.Button |
uiSettings |
javafx.scene.layout.VBox |
uiToolbox |
java.util.ArrayList<ToolboxFragment> |
uiToolboxFragments |
Constructor and Description |
---|
StartWindowToolbox()
Construct the toolbox window.
|
Modifier and Type | Method and Description |
---|---|
void |
deselect()
Is called when item is deselected, changes look.
|
javafx.scene.Node |
getFragment()
Get main view fragment.
|
SelectionType |
getType()
Specifies what kind of SelectionType this object is.
|
void |
select()
Is called when item is selected, changes look.
|
void |
setToolbox(java.util.ArrayList<ToolboxItem> toolboxItems)
Set ArrayList of ToolboxItems.
|
void |
toDarkMode()
Switch fragment to dark mode appearance.
|
void |
toLightMode()
Switch fragment to light mode appearance.
|
void |
updateSelectedNode(ToolboxFragment node)
Update a node to selected state.
|
public final javafx.scene.control.Button uiAdd
public final javafx.scene.layout.HBox uiButtonBar
public final javafx.scene.layout.GridPane uiMetroToolBox
public final javafx.scene.control.Button uiRemove
public ToolboxFragment uiSelectedNode
public final javafx.scene.control.Button uiSettings
public final javafx.scene.layout.VBox uiToolbox
public final java.util.ArrayList<ToolboxFragment> uiToolboxFragments
public void deselect()
deselect
in interface ISelectable
public javafx.scene.Node getFragment()
getFragment
in interface IFragment
public SelectionType getType()
getType
in interface ISelectable
public void select()
select
in interface ISelectable
public void setToolbox(java.util.ArrayList<ToolboxItem> toolboxItems)
toolboxItems
- List of ToolboxItems.public void toDarkMode()
toDarkMode
in interface IThemeSwitcher
public void toLightMode()
toLightMode
in interface IThemeSwitcher
public void updateSelectedNode(ToolboxFragment node)
node
- ToolboxFragment that should be swapped to selected state.