Package com.luciad.view.gxy
Class TLcdGXYEditorProvider
java.lang.Object
com.luciad.view.gxy.TLcdGXYEditorProvider
- All Implemented Interfaces:
ILcdGXYEditorProvider
,Serializable
,Cloneable
This is an implementation of
ILcdGXYEditorProvider
that returns
for an Object
an ILcdGXYEditor
that has been registered for
its class.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) clone()
RedefinesObject.clone()
to make it public.void
Removes all registeredILcdGXYEditors
.getGXYEditor
(Object aObject) Finds anILcdGXYEditor
that can be used to edit the object passed.boolean
Deprecated.This method has been deprecated.void
registerGXYEditorForClass
(Class aDataClass, ILcdGXYEditor aGXYEditor) Registers anILcdGXYEditor
to associate to a given Class ofObject
.void
registerGXYEditorForClassName
(String aDataClassName, ILcdGXYEditor aGXYEditor) Registers anILcdGXYEditor
to associate to a given Class name ofObject
.void
removePropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
TLcdGXYEditorProvider
public TLcdGXYEditorProvider()
-
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn
- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getGXYEditors
- Returns:
- all the registered
ILcdGXYEditor
s.
-
registerGXYEditorForClass
Registers anILcdGXYEditor
to associate to a given Class ofObject
. -
registerGXYEditorForClassName
Registers anILcdGXYEditor
to associate to a given Class name ofObject
. -
deregisterAllGXYEditors
public void deregisterAllGXYEditors()Removes all registeredILcdGXYEditors
. -
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:
- the first found
ILcdGXYEditor
which has been registered with a Class that satisfiesClass.isInstance(aObject)
.
-
clone
Description copied from interface:ILcdGXYEditorProvider
RedefinesObject.clone()
to make it public.- Specified by:
clone
in interfaceILcdGXYEditorProvider
- Overrides:
clone
in classObject
- Returns:
- a shallow clone (the registered
ILcdGXYEditors
s are not cloned).
-
deepClone
- Returns:
- a deep clone (the registered
ILcdGXYEditors
s are cloned).
-