Package com.iizigo.prop.editor
Class ExtendsFlagPropEditor
java.lang.Object
com.iizigo.prop.editor.ExtendsFlagPropEditor
- All Implemented Interfaces:
IEditedPropertyEntry<PropCnr,,Object> EventListener,Runnable,EventListener,org.eclipse.swt.events.FocusListener,org.eclipse.swt.events.SelectionListener,org.eclipse.swt.internal.SWTEventListener
public class ExtendsFlagPropEditor extends Object implements IEditedPropertyEntry<PropCnr,Object>, org.eclipse.swt.events.SelectionListener, EventListener, org.eclipse.swt.events.FocusListener, Runnable
The boolean property editor consists of a simple check box.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptioncreateControls(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.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.voidProperty 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.
Constructor Details
ExtendsFlagPropEditor
public ExtendsFlagPropEditor()Default constructor called before createControls.
Method Details
createControls
public 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 interfaceIEditedPropertyEntry<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:
disposein interfaceIEditedPropertyEntry<PropCnr,Object>
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent e) At focus gained, select entire field.- Specified by:
focusGainedin interfaceorg.eclipse.swt.events.FocusListener
focusLost
public void focusLost(org.eclipse.swt.events.FocusEvent e) Upon focus lost, checks the entry field.- Specified by:
focusLostin interfaceorg.eclipse.swt.events.FocusListener
onEvent
Property event.- Specified by:
onEventin interfaceEventListener- Parameters:
e- The event.
run
public void run()Runs the updateFromProp code from the SWT thread.widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) Checkbox pressed.- Specified by:
widgetSelectedin interfaceorg.eclipse.swt.events.SelectionListener
widgetDefaultSelected
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) Not processed.- Specified by:
widgetDefaultSelectedin interfaceorg.eclipse.swt.events.SelectionListener