public class TLcdGXYEditorProvider extends Object implements ILcdGXYEditorProvider
ILcdGXYEditorProvider
that returns
for an Object
an ILcdGXYEditor
that has been registered for
its class.Constructor and Description |
---|
TLcdGXYEditorProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) |
Object |
clone()
Redefines
Object.clone() to make it public. |
TLcdGXYEditorProvider |
deepClone() |
void |
deregisterAllGXYEditors()
Removes all registered
ILcdGXYEditors . |
ILcdGXYEditor |
getGXYEditor(Object aObject)
Finds an
ILcdGXYEditor that can be used to edit the object passed. |
ILcdGXYEditor[] |
getGXYEditors() |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
registerGXYEditorForClass(Class aDataClass,
ILcdGXYEditor aGXYEditor)
Registers an
ILcdGXYEditor to associate to a given Class
of Object . |
void |
registerGXYEditorForClassName(String aDataClassName,
ILcdGXYEditor aGXYEditor)
Registers an
ILcdGXYEditor to associate to a given Class
name of Object . |
void |
removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.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.public boolean isTraceOn()
true
if tracing is enabled for this class.public void addPropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener aPropertyChangeListener)
public ILcdGXYEditor[] getGXYEditors()
ILcdGXYEditor
s.public void registerGXYEditorForClass(Class aDataClass, ILcdGXYEditor aGXYEditor)
ILcdGXYEditor
to associate to a given Class
of Object
.public void registerGXYEditorForClassName(String aDataClassName, ILcdGXYEditor aGXYEditor)
ILcdGXYEditor
to associate to a given Class
name of Object
.public void deregisterAllGXYEditors()
ILcdGXYEditors
.public ILcdGXYEditor getGXYEditor(Object aObject)
ILcdGXYEditorProvider
ILcdGXYEditor
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;
}
getGXYEditor
in interface ILcdGXYEditorProvider
aObject
- the object to find an editor forILcdGXYEditor
which has been
registered with a Class that satisfies Class.isInstance(aObject)
.public Object clone()
ILcdGXYEditorProvider
Object.clone()
to make it public.clone
in interface ILcdGXYEditorProvider
clone
in class Object
ILcdGXYEditors
s are not
cloned).public TLcdGXYEditorProvider deepClone()
ILcdGXYEditors
s are
cloned).