|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.events.SelectionAdapter
com.webcodepro.applecommander.ui.swt.util.DropDownSelectionListener
public class DropDownSelectionListener
Listens to widgetSelected() events on SWT.DROP_DOWN type ToolItems and opens/closes a menu when appropriate. Code taken and modified from SWT examples to be more generic.
Date created: Nov 2, 2002 8:25:11 PM
| Constructor Summary | |
|---|---|
DropDownSelectionListener(org.eclipse.swt.widgets.Menu menu)
Construct the DropDownSelectionListener with the specific menu to be used. |
|
| Method Summary | |
|---|---|
protected void |
setMenuVisible(boolean visible)
Set menu visibility and track state. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
Handle selection events. |
| Methods inherited from class org.eclipse.swt.events.SelectionAdapter |
|---|
widgetDefaultSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DropDownSelectionListener(org.eclipse.swt.widgets.Menu menu)
| Method Detail |
|---|
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerwidgetSelected in class org.eclipse.swt.events.SelectionAdapterprotected void setMenuVisible(boolean visible)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||