| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Menu |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.feature; | |
| 2 | ||
| 3 | import java.util.List; | |
| 4 | ||
| 5 | import org.jtheque.core.managers.feature.IFeatureManager.CoreFeature; | |
| 6 | ||
| 7 | /* | |
| 8 | * This file is part of JTheque. | |
| 9 | * | |
| 10 | * JTheque is free software: you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation, either version 3 of the License. | |
| 13 | * | |
| 14 | * JTheque is distributed in the hope that it will be useful, | |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | * GNU General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
| 20 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
| 21 | */ | |
| 22 | ||
| 23 | /** | |
| 24 | * A menu. It seems a container for features. This container has main features and | |
| 25 | * features for each of the core features. | |
| 26 | * | |
| 27 | * @author Baptiste Wicht | |
| 28 | * | |
| 29 | * @see AbstractMenu | |
| 30 | */ | |
| 31 | public interface Menu { | |
| 32 | /** | |
| 33 | * Return all the sub features of this menu for the specified CoreFeature. | |
| 34 | * | |
| 35 | * @param feature The core feature. | |
| 36 | * | |
| 37 | * @return A List containing all the sub features of this core feature. | |
| 38 | */ | |
| 39 | List<Feature> getSubFeatures(CoreFeature feature); | |
| 40 | ||
| 41 | /** | |
| 42 | * Return all the main features of this menu. | |
| 43 | * | |
| 44 | * @return A List containing all the main features of this menu. | |
| 45 | */ | |
| 46 | List<Feature> getMainFeatures(); | |
| 47 | } |