add javadoc
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user