add javadoc

This commit is contained in:
2019-12-27 00:50:59 +01:00
parent b2c3854b3a
commit 64355e0b93
25 changed files with 157 additions and 23 deletions
+3
View File
@@ -2,6 +2,9 @@ package core.gui;
import java.util.List;
/**
* Switched out Views have to implement this interface.
*/
public interface LearningView {
void repaintEnvironment();
void updateLearningInfoPanel();
+1 -1
View File
@@ -61,7 +61,7 @@ public class View<A extends Enum> implements LearningView{
fileMenu.add(new JMenuItem(new AbstractAction("Save") {
@Override
public void actionPerformed(ActionEvent e) {
String fileName = JOptionPane.showInputDialog("Enter file name", "save");
String fileName = JOptionPane.showInputDialog("Enter file name", "path/to/file");
if(fileName != null){
viewListener.onSaveState(fileName);
}
+7
View File
@@ -2,6 +2,13 @@ package core.gui;
import javax.swing.*;
/**
* Classes that implement this interface are able to create a visual component
* that can be utilized and displayed by the view. It is optional for an environment
* to defined a GUI (View is checking it via "instance of").
* Furthermore a state implement this interface, so it can be displayed from the
* state-action-table.
*/
public interface Visualizable {
JComponent visualize();
}