Package com.luciad.view.gxy
Class TLcdSingleGXYEditorProvider
java.lang.Object
com.luciad.view.gxy.TLcdSingleGXYEditorProvider
- All Implemented Interfaces:
ILcdGXYEditorProvider
,Serializable
,Cloneable
This is an implementation of the
ILcdGXYEditorProvider
interface
that returns always the same ILcdGXYEditor
. .- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdSingleGXYEditorProvider
(ILcdGXYEditor aGXYEditor) Creates aILcdGXYEditorProvider
implementation that returns the given editor for every object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
RedefinesObject.clone()
to make it public.getGXYEditor
(Object aObject) Finds anILcdGXYEditor
that can be used to edit the object passed.
-
Constructor Details
-
TLcdSingleGXYEditorProvider
Creates aILcdGXYEditorProvider
implementation that returns the given editor for every object.- Parameters:
aGXYEditor
- an editor for every object this editor provider is requested for.
-
-
Method Details
-
getGXYEditor
Description copied from interface:ILcdGXYEditorProvider
Finds anILcdGXYEditor
that can be used to edit the object passed.The editor provider is responsible for setting the object to the editor before returning the editor. An implementation should therefore have the following structure:
public ILcdGXYEditor getGXYEditor(Object aObject) { ILcdGXYEditor editor = ... // find the editor for the object editor.setObject( aObject ); return editor; }
- Specified by:
getGXYEditor
in interfaceILcdGXYEditorProvider
- Parameters:
aObject
- the object to find an editor for- Returns:
- an editor that can be used to edit the object.
-
clone
Description copied from interface:ILcdGXYEditorProvider
RedefinesObject.clone()
to make it public.- Specified by:
clone
in interfaceILcdGXYEditorProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of this editor provider.
-