Package com.iizigo.prop.editor
Class ExtendsNamePropEditor
- java.lang.Object
- com.iizigo.prop.editor.ExtendsNamePropEditor
- All Implemented Interfaces:
IEditedPropertyEntry<PropCnr,java.lang.Object>
,EventListener
,java.lang.Runnable
,java.util.EventListener
,org.eclipse.swt.events.FocusListener
,org.eclipse.swt.events.ModifyListener
,org.eclipse.swt.internal.SWTEventListener
public class ExtendsNamePropEditor extends java.lang.Object implements IEditedPropertyEntry<PropCnr,java.lang.Object>, org.eclipse.swt.events.ModifyListener, EventListener, org.eclipse.swt.events.FocusListener, java.lang.Runnable
The Extends Name "property" editor consists of a simple entry field.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description ExtendsNamePropEditor()
Default constructor called before createControls.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
dispose()
Called when disposed of.void
focusGained(org.eclipse.swt.events.FocusEvent e)
At focus gained, select entire field.void
focusLost(org.eclipse.swt.events.FocusEvent e)
Upon focus lost, checks the entry field.void
modifyText(org.eclipse.swt.events.ModifyEvent e)
The entry field has been modified, checks the entry field.void
onEvent(GEvent e)
Property event.void
run()
Runs the updateFromProp code from the SWT thread.
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 interfaceIEditedPropertyEntry<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).
dispose
public void dispose()
Called when disposed of.- Specified by:
dispose
in interfaceIEditedPropertyEntry<PropCnr,java.lang.Object>
run
public void run()
Runs the updateFromProp code from the SWT thread.- Specified by:
run
in interfacejava.lang.Runnable
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent e)
At focus gained, select entire field.- Specified by:
focusGained
in interfaceorg.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 interfaceorg.eclipse.swt.events.FocusListener
modifyText
public void modifyText(org.eclipse.swt.events.ModifyEvent e)
The entry field has been modified, checks the entry field.- Specified by:
modifyText
in interfaceorg.eclipse.swt.events.ModifyListener
onEvent
public void onEvent(GEvent e)
Property event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- The event.