AfrFoundation CATExtIContextualSubMenu
Usage: you can derive this class.
public class CATExtIContextualSubMenu
Adapter for the CATIContextualSubMenu interface.
Role:To implement the interface CATIContextualSubMenu
for a class MyClass,
write a class MyClassExtIContextualSubMenu subclassed from CATExtIContextualSubMenu
and defined as a data extension of MyClass. MyClassExtIContextualSubMenu.
A standard implementation consists in building in the constructor a chain of which represents the contextual sub-menu for the object implementing the CATIContextualSubMenu interface. The other methods do not need to be overloaded.
- See also:
-
Constructor and Destructor Index
- o
CATExtIContextualSubMenu()
- Constructs the class.
- o
~CATExtIContextualSubMenu()
- Deletes the class.
Method Index
- o
GetContextualSubMenu()
- Gets the object's contextual sub-menu.
Data Member Index
- o
_accessChain
- Chain of CATCmdAccess which represents the contextual sub-menu
for the object implementing the CATIContextualSubMenu interface.
Constructor and Destructor
o CATExtIContextualSubMenu
public CATExtIContextualSubMenu( | ) |
-
Constructs the class.
Role:You can here create the chain of
which represents the contextual sub-menu for the object implementing the CATIContextualSubMenu interface.
Do not forget to set the _accessChain protected data member whith the first access of the chain.
o ~CATExtIContextualSubMenu
public virtual ~CATExtIContextualSubMenu( | ) |
-
Deletes the class.
Role:The default behavior is to delete the _accessChain protected data member and all its chain.
Methods
o GetContextualSubMenu
public virtual GetContextualSubMenu( | ) |
-
Gets the object's contextual sub-menu.
Role:This method returns a chain of
which represents the contextual sub-menu for the object implementing the CATIContextualSubMenu interface.
This method can be overloaded. Its default behavior is only to return the _accessChain protected data member
which was set in the contructor.
- Returns:
- The first access of the chain.
Data Members
o _accessChain
protected CATCmdAccess * _accessChain
-
Chain of CATCmdAccess which represents the contextual sub-menu
for the object implementing the CATIContextualSubMenu interface.
Role:This chain may be built in the constructor of the extension. It is returned by GetContextualSubMenu.
- See also:
-
This object is included in the file: CATExtIContextualSubMenu.h
If needed, your Imakefile.mk should include the module: CATAfrFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.