Class FormComponentBeanInfo
java.lang.Object
java.beans.SimpleBeanInfo
com.install4j.api.beaninfo.Install4JBeanInfo
com.install4j.api.beaninfo.FormComponentBeanInfo
- All Implemented Interfaces:
BeanInfo
Base class for form component bean infos.
Using this class is not strictly required. In principle, you could also set values for the ATTRIBUTE_* constants in the bean descriptor
of an unrelated bean info class.
-
Field Summary
FieldsFields inherited from class Install4JBeanInfo
ATTRIBUTE_BEAN_CATEGORY, ATTRIBUTE_BEAN_INITIALIZER, ATTRIBUTE_BEAN_VALIDATOR, ATTRIBUTE_CATEGORY_SORT_ORDER, ATTRIBUTE_CATEGORY_SORT_ORDER_OTHER_AT_BOTTOM, ATTRIBUTE_COLLAPSED_PROPERTY_CATEGORIES, ATTRIBUTE_CUSTOMIZER_ICON, ATTRIBUTE_CUSTOMIZER_PLACEMENT, ATTRIBUTE_DEFAULT_CONDITION_EXPRESSION, ATTRIBUTE_DEFAULT_ROLLBACK_BARRIER, ATTRIBUTE_DEFAULT_ROLLBACK_BARRIER_EXIT_CODE, ATTRIBUTE_ENUMERATION_MAPPERS, ATTRIBUTE_ICON_16x16, ATTRIBUTE_ICON_24x24, ATTRIBUTE_INSTALLED_FILES_REQUIRED, ATTRIBUTE_MINIMUM_JAVA_VERSION, ATTRIBUTE_MULTIPLE_INSTANCES_SUPPORTED, ATTRIBUTE_NOTICE_PANEL, ATTRIBUTE_PERSISTENCE_DELEGATE_MAP, ATTRIBUTE_PROPERTY_CONVERTERS, ATTRIBUTE_REQUIRED_JPMS_MODULES, ATTRIBUTE_SEQUENCE_VALIDATOR, ATTRIBUTE_SORT_KEYModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 -
Constructor Summary
ConstructorsConstructorDescriptionFormComponentBeanInfo(String displayName, String shortDescription, String category, boolean multipleInstancesSupported, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass) Same asInstall4JBeanInfo(String, String, String, boolean, boolean, Integer, Class, Class)withinstalledFilesRequiredset tofalse.FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass) Same asFormComponentBeanInfo(String, String, String, Integer, Class, Class)with a customizer class ofnull.FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass) Same asInstall4JBeanInfo(String, String, String, boolean, boolean, Integer, Class, Class)withmultipleInstancesSupportedset totrueandinstalledFilesRequiredset tofalse. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDefaultVisibilityScript(String defaultVisibilityScript) Configures the default value for the "Visibility script" property of the form component.voidsetHideVisibilityScript(boolean hideVisibilityScript) Configures if the visibility script should be hidden in the install4j IDE.Methods inherited from class Install4JBeanInfo
addPropertyDescriptor, checkNotEmpty, checkNotEmpty, findPropertyDescriptor, getBeanClass, getBeanDescriptor, getPropertyDescriptors, getPropertyValue, getPropertyValue, isEmpty, setBeanInitializer, setBeanValidator, setCategorySortOrder, setCategorySortOrderOtherAtBottom, setCollapsedPropertyCategories, setCustomizerIcon, setCustomizerPlacement, setDefaultConditionExpression, setDefaultRollbackBarrier, setDefaultRollbackBarrierExitCode, setEnumerationMappers, setIcons, setMinimumJavaVersion, setNoticePanel, setPersistenceDelegateMap, setPropertyConverters, setRequiredJpmsModules, setSequenceValidatorModifier and TypeMethodDescriptionvoidaddPropertyDescriptor(Install4JPropertyDescriptor propertyDescriptor) Add a property descriptor to be returned bygetPropertyDescriptors.voidcheckNotEmpty(String propertyName, Bean bean) Convenience method for bean validators to assert that a property is not empty.voidcheckNotEmpty(String propertyName, String errorMessage, Bean bean) Convenience method for bean validators to assert that a property is not empty.findPropertyDescriptor(String propertyName) Convenience method for bean validators to find the property descriptor for a named property.Class<?> Convenience method to retrieve the bean class specified in the constructor.getPropertyValue(PropertyDescriptor propertyDescriptor, Bean bean) Convenience method for bean validators to get the property value for a property descriptor.getPropertyValue(String propertyName, Bean bean) Convenience method for bean validators to get the property value for a named property.booleanConvenience method for bean validators to check if a property is empty.voidsetBeanInitializer(BeanInitializer beanInitializer) Configures a bean initializer.voidsetBeanValidator(BeanValidator beanValidator) Configures a bean validator.voidsetCategorySortOrder(String... categories) Sets a sort order for property categories of this bean.voidsetCategorySortOrderOtherAtBottom(boolean categorySortOrderOtherAtBottom) If set to true, categories that are not present in those passed toInstall4JBeanInfo.setCategorySortOrder(String...)are displayed at the bottom of the property table.voidsetCollapsedPropertyCategories(String[] collapsedCategories) Specifies property categories that should be collapsed by default.voidsetCustomizerIcon(Icon customizerIcon) Configures the icon of the customizer tab.voidsetCustomizerPlacement(CustomizerPlacement customizerPlacement) Configures the placement of the customizer.voidsetDefaultConditionExpression(String defaultConditionExpression) Configures the default value for the "Condition expression" property of the bean.voidsetDefaultRollbackBarrier(boolean defaultRollbackBarrier) Configures if the action is a rollback barrier by default.voidsetDefaultRollbackBarrierExitCode(int defaultRollbackBarrierExitCode) Configures the default rollback barrier exit code.voidsetEnumerationMappers(EnumerationMapper[] enumerationMappers) Specifies enumeration mappers for properties of this bean.voidConfigures custom icons for the bean.voidsetMinimumJavaVersion(String minimumJavaVersion) Sets the minimum Java version that this bean will work with.voidsetNoticePanel(JComponent noticePanel) Sets a panel that is displayed as a notice at the top of the configuration panel.voidsetPersistenceDelegateMap(Map<? extends Class, ? extends PersistenceDelegate> persistenceDelegates) Specifies persistence delegates for this bean.voidsetPropertyConverters(PropertyConverter[] propertyConverters) Specifies property converters for properties of this bean.voidsetRequiredJpmsModules(String[] requiredJpmsModules) Sets a list of JPMS modules that this bean requires.voidsetSequenceValidator(SequenceValidator sequenceValidator) Configures a sequence validator.Methods inherited from class SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
-
Field Details
-
ATTRIBUTE_DEFAULT_VISIBILITY_SCRIPT
- See Also:
-
ATTRIBUTE_HIDE_VISIBILITY_SCRIPT
- See Also:
-
-
Constructor Details
-
FormComponentBeanInfo
public FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass) Same asInstall4JBeanInfo(String, String, String, boolean, boolean, Integer, Class, Class)withmultipleInstancesSupportedset totrueandinstalledFilesRequiredset tofalse. -
FormComponentBeanInfo
public FormComponentBeanInfo(String displayName, String shortDescription, String category, boolean multipleInstancesSupported, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass) Same asInstall4JBeanInfo(String, String, String, boolean, boolean, Integer, Class, Class)withinstalledFilesRequiredset tofalse. -
FormComponentBeanInfo
public FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass) Same asFormComponentBeanInfo(String, String, String, Integer, Class, Class)with a customizer class ofnull.
-
-
Method Details
-
setDefaultVisibilityScript
Configures the default value for the "Visibility script" property of the form component.- Parameters:
defaultVisibilityScript- the default value- See Also:
-
setHideVisibilityScript
public void setHideVisibilityScript(boolean hideVisibilityScript) Configures if the visibility script should be hidden in the install4j IDE. This is useful for form components that manage visibility on their own.- Parameters:
hideVisibilityScript- if the visibility script should be hidden- See Also:
-