Class ExtendsNamePropEditor

java.lang.Object
com.iizigo.prop.editor.ExtendsNamePropEditor
All Implemented Interfaces:
IEditedPropertyEntry<PropCnr,Object>, EventListener, Runnable, EventListener, FocusListener, ModifyListener, SWTEventListener

public class ExtendsNamePropEditor extends Object implements IEditedPropertyEntry<PropCnr,Object>, ModifyListener, EventListener, FocusListener, Runnable
The Extends Name "property" editor consists of a simple entry field.
Author:
Christopher Mindus
  • Constructor Details

    • ExtendsNamePropEditor

      public ExtendsNamePropEditor()
      Default constructor called before createControls.
  • Method Details

    • createControls

      public MultiPropEditor createControls(PropertyEditor editor, PropertyEditorInfo info, String[] options, Composite parent, PropCnr[] containers, Atom atom, DefinedButton definedButton)
      Creates the required controls in the composite.
      Specified by:
      createControls in interface IEditedPropertyEntry<PropCnr,Object>
      Parameters:
      editor - The property editor instance.
      info - The information about edited item.
      options - The options.
      parent - Parent composite, where to place components.
      containers - The containers for the edited property.
      atom - Atom name of the property in the containers.
      definedButton - The define-button or null for none.
      Returns:
      null for normal editors, the instance of the multi-property editor in case of multiple editable entries (lines).
    • dispose

      public void dispose()
      Called when disposed of.
      Specified by:
      dispose in interface IEditedPropertyEntry<PropCnr,Object>
    • run

      public void run()
      Runs the updateFromProp code from the SWT thread.
      Specified by:
      run in interface Runnable
    • focusGained

      public void focusGained(FocusEvent e)
      At focus gained, select entire field.
      Specified by:
      focusGained in interface FocusListener
    • focusLost

      public void focusLost(FocusEvent e)
      Upon focus lost, checks the entry field.
      Specified by:
      focusLost in interface FocusListener
    • modifyText

      public void modifyText(ModifyEvent e)
      The entry field has been modified, checks the entry field.
      Specified by:
      modifyText in interface ModifyListener
    • onEvent

      public void onEvent(GEvent e)
      Property event.
      Specified by:
      onEvent in interface EventListener
      Parameters:
      e - The event.