Menu.this

Constructs a new instance of this class given its parent, and sets the style for the instance so that the instance will be a popup menu on the given parent's shell. <p> After constructing a menu, it can be set into its parent using <code>parent.setMenu(menu)</code>. In this case, the parent may be any control in the same widget tree as the parent. </p>

@param parent a control which will be the parent of the new instance (cannot be null)

@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#POP_UP @see Widget#checkSubclass @see Widget#getStyle

Meta