Package com.luciad.lucy.gui
Interface ILcyCustomizerFactory
Deprecated.
Interface for
Customizer factories. A Customizer
is a GUI for a certain Object. This Object could be
anything, a ILcdGXYLayer, ...-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateCustomizer(Object aObject) Deprecated.Returns true if createCustomizer will return a customizer that can handle the given object, false otherwise.createCustomizer(Object aObject) Deprecated.Returns aCustomizerfor the givenObject.createCustomizerDisplayName(Object aObject) Deprecated.Returns a display name for the customizer that will be created bycreateCustomizer( aObject, aModel, aView ).
-
Method Details
-
createCustomizerDisplayName
Deprecated.Returns a display name for the customizer that will be created bycreateCustomizer( aObject, aModel, aView ). It should only be used ifcanCreateCustomizerreturnstrue.- Returns:
- The display name.
- See Also:
-
canCreateCustomizer
Deprecated.Returns true if createCustomizer will return a customizer that can handle the given object, false otherwise.- Parameters:
aObject- The object to test if a customizer can be created for it.- Returns:
- True if createCustomizer will return a customizer that can handle the given object, false otherwise.
- See Also:
-
createCustomizer
Deprecated.Returns aCustomizerfor the givenObject. TheCustomizershould accept the givenObject, so it should not throw an exception when setObject( aObject ) is invoked on the created customizer. Furthermore, the created Customizer must throw an IllegalArgumentException when an attempt is made to set any type of object to the Customizer that it cannot handle. All this is to be able to reuse the same Customizer instance (performance!) for customizing several objects, one after another. This typically means there is a strong relation betweencanCreateCustomizer(Object)andcustomizer.setObject: at least when thecanCreateCustomizermethod returns false, anIllegalArgumentExceptionshould be thrown bysetObjectfor 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.- Parameters:
aObject- The object to create a customizer for.- Returns:
- The Customizer that can handle the given object.
- Throws:
IllegalArgumentException- if and only if canCreateCustomizer( aObject ) returns false.- See Also:
-
ILcyCustomizerPanelframework 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 theILcyCustomizerPanelmechanism for new code. Please refer to the Lucy developer's guide orTLcyUserInterfaceManager.getCompositeCustomizerPanelFactory()for more information on the new mechanism.