Package com.iizigo.prop.editor
Class ExtendsNamePropEditor
java.lang.Object
com.iizigo.prop.editor.ExtendsNamePropEditor
- All Implemented Interfaces:
- IEditedPropertyEntry<PropCnr,,- Object> - EventListener,- Runnable,- EventListener,- org.eclipse.swt.events.FocusListener,- org.eclipse.swt.events.ModifyListener,- org.eclipse.swt.internal.SWTEventListener
public class ExtendsNamePropEditor extends Object implements IEditedPropertyEntry<PropCnr,Object>, org.eclipse.swt.events.ModifyListener, EventListener, org.eclipse.swt.events.FocusListener, Runnable 
The Extends Name "property" editor consists of a simple entry field.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- createControls- (PropertyEditor editor, PropertyEditorInfo info, 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.- voidProperty event.- void- run()Runs the updateFromProp code from the SWT thread.
- Constructor Details- ExtendsNamePropEditorpublic ExtendsNamePropEditor()Default constructor called before createControls.
 
- Method Details- createControlspublic MultiPropEditor createControls- (PropertyEditor editor, PropertyEditorInfo info, String[] options, org.eclipse.swt.widgets.Composite parent, PropCnr[] containers, Atom atom, DefinedButton definedButton) Creates the required controls in the composite.- Specified by:
- createControlsin 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).
 
- disposepublic void dispose()Called when disposed of.- Specified by:
- disposein interface- IEditedPropertyEntry<PropCnr,- Object> 
 
- runpublic void run()Runs the updateFromProp code from the SWT thread.
- focusGainedpublic void focusGained- (org.eclipse.swt.events.FocusEvent e) At focus gained, select entire field.- Specified by:
- focusGainedin interface- org.eclipse.swt.events.FocusListener
 
- focusLostpublic void focusLost- (org.eclipse.swt.events.FocusEvent e) Upon focus lost, checks the entry field.- Specified by:
- focusLostin interface- org.eclipse.swt.events.FocusListener
 
- modifyTextpublic void modifyText- (org.eclipse.swt.events.ModifyEvent e) The entry field has been modified, checks the entry field.- Specified by:
- modifyTextin interface- org.eclipse.swt.events.ModifyListener
 
- onEventProperty event.- Specified by:
- onEventin interface- EventListener
- Parameters:
- e- The event.