ILcyCustomizerPanel
framework has been introduced
aside of this functionality. Please note that all existing uses of this mechanism, both
adding custom implementations and retrieving implementations added by Lucy addons,
keep on working. It is however strongly recommended to use the ILcyCustomizerPanel
mechanism for new code. Please refer to the Lucy developer's guide or
TLcyUserInterfaceManager.getCompositeCustomizerPanelFactory()
for more information
on the new mechanism.@Deprecated public interface ILcyObjectCustomizerFactory
Customizer
that is able to customize certain types of model
objects.Modifier and Type | Method and Description |
---|---|
boolean |
canCreateObjectCustomizer(Object aObject,
ILcdModel aModel,
ILcdGXYView aGXYView)
Deprecated.
Returns true if createObjectCustomizer will return a customizer that can handle
the given object, false otherwise.
|
Customizer |
createObjectCustomizer(Object aObject,
ILcdModel aModel,
ILcdGXYView aGXYView)
Deprecated.
Returns a Customizer for the given object.
|
String |
createObjectCustomizerDisplayName(Object aObject,
ILcdModel aModel,
ILcdGXYView aGXYView)
Deprecated.
Returns a display name for the customizer that will be created by
createObjectCustomizer( aObject, aModel, aView )
|
String createObjectCustomizerDisplayName(Object aObject, ILcdModel aModel, ILcdGXYView aGXYView)
createObjectCustomizer(java.lang.Object, com.luciad.model.ILcdModel, com.luciad.view.gxy.ILcdGXYView)
boolean canCreateObjectCustomizer(Object aObject, ILcdModel aModel, ILcdGXYView aGXYView)
aObject
- The object to test if a customizer can be created for it.aModel
- The model that contains aObject. This parameter can be null if no
model is available.aGXYView
- The view the given object is in. This parameter can be null is
no such view is available.createObjectCustomizer(java.lang.Object, com.luciad.model.ILcdModel, com.luciad.view.gxy.ILcdGXYView)
Customizer createObjectCustomizer(Object aObject, ILcdModel aModel, ILcdGXYView aGXYView)
canCreateObjectCustomizer(Object, com.luciad.model.ILcdModel, com.luciad.view.gxy.ILcdGXYView)
and customizer.setObject
: at least when the
canCreateObjectCustomizer
method returns false, an
IllegalArgumentException
should be thrown by
setObject
for the same object.
setObject(null) can be used on the created Customizer to (temporarily) de-initialize it.
Note: the implementation of this method must not call setObject on the
newly created Customizer as this is the responsibility of the user of the
created Customizer.aObject
- The object to create a customizer for.aModel
- The model that contains aObject. This parameter can be null if no
model is available.aGXYView
- The view the given object is in. This parameter can be null if
no such view is available.IllegalArgumentException
- if and only if canCreateObjectCustomizer( aObject, aModel, aView ) returns false.canCreateObjectCustomizer(java.lang.Object, com.luciad.model.ILcdModel, com.luciad.view.gxy.ILcdGXYView)