blob: eb651fefbcb27e1f8117469c3bd36d4d7cdee318 (
plain) (
tree)
|
|
package org.openslx.dozmod.gui.activity;
import javax.swing.JPanel;
public abstract class ActivityPanel extends JPanel {
private final JPanel container;
public ActivityPanel(JPanel container) {
this.container = container;
container.add(this);
}
/**
* If this activity wants to prevent the user from closing the application,
* it should return true. This makes the application ask the user to confirm
* quitting.
*
* @return true to ask the user for confirmation
*/
public abstract boolean wantConfirmQuit();
}
|