public class AddButtonController extends ButtonController
Modifier and Type | Class and Description |
---|---|
(package private) class |
AddButtonController.EmptyStringException |
Modifier and Type | Field and Description |
---|---|
private Ocean |
myOcean |
private OceanGUI |
myOceanGUI |
Constructor and Description |
---|
AddButtonController(Ocean model,
OceanGUI view) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private java.lang.Boolean |
objectCanBeAdded(OceanObject obj) |
getMyOcean, getMyOceanGUI, message, repaintOcean, setMyOcean, setMyOceanGUI, updateStatusPanelCustomText, updateStatusPanelStandardText
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class ButtonController
private java.lang.Boolean objectCanBeAdded(OceanObject obj)