public class OperationFragment extends java.lang.Object implements IFragment, ISelectable, IInteractable, IThemeSwitcher
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<java.lang.String> |
attributes |
java.util.ArrayList<java.lang.String> |
attributeValues |
java.lang.String |
name |
ToolboxFragment |
toolboxFragment |
javafx.scene.layout.BorderPane |
uiBorderPane |
javafx.scene.control.Label |
uiName |
Constructor and Description |
---|
OperationFragment(ToolboxFragment toolboxFragment)
Constructs an OperationFragment
|
Modifier and Type | Method and Description |
---|---|
private void |
build()
Helper method to build the view and keep constructor more clear.
|
void |
deselect()
Is called when item is deselected, changes look.
|
void |
exit()
Is called on mouse exit, changes look.
|
javafx.scene.Node |
getFragment()
Get main view fragment
|
SelectionType |
getType()
Specifies what kind of SelectionType this object is.
|
void |
hover()
Is called on mouse hover, changes look.
|
void |
select()
Is called when item is selected, changes look.
|
void |
toDarkMode()
Switch fragment to dark mode appearance.
|
void |
toLightMode()
Switch fragment to light mode appearance.
|
public final java.util.ArrayList<java.lang.String> attributes
public final java.util.ArrayList<java.lang.String> attributeValues
public final java.lang.String name
public final ToolboxFragment toolboxFragment
public final javafx.scene.layout.BorderPane uiBorderPane
public final javafx.scene.control.Label uiName
public OperationFragment(ToolboxFragment toolboxFragment)
toolboxFragment
- Fragment to add to.private void build()
public void deselect()
deselect
in interface ISelectable
public void exit()
exit
in interface IInteractable
public javafx.scene.Node getFragment()
getFragment
in interface IFragment
public SelectionType getType()
getType
in interface ISelectable
public void hover()
hover
in interface IInteractable
public void select()
select
in interface ISelectable
public void toDarkMode()
toDarkMode
in interface IThemeSwitcher
public void toLightMode()
toLightMode
in interface IThemeSwitcher