E
- Genericpublic class GUI<E> extends java.lang.Object implements CategoryListener
Constructor and Description |
---|
GUI(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<Category> categories)
When changes are made to the Categories.
|
void |
updateCategories(java.util.ArrayList<Category> categories)
reloads the Categories from Model.
|
public GUI(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<Category> categories)
categories
- the current categoriespublic void onChange(java.util.ArrayList<Category> categories)
onChange
in interface CategoryListener
categories
- the Categoriespublic javax.swing.JFrame getFrmCyberPhysical()