Converted all CRLF to LF.
[indepmod/experimental.git] / IndependentModeler / src / cz / cvut / promod / services / menuService / utils / ModelerMenuItem.java
blobc6370b08505cbada32983d1e7d4dfe2ee0a6256e
1 package cz.cvut.promod.services.menuService.utils;
3 import java.util.List;
5 /**
6 * ProMod, master thesis project
7 * User: Petr Zverina, petr.zverina@gmail.com
8 * Date: 1:22:36, 30.10.2009
9 */
11 /**
12 * Class that is a base class for all items in menus.
14 public interface ModelerMenuItem {
16 /**
17 * Returns the list of relative items. Relives are all items in menu that have the same name (text).
18 * All relatives return empty list (but not nullary), but one returns list containing references to all
19 * other relative items (to make it possible to set them not visible).
21 * @return If the item is supposed to be hidden when not related notation is selected, than this methods
22 * return an empty list, if it has no relatives then returns null, and if this is the item that is supposed
23 * to be shown (event if it is disabled anyway) that it returns the non empty list of relatives.
25 public List<ModelerMenuItem> getListOfRelatives();
27 /**
28 * Sets the list of relative items. Relives are all items in menu that have the same name (text).
29 * All relatives return empty list (but not nullary), but one returns list containing references to all
30 * other relative items (to make it possible to set them not visible).
32 * @param relatives is the list of relatives
34 public void setListOfRelatives(List<ModelerMenuItem> relatives);