public interface ILcyCustomizerPanelFactory
Factory to creates instances of ILcyCustomizerPanel
. An
implementation can only create customizer panels for a certain object when
canCreateCustomizerPanel
returns true
for that object.
Uses the abstract factory design pattern.
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateCustomizerPanel(Object aObject)
Returns
true if createObjectCustomizer will return a customizer that
can handle the given object, false otherwise. |
ILcyCustomizerPanel |
createCustomizerPanel(Object aObject)
Creates a new instance of
ILcyCustomizerPanel . |
boolean canCreateCustomizerPanel(Object aObject)
Returns true
if createObjectCustomizer
will return a customizer that
can handle the given object, false
otherwise.
aObject
- The object to test if a customizer can be created for it.true
if createObjectCustomizer will return a customizer that can handle the given
object, false
otherwise.createCustomizerPanel(java.lang.Object)
ILcyCustomizerPanel createCustomizerPanel(Object aObject)
Creates a new instance of ILcyCustomizerPanel
. Users of this method will most
likely set an object to the returned ILcyCustomizerPanel
using ILcyCustomizerPanel.setObject(Object)
. Whether that is possible can be verified in advance
using canCreateCustomizerPanel(Object)
.
aObject
- The object to create an ILcyCustomizerPanel
for.ILcyCustomizerPanel
.IllegalArgumentException
- If canCreateCustomizerPanel
returns
false
for aObject
.canCreateCustomizerPanel(java.lang.Object)