public class ProductBar
extends java.lang.Object
| Constructor and Description |
|---|
ProductBar(GUI gui)
Constructor for the Product Bar
Takes the GUIOrig which owns it
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<ProductBarElement> |
getElements()
Get the array of elements
|
EnumFood |
getSelectedElement() |
void |
pressElement(int elementID)
Presses an element (changes its drop shaddow)
|
void |
unselectSelected()
Unselect the selected element
|
public ProductBar(GUI gui)
gui - public java.util.ArrayList<ProductBarElement> getElements()
public void unselectSelected()
public void pressElement(int elementID)
elementID - element to presspublic EnumFood getSelectedElement()