com.tensegrity.gui.swt.dialog
Class SwtAttributableOnSetDialog

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

public class SwtAttributableOnSetDialog
extends SwtBaseDialog
implements org.eclipse.swt.events.SelectionListener

TODO IMPLEMENT THIS DIALOG

Version:
$Id: SwtAttributableOnSetDialog.java,v 1.9 2005/11/09 11:34:45 ArndHouben Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
resourceClass, resourcePath
 
Constructor Summary
SwtAttributableOnSetDialog(AttributableOnSet attributable, boolean isTree, boolean editable, java.lang.String propertyFileName, org.eclipse.swt.widgets.Display owner, UIManager uiManager, java.lang.String keyTitle, java.lang.String keyDescription, java.lang.String keyAttributeEditorTitle, java.lang.String[] btnIDs)
           
SwtAttributableOnSetDialog(AttributableOnSet attributable, boolean isTree, boolean editable, java.lang.String propertyFileName, Frame dlgParent, UIManager uiManager, java.lang.String keyTitle, java.lang.String keyDescription, java.lang.String keyAttributeEditorTitle, java.lang.String[] btnIDs)
          Constructor
 
Method Summary
 AttributeEditor getAttributeEditor()
          Returns the AttributeEditor
 java.lang.String getPressedButtonID()
          Returns the ID from the button that the user pressed to close the dialog.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
applyEvList, dispose, getDialog, getTextCompositeLayoutData, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText, show
 
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

SwtAttributableOnSetDialog

public SwtAttributableOnSetDialog(AttributableOnSet attributable,
                                  boolean isTree,
                                  boolean editable,
                                  java.lang.String propertyFileName,
                                  Frame dlgParent,
                                  UIManager uiManager,
                                  java.lang.String keyTitle,
                                  java.lang.String keyDescription,
                                  java.lang.String keyAttributeEditorTitle,
                                  java.lang.String[] btnIDs)
Constructor

Parameters:
attributable - The AttributableOnSet to display in the AttributeTree
isTree - True, to display an AttributeTreeEditor False, to display an AttributeTableEditor
editable - True, to make the editor editable
propertyFileName - Name of the file to store the properties in, null to disable property persistence (!only works for tree editor!)
uiManager - The ui manager of the application
keyTitle - The key for the title text resource
keyDescription - The key for the message text resource
keyAttributeEditorTitle - The key for the title of the ToolContainer for the attribute editor
btnIDs - The resource keys for the buttons to display. After closing you can retrieve the code of the pressed button with getPressedButtonID()

SwtAttributableOnSetDialog

public SwtAttributableOnSetDialog(AttributableOnSet attributable,
                                  boolean isTree,
                                  boolean editable,
                                  java.lang.String propertyFileName,
                                  org.eclipse.swt.widgets.Display owner,
                                  UIManager uiManager,
                                  java.lang.String keyTitle,
                                  java.lang.String keyDescription,
                                  java.lang.String keyAttributeEditorTitle,
                                  java.lang.String[] btnIDs)
Method Detail

getPressedButtonID

public java.lang.String getPressedButtonID()
Returns the ID from the button that the user pressed to close the dialog. GUIItem.CANCEL_BUT_IDS is returned when the dialog has been closed with the close button.

Returns:
the ID from the button that the user pressed to close the dialog.

getAttributeEditor

public AttributeEditor getAttributeEditor()
Returns the AttributeEditor

Returns:
the AttributeEditor

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.