com.tensegrity.gui.swt.dialog
Class SwtAttributableOnSetDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.SwtBaseDialog
com.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
|
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 |
| 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 |
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
AttributeTreeisTree - True, to display an AttributeTreeEditor
False, to display an AttributeTableEditoreditable - True, to make the editor editablepropertyFileName - 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 applicationkeyTitle - The key for the title text resourcekeyDescription - The key for the message text resourcekeyAttributeEditorTitle - The key for the title of the
ToolContainer for the attribute editorbtnIDs - 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)
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.