Constructs a new instance of this class given its parent
(which must be a <code>Decorations</code>) and a style value
describing its behavior and appearance.
<p>
The style value is either one of the style constants defined in
class <code>SWT</code> which is applicable to instances of this
class, or must be built by <em>bitwise OR</em>'ing together
(that is, using the <code>int</code> "|" operator) two or more
of those <code>SWT</code> style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
</p><p>
After constructing a menu or menuBar, it can be set into its parent
using <code>parent.setMenu(menu)</code> or <code>parent.setMenuBar(menuBar)</code>.
</p>
@param parent a decorations control which will be the parent of the new instance (cannot be null)
@param style the style of menu to construct
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT - if the parent is null</li>
</ul>
@exception SWTException <ul>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
<li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
</ul>
Constructs a new instance of this class given its parent (which must be a <code>Decorations</code>) and a style value describing its behavior and appearance. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p><p> After constructing a menu or menuBar, it can be set into its parent using <code>parent.setMenu(menu)</code> or <code>parent.setMenuBar(menuBar)</code>. </p>
@param parent a decorations control which will be the parent of the new instance (cannot be null) @param style the style of menu to construct
@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the parent is null</li> </ul> @exception SWTException <ul> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> </ul>
@see SWT#BAR @see SWT#DROP_DOWN @see SWT#POP_UP @see Widget#checkSubclass @see Widget#getStyle