com.tensegrity.gui.swt.dialog
Class CustomAttributesDialog

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

public class CustomAttributesDialog
extends SwtBaseDialog

CustomAttributesDialog allows the user to add (custom) attributes to the selected elements. It is also possible to add and create new enum constraints.

Version:
$Id: CustomAttributesDialog.java,v 1.2 2005/09/19 14:44:48 ArndHouben Exp $
Author:
ArndHouben

Field Summary
static java.lang.String TYPE_NAME_RESOURCE_PREFIX
           
 
Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog
resourceClass, resourcePath
 
Constructor Summary
CustomAttributesDialog(UIManager uiManager, org.eclipse.swt.widgets.Display display, int style, AttributeEditorProperties editorProperties)
          Creates a new modal CustomAttributesDialog.
 
Method Summary
 java.lang.String getValue()
           Returns the value of this input dialog.
 void setSelection(java.util.List list)
          Users of this dialog invoke this method to let this dialog know on which elements to apply the newly created attributes.
protected  void updateAttributeValues()
          Updates existing attribute values by removing and readding the attributes.
 
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
 

Field Detail

TYPE_NAME_RESOURCE_PREFIX

public static final java.lang.String TYPE_NAME_RESOURCE_PREFIX
See Also:
Constant Field Values
Constructor Detail

CustomAttributesDialog

public CustomAttributesDialog(UIManager uiManager,
                              org.eclipse.swt.widgets.Display display,
                              int style,
                              AttributeEditorProperties editorProperties)
Creates a new modal CustomAttributesDialog.

Parameters:
uiManager - for localization
display - dialog parent composite
style - SWT style bits
editorProperties - used to add or remove enums
Method Detail

getValue

public final java.lang.String getValue()

Returns the value of this input dialog.

Returns:
the value of this input dialog, null if the user cancelled

setSelection

public final void setSelection(java.util.List list)
Users of this dialog invoke this method to let this dialog know on which elements to apply the newly created attributes.

Parameters:
list - the list of elements.

updateAttributeValues

protected void updateAttributeValues()
Updates existing attribute values by removing and readding the attributes.



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.