public class DropDownMenu
extends org.eclipse.swt.widgets.Menu
ToolItem
. Can be placed in a ToolBar
.Constructor and Description |
---|
DropDownMenu(org.eclipse.swt.widgets.ToolBar parent,
java.lang.String text,
java.lang.String toolTip)
Creates a new
DropDownMenu . |
Modifier and Type | Method and Description |
---|---|
void |
checkSubclass() |
org.eclipse.swt.widgets.ToolBar |
getParentOptionPanel()
Returns parent
ToolBar . |
java.lang.String |
getText()
Returns the
DropDownMenu 's text. |
void |
setText(java.lang.String text)
Sets the
DropDownMenu 's text |
addHelpListener, addMenuListener, getDefaultItem, getEnabled, getItem, getItemCount, getItems, getParent, getParentItem, getParentMenu, getShell, getVisible, indexOf, isEnabled, isVisible, removeHelpListener, removeMenuListener, setDefaultItem, setEnabled, setLocation, setLocation, setVisible
public DropDownMenu(org.eclipse.swt.widgets.ToolBar parent, java.lang.String text, java.lang.String toolTip)
DropDownMenu
.parent
- ToolBar
to be placed in.text
- for the menu.toolTip
- for the menu.public org.eclipse.swt.widgets.ToolBar getParentOptionPanel()
ToolBar
.public java.lang.String getText()
DropDownMenu
's text.public void setText(java.lang.String text)
DropDownMenu
's texttitle
- to be set.public void checkSubclass()
checkSubclass
in class org.eclipse.swt.widgets.Widget