Class ExtendsFlagPropEditor

  • All Implemented Interfaces:
    IEditedPropertyEntry<PropCnr,​java.lang.Object>, EventListener, java.lang.Runnable, java.util.EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

    public class ExtendsFlagPropEditor
    extends java.lang.Object
    implements IEditedPropertyEntry<PropCnr,​java.lang.Object>, org.eclipse.swt.events.SelectionListener, EventListener, org.eclipse.swt.events.FocusListener, java.lang.Runnable
    The boolean property editor consists of a simple check box.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      ExtendsFlagPropEditor()
      Default constructor called before createControls.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      MultiPropEditorcreateControls​(PropertyEditor editor, PropertyEditorInfo info, java.lang.String[] options, org.eclipse.swt.widgets.Composite parent, PropCnr[] containers, Atom atom, DefinedButton definedButton)
      Creates the required controls in the composite.
      voiddispose()
      Called when disposed of.
      voidfocusGained​(org.eclipse.swt.events.FocusEvent e)
      At focus gained, select entire field.
      voidfocusLost​(org.eclipse.swt.events.FocusEvent e)
      Upon focus lost, checks the entry field.
      voidonEvent​(GEvent e)
      Property event.
      voidrun()
      Runs the updateFromProp code from the SWT thread.
      voidwidgetDefaultSelected​(org.eclipse.swt.events.SelectionEvent e)
      Not processed.
      voidwidgetSelected​(org.eclipse.swt.events.SelectionEvent e)
      Checkbox pressed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendsFlagPropEditor

        public ExtendsFlagPropEditor()
        Default constructor called before createControls.
    • Method Detail

      • createControls

        public MultiPropEditor createControls​(PropertyEditor editor,
                                              PropertyEditorInfo info,
                                              java.lang.String[] options,
                                              org.eclipse.swt.widgets.Composite parent,
                                              PropCnr[] containers,
                                              Atom atom,
                                              DefinedButton definedButton)
        Creates the required controls in the composite.
        Specified by:
        createControls in interface IEditedPropertyEntry<PropCnr,​java.lang.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).
      • focusGained

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

        public void focusLost​(org.eclipse.swt.events.FocusEvent e)
        Upon focus lost, checks the entry field.
        Specified by:
        focusLost in interface org.eclipse.swt.events.FocusListener
      • onEvent

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

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

        public void widgetSelected​(org.eclipse.swt.events.SelectionEvent e)
        Checkbox pressed.
        Specified by:
        widgetSelected in interface org.eclipse.swt.events.SelectionListener
      • widgetDefaultSelected

        public void widgetDefaultSelected​(org.eclipse.swt.events.SelectionEvent e)
        Not processed.
        Specified by:
        widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener