|
|
|||||
| Package com.dassault_systemes.catjdialog |
Interface CATMenuModel
|
| Class Hierarchy |
com.dassault_systemes.catjdialog.CATMenuModel
| Class Location |
| Class Description |
public interface CATMenuModel
The menu model interface.
This interface allows to define content for:
| Field Summary |
| public static final String | SEPARATOR
Item ID for defining a separator. |
| Constructor Summary |
| Method Summary |
| public String | getItemIcon(String iItemID, Object iContext)
Returns the icon for the specified menu item (null if no icon). |
| public String | getItemLabel(String iItemID, Object iContext)
Returns the label of the specified menu item. |
| public Enumeration | getItems(String iFatherItemID, Object iContext)
Returns the list of children items of the specified item. |
| public boolean | isCheckBox(String iItemID, Object iContext)
Determines whether the specified item has a check-box or not. |
| public boolean | isChecked(String iItemID, Object iContext)
Returns the specified check-box item state (true is "on", false is "off"). |
| public boolean | isSubMenu(String iItemID, Object iContext)
Determines whether the specified item is a sub-menu (that is "has children items") or not. |
| Field Detail |
public static final String SEPARATOR
Item ID for defining a separator.
| Constructor Detail |
| Method Detail |
public String getItemIcon(String iItemID, Object iContext)
Returns the icon for the specified menu item (null if no icon).
iItemIDiContext
public String getItemLabel(String iItemID, Object iContext)
Returns the label of the specified menu item.
iItemIDiContext
public Enumeration getItems(String iFatherItemID, Object iContext)
Returns the list of children items of the specified item.
iFatherItemIDiContextSEPARATOR item IDs.
public boolean isCheckBox(String iItemID, Object iContext)
Determines whether the specified item has a check-box or not.
This method isn't called for sub-menus items.
iItemIDiContext
public boolean isChecked(String iItemID, Object iContext)
Returns the specified check-box item state (true is "on", false is "off").
This method is only called for items that returned true to isCheckBox().
iItemIDiContext
public boolean isSubMenu(String iItemID, Object iContext)
Determines whether the specified item is a sub-menu (that is "has children items") or not.
When a menu item is declared as a sub-menu, then the getItems() method may be called by the framework to retreive its children menu items.
iItemIDiContext