public class PopupManager
extends java.lang.Object
| Constructor and Description |
|---|
PopupManager(GUI gui)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDiscardDisplay(DiscardDisplay discardDisplay)
sets the discardDisplay to the passed in pbDataDisplay
|
void |
setGraphDisplay(GraphDisplay graphDisplay)
sets the graphDisplay to the passed in pbDataDisplay
|
void |
setPbDataDisplay(ProductBarDataDisplay pbDataDisplay)
sets the pbDataDisplay to the passed in pbDataDisplay
|
void |
toggleDiscardDisplay()
when Discard Display is clicked do the appropriate thing (close, open, close and open something else)
|
void |
toggleFoodPopup(int id)
When foodpopup is clicked, do the appropriate thing (close, open, close and open something else)
|
void |
toggleGraphDisplay()
When graph display is clicked, do the appropriate thing (close, open, close and open something else)
|
public PopupManager(GUI gui)
gui - which owns the popup managerpublic void toggleDiscardDisplay()
public void toggleGraphDisplay()
public void toggleFoodPopup(int id)
public void setPbDataDisplay(ProductBarDataDisplay pbDataDisplay)
pbDataDisplay - public void setGraphDisplay(GraphDisplay graphDisplay)
graphDisplay - public void setDiscardDisplay(DiscardDisplay discardDisplay)
discardDisplay -