Class ScreenBeanInfo
java.lang.Object
java.beans.SimpleBeanInfo
com.install4j.api.beaninfo.Install4JBeanInfo
com.install4j.api.beaninfo.ScreenBeanInfo
- All Implemented Interfaces:
BeanInfo
Base class for screen 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.no longer usedFields 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
ConstructorsConstructorDescriptionScreenBeanInfo(String displayName, String shortDescription, String category, boolean multipleInstancesSupported, boolean installedFilesRequired, Integer sortKey, Class<? extends Screen> beanClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAssociatedAction(String actionClassName, String targetScreenClassName) Same assetAssociatedAction(String, String, boolean, String, ActionInitializer)with first set tofalse, conditionExpression set tonulland actionInitializer set tonull.voidsetAssociatedAction(String actionClassName, String targetScreenClassName, boolean addFirst, String conditionExpression, ActionInitializer actionInitializer) Configures an associated action.voidsetDefaultPostActivationScript(String defaultPostActivationScript) Configures the default value for the "Post-activation script" property of the bean.voidsetDefaultPreActivationScript(String defaultPreActivationScript) Configures the default value for the "Pre-activation script" property of the bean.voidsetDefaultQuitAfterScreen(boolean defaultQuitAfterScreen) Configures the default value for the "Quit after screen" property of the screen.voidsetDefaultStyleName(String defaultStyleName) Sets a default screen style name.voidsetFormComponentCustomizerPlacement(CustomizerPlacement customizerPlacement) Deprecated.no longer usedMethods 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_QUIT_AFTER_SCREEN
- See Also:
-
ATTRIBUTE_FORM_COMPONENT_CUSTOMIZER_PLACEMENT
Deprecated.no longer used- See Also:
-
ATTRIBUTE_ASSOCIATED_ACTION
- See Also:
-
ATTRIBUTE_ASSOCIATED_ACTION_TARGET_SCREEN
- See Also:
-
ATTRIBUTE_ASSOCIATED_ACTION_INSERT_FIRST
- See Also:
-
ATTRIBUTE_ASSOCIATED_ACTION_INITIALIZER
- See Also:
-
ATTRIBUTE_ASSOCIATED_ACTION_CONDITION_EXPRESSION
- See Also:
-
ATTRIBUTE_DEFAULT_STYLE_NAME
- See Also:
-
ATTRIBUTE_DEFAULT_PRE_ACTIVATION_SCRIPT
- See Also:
-
ATTRIBUTE_DEFAULT_POST_ACTIVATION_SCRIPT
- See Also:
-
-
Constructor Details
-
Method Details
-
setDefaultQuitAfterScreen
public void setDefaultQuitAfterScreen(boolean defaultQuitAfterScreen) Configures the default value for the "Quit after screen" property of the screen.- Parameters:
defaultQuitAfterScreen- the default value
-
setFormComponentCustomizerPlacement
@Deprecated public void setFormComponentCustomizerPlacement(CustomizerPlacement customizerPlacement) Deprecated.no longer used -
setAssociatedAction
Same assetAssociatedAction(String, String, boolean, String, ActionInitializer)with first set tofalse, conditionExpression set tonulland actionInitializer set tonull. -
setAssociatedAction
public void setAssociatedAction(String actionClassName, String targetScreenClassName, boolean addFirst, String conditionExpression, ActionInitializer actionInitializer) Configures an associated action. If set, and the user adds the screen, the install4j GUI checks if an instance of the specified action is present in the list of configured actions. IftargetScreenClassNameisnull, it will remind the user to add such an action to any other screen if it is not present on any screen. Otherwise, it will propose to add the action to the target screen if it is not already present there.- Parameters:
actionClassName- the class of the associated actiontargetScreenClassName- the target screen. If non-null, the install4j GUI will propose to add the associated action to the target screen if it is not already present on the target screen.addFirst- If targetScreenClassName is non-null, and the action is inserted, it will be inserted as the first actionconditionExpression- the condition expression for the added action, may benullactionInitializer- an initializer that configures the added action
-
setDefaultStyleName
Sets a default screen style name. If set, the install4j GUI checks if a style with the corresponding name is available and sets that screen style for the screen.- Parameters:
defaultStyleName- the default screen style name
-
setDefaultPreActivationScript
Configures the default value for the "Pre-activation script" property of the bean.- Parameters:
defaultPreActivationScript- the default value- See Also:
-
setDefaultPostActivationScript
Configures the default value for the "Post-activation script" property of the bean.- Parameters:
defaultPostActivationScript- the default value- See Also:
-