|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.events.SelectionAdapter
org.mailster.gui.DropDownListener
public abstract class DropDownListener
---
Mailster (C) 2007-2009 De Oliveira Edouard
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
See Mailster
Web Site
---
DropDownListener.java - Generic handler for dropdown buttons.
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.ToolItem |
dropdown
|
protected org.eclipse.swt.widgets.Menu |
menu
|
| Constructor Summary | |
|---|---|
protected |
DropDownListener()
|
|
DropDownListener(org.eclipse.swt.widgets.ToolItem dropdown)
Constructs a DropDownListener |
| Method Summary | |
|---|---|
abstract void |
buttonPushed()
Method is called when the button was clicked. |
void |
clear()
Drops all items of the current dropdown by creating a new menu. |
void |
setEnabled(boolean enabled)
Sets the enabled state of the dropdown. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
Called when either the button itself or the dropdown arrow is clicked |
| 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 |
| Field Detail |
|---|
protected org.eclipse.swt.widgets.ToolItem dropdown
protected org.eclipse.swt.widgets.Menu menu
| Constructor Detail |
|---|
protected DropDownListener()
public DropDownListener(org.eclipse.swt.widgets.ToolItem dropdown)
dropdown - the dropdown this listener belongs to| Method Detail |
|---|
public final void clear()
public void setEnabled(boolean enabled)
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerwidgetSelected in class org.eclipse.swt.events.SelectionAdapterevent - the event that triggered this callpublic abstract void buttonPushed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||