public abstract class AbstractWidgetMaker<T extends WidgetParameters> extends Object implements WidgetMaker
| Modifier and Type | Field and Description |
|---|---|
protected WidgetMakerParameters |
parameters |
| Constructor and Description |
|---|
AbstractWidgetMaker(WidgetMakerParameters parameters)
Widget Makers will take, as input to their constructor, Widget parameters
which they can later use as they make their intended Widget.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
getAdditionalPropertiesForField() |
<E> E |
getAnnotation(Class<E> annotationClass) |
javassist.CtClass |
getCtType() |
protected String |
getDefaultValueForField() |
protected boolean |
getDisabledForField() |
protected String |
getFieldDescriptionForField() |
protected String |
getFieldLabelForField() |
protected String |
getFieldNameForField() |
protected boolean |
getHideLabelForField() |
protected Boolean |
getIsRequiredForField() |
protected Listeners |
getListeners() |
protected String |
getName() |
protected String |
getNameForField()
Determines and returns the name for the dialog field.
|
Class<?> |
getType() |
boolean |
hasAnnotation(Class<?> annotationClass) |
protected boolean |
isField() |
protected boolean |
isMethod() |
DialogElement |
make() |
protected abstract DialogElement |
make(T parameters) |
protected final WidgetMakerParameters parameters
public AbstractWidgetMaker(WidgetMakerParameters parameters)
parameters - public final DialogElement make() throws InvalidComponentFieldException, javassist.NotFoundException, ClassNotFoundException, SecurityException, javassist.CannotCompileException, NoSuchFieldException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
make in interface WidgetMakerInvalidComponentFieldExceptionjavassist.NotFoundExceptionClassNotFoundExceptionSecurityExceptionjavassist.CannotCompileExceptionNoSuchFieldExceptionInstantiationExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionNoSuchMethodExceptionprotected abstract DialogElement make(T parameters) throws InvalidComponentFieldException, javassist.NotFoundException, ClassNotFoundException, SecurityException, javassist.CannotCompileException, NoSuchFieldException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
InvalidComponentFieldExceptionjavassist.NotFoundExceptionClassNotFoundExceptionSecurityExceptionjavassist.CannotCompileExceptionNoSuchFieldExceptionInstantiationExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionNoSuchMethodExceptionprotected String getNameForField()
Determines and returns the name for the dialog field. The name is the relative path to where any authored input using the resultant widget will be housed in the content repository.
When useDotSlashInName is true, the string './' will be prepended to the determined name.
getName() method.protected String getFieldNameForField()
getName() method otherwise.protected String getFieldLabelForField()
protected String getFieldDescriptionForField()
protected Boolean getIsRequiredForField()
protected Map<String,String> getAdditionalPropertiesForField()
protected String getDefaultValueForField()
protected boolean getDisabledForField()
protected boolean getHideLabelForField()
protected Listeners getListeners()
protected String getName()
protected boolean isField()
protected boolean isMethod()
public <E> E getAnnotation(Class<E> annotationClass) throws ClassNotFoundException
annotationClass - The type of annotation to look for on the Widget
elementClassNotFoundExceptionpublic boolean hasAnnotation(Class<?> annotationClass)
annotationClass - The type of annotation to look for on the Widget
elementpublic javassist.CtClass getCtType()
throws javassist.NotFoundException,
InvalidComponentFieldException
javassist.NotFoundExceptionInvalidComponentFieldExceptionpublic Class<?> getType() throws InvalidComponentFieldException
InvalidComponentFieldExceptionCopyright © 2019 ICF Olson. All rights reserved.