E
- Genericpublic class GUI<E>
extends java.lang.Object
implements interfaces.CategoryListener
Constructor and Description |
---|
GUI(ui.controller.Control control)
Create the application.
|
Modifier and Type | Method and Description |
---|---|
void |
addObjectAction(java.lang.String objType,
javax.swing.tree.DefaultMutableTreeNode selectedNode)
adds a specific object type to selected Category also handles input
windows and illegal inputs.
|
javax.swing.JFrame |
getFrmCyberPhysical()
Get the Frame.
|
void |
onChange(java.util.ArrayList<classes.Category> categories)
When changes are made to the Categories.
|
void |
updateCategories(java.util.ArrayList<classes.Category> categories)
reloads the Categories from Model.
|
public GUI(ui.controller.Control control)
control
- the Controllerpublic void addObjectAction(java.lang.String objType, javax.swing.tree.DefaultMutableTreeNode selectedNode)
objType
- type of the ObjectselectedNode
- The selected Nodepublic void updateCategories(java.util.ArrayList<classes.Category> categories)
categories
- the current categoriespublic void onChange(java.util.ArrayList<classes.Category> categories)
onChange
in interface interfaces.CategoryListener
categories
- the Categoriespublic javax.swing.JFrame getFrmCyberPhysical()