Package com.iizigo.prop.editor
Class ExtendsFlagPropEditor
java.lang.Object
com.iizigo.prop.editor.ExtendsFlagPropEditor
- All Implemented Interfaces:
IEditedPropertyEntry<PropCnr,
,Object> EventListener
,Runnable
,EventListener
,FocusListener
,SelectionListener
,SWTEventListener
public class ExtendsFlagPropEditor extends Object implements IEditedPropertyEntry<PropCnr,Object>, SelectionListener, EventListener, FocusListener, Runnable
The boolean property editor consists of a simple check box.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptioncreateControls
(PropertyEditor editor, PropertyEditorInfo info, String[] options, Composite parent, PropCnr[] containers, Atom atom, DefinedButton definedButton) Creates the required controls in the composite.void
dispose()
Called when disposed of.void
At focus gained, select entire field.void
Upon focus lost, checks the entry field.void
Property event.void
run()
Runs the updateFromProp code from the SWT thread.void
Not processed.void
Checkbox pressed.
Constructor Details
ExtendsFlagPropEditor
public ExtendsFlagPropEditor()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 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:
dispose
in interfaceIEditedPropertyEntry<PropCnr,
Object>
focusGained
At focus gained, select entire field.- Specified by:
focusGained
in interfaceFocusListener
focusLost
Upon focus lost, checks the entry field.- Specified by:
focusLost
in interfaceFocusListener
onEvent
Property event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- The event.
run
public void run()Runs the updateFromProp code from the SWT thread.widgetSelected
Checkbox pressed.- Specified by:
widgetSelected
in interfaceSelectionListener
widgetDefaultSelected
Not processed.- Specified by:
widgetDefaultSelected
in interfaceSelectionListener