Class TextPropertyDescriptor

  • All Implemented Interfaces:

    public class TextPropertyDescriptor
    extends PropertyDescriptor
    Descriptor for a property that has a value which should be edited with a text cell editor.

    This class may be instantiated; it is not intended to be subclassed.


     IPropertyDescriptor pd = new TextPropertyDescriptor("surname", "Last Name");
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • TextPropertyDescriptor

        public TextPropertyDescriptor​(Object id,
                                      String displayName)
        Creates an property descriptor with the given id and display name.
        id - the id of the property
        displayName - the name to display for the property
    • Method Detail

      • createPropertyEditor

        public CellEditor createPropertyEditor​(Composite parent)
        The TextPropertyDescriptor implementation of this IPropertyDescriptor method creates and returns a new TextCellEditor.

        The editor is configured with the current validator if there is one.

        Specified by:
        createPropertyEditor in interface IPropertyDescriptor
        createPropertyEditor in class PropertyDescriptor
        parent - the parent widget for the cell editor
        the cell editor for this property, or null if this property cannot be edited