com.tensegrity.gui.swt.dialog
Class MarkerDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.MarkerDialog
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener
- public class MarkerDialog
- extends org.eclipse.swt.widgets.Dialog
- implements org.eclipse.swt.events.SelectionListener
A dialog for choosing different marker types.
- Version:
- $Id: MarkerDialog.java,v 1.2 2005/03/23 08:49:57 ArndHouben Exp $
- Author:
- Arnd Houben
|
Constructor Summary |
MarkerDialog(org.eclipse.swt.widgets.Shell parent,
int style,
int initialSelection)
Constructor which requires the initial selection index. |
|
Method Summary |
int |
open()
Opens the modal dialog and returns an int containing the selected
marker type |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
|
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
|
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkerDialog
public MarkerDialog(org.eclipse.swt.widgets.Shell parent,
int style,
int initialSelection)
- Constructor which requires the initial selection index. The index
points to a marker item within the internally used MarkerSelectionBox.
- Parameters:
parent - the parent shell of this MarkerDialogstyle - SWT style bitsinitialSelection - index of the initially choosed marker
open
public int open()
- Opens the modal dialog and returns an int containing the selected
marker type
- Returns:
- the selected marker type
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
- Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
widgetDefaultSelected
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
- Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.