com.tensegrity.gui.swt.dialog
Class CustomAttributesDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.SwtBaseDialog
com.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
|
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 |
TYPE_NAME_RESOURCE_PREFIX
public static final java.lang.String TYPE_NAME_RESOURCE_PREFIX
- See Also:
- Constant Field Values
CustomAttributesDialog
public CustomAttributesDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
AttributeEditorProperties editorProperties)
- Creates a new modal CustomAttributesDialog.
- Parameters:
uiManager - for localizationdisplay - dialog parent compositestyle - SWT style bitseditorProperties - used to add or remove enums
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.