com.tensegrity.gui.swt.dialog
Class TextureItemDialog

java.lang.Object
  extended byorg.eclipse.swt.widgets.Dialog
      extended bycom.tensegrity.gui.swt.dialog.TextureItemDialog
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class TextureItemDialog
extends org.eclipse.swt.widgets.Dialog
implements org.eclipse.swt.events.SelectionListener

A dialog for loading and choosing new textures.

After instantiation use the open() method to make the dialog visible.

Version:
$Id: TextureItemDialog.java,v 1.7 2006/03/02 11:41:40 BurkhardWick Exp $
Author:
Arnd Houben

Constructor Summary
TextureItemDialog(org.eclipse.swt.widgets.Shell parent)
          Default constructor
 
Method Summary
 Raster open()
          Opens a modal dialog and returns the latest selected paint item
 void setLocation(int x, int y)
          Sets the dialog position to the specified values
 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
 

Constructor Detail

TextureItemDialog

public TextureItemDialog(org.eclipse.swt.widgets.Shell parent)
Default constructor

Parameters:
parent - the parent shell
Method Detail

open

public Raster open()
Opens a modal dialog and returns the latest selected paint item

Returns:
selected texture, or null if none was selected

setLocation

public final void setLocation(int x,
                              int y)
Sets the dialog position to the specified values

Parameters:
x - the x position of the top left corner of the dialog frame
y - the y position of the top left corner of the dialog frame

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.