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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) clone()RedefinesObject.clone()to make it public.voidRemoves all registeredILcdGXYEditors.getGXYEditor(Object aObject) Finds anILcdGXYEditorthat can be used to edit the object passed.booleanDeprecated.This method has been deprecated.voidregisterGXYEditorForClass(Class aDataClass, ILcdGXYEditor aGXYEditor) Registers anILcdGXYEditorto associate to a given Class ofObject.voidregisterGXYEditorForClassName(String aDataClassName, ILcdGXYEditor aGXYEditor) Registers anILcdGXYEditorto associate to a given Class name ofObject.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetTraceOn(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 istruethen 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen 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.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
addPropertyChangeListener
-
removePropertyChangeListener
-
getGXYEditors
- Returns:
- all the registered
ILcdGXYEditors.
-
registerGXYEditorForClass
Registers anILcdGXYEditorto associate to a given Class ofObject. -
registerGXYEditorForClassName
Registers anILcdGXYEditorto associate to a given Class name ofObject. -
deregisterAllGXYEditors
public void deregisterAllGXYEditors()Removes all registeredILcdGXYEditors. -
getGXYEditor
Description copied from interface:ILcdGXYEditorProviderFinds anILcdGXYEditorthat 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:
getGXYEditorin interfaceILcdGXYEditorProvider- Parameters:
aObject- the object to find an editor for- Returns:
- the first found
ILcdGXYEditorwhich has been registered with a Class that satisfiesClass.isInstance(aObject).
-
clone
Description copied from interface:ILcdGXYEditorProviderRedefinesObject.clone()to make it public.- Specified by:
clonein interfaceILcdGXYEditorProvider- Overrides:
clonein classObject- Returns:
- a shallow clone (the registered
ILcdGXYEditorss are not cloned).
-
deepClone
- Returns:
- a deep clone (the registered
ILcdGXYEditorss are cloned).
-