summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/activity/ActivityPanel.java
blob: eb651fefbcb27e1f8117469c3bd36d4d7cdee318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();

}