Package com.install4j.api.beaninfo
Class ScreenBeanInfo
- java.lang.Object
-
- java.beans.SimpleBeanInfo
-
- com.install4j.api.beaninfo.Install4JBeanInfo
-
- com.install4j.api.beaninfo.ScreenBeanInfo
-
- All Implemented Interfaces:
java.beans.BeanInfo
public class ScreenBeanInfo extends Install4JBeanInfo
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
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE_ASSOCIATED_ACTION
static java.lang.String
ATTRIBUTE_ASSOCIATED_ACTION_TARGET_SCREEN
static java.lang.String
ATTRIBUTE_DEFAULT_POST_ACTIVATION_SCRIPT
static java.lang.String
ATTRIBUTE_DEFAULT_PRE_ACTIVATION_SCRIPT
static java.lang.String
ATTRIBUTE_DEFAULT_QUIT_AFTER_SCREEN
static java.lang.String
ATTRIBUTE_DEFAULT_STYLE_NAME
static java.lang.String
ATTRIBUTE_FORM_COMPONENT_CUSTOMIZER_PLACEMENT
Deprecated.no longer used-
Fields inherited from class com.install4j.api.beaninfo.Install4JBeanInfo
ATTRIBUTE_BEAN_CATEGORY, ATTRIBUTE_BEAN_INITIALIZER, ATTRIBUTE_BEAN_VALIDATOR, ATTRIBUTE_CATEGORY_SORT_ORDER, 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_SEQUENCE_VALIDATOR, ATTRIBUTE_SORT_KEY
-
-
Constructor Summary
Constructors Constructor Description ScreenBeanInfo(java.lang.String displayName, java.lang.String shortDescription, java.lang.String category, boolean multipleInstancesSupported, boolean installedFilesRequired, java.lang.Integer sortKey, java.lang.Class<? extends Screen> beanClass)
ScreenBeanInfo(java.lang.String displayName, java.lang.String shortDescription, java.lang.String category, boolean multipleInstancesSupported, boolean installedFilesRequired, java.lang.Integer sortKey, java.lang.Class<? extends Screen> beanClass, java.lang.Class customizerClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setAssociatedAction(java.lang.String actionClassName, java.lang.String targetScreenClassName)
Configures an associated action.void
setDefaultPostActivationScript(java.lang.String defaultPostActivationScript)
Configures the default value for the "Post-activation script" property of the bean.void
setDefaultPreActivationScript(java.lang.String defaultPreActivationScript)
Configures the default value for the "Pre-activation script" property of the bean.void
setDefaultQuitAfterScreen(boolean defaultQuitAfterScreen)
Configures the default value of the "Quit after screen" property of the screen.void
setDefaultStyleName(java.lang.String defaultStyleName)
Sets a default style name.void
setFormComponentCustomizerPlacement(CustomizerPlacement customizerPlacement)
Deprecated.no longer used-
Methods inherited from class com.install4j.api.beaninfo.Install4JBeanInfo
addPropertyDescriptor, checkNotEmpty, checkNotEmpty, findPropertyDescriptor, getBeanClass, getBeanDescriptor, getPropertyDescriptors, getPropertyValue, getPropertyValue, isEmpty, setBeanInitializer, setBeanValidator, setCategorySortOrder, setCollapsedPropertyCategories, setCustomizerIcon, setCustomizerPlacement, setDefaultConditionExpression, setDefaultRollbackBarrier, setDefaultRollbackBarrierExitCode, setEnumerationMappers, setIcons, setMinimumJavaVersion, setNoticePanel, setPersistenceDelegateMap, setPropertyConverters, setSequenceValidator
-
-
-
-
Field Detail
-
ATTRIBUTE_DEFAULT_QUIT_AFTER_SCREEN
public static final java.lang.String ATTRIBUTE_DEFAULT_QUIT_AFTER_SCREEN
-
ATTRIBUTE_FORM_COMPONENT_CUSTOMIZER_PLACEMENT
@Deprecated public static final java.lang.String ATTRIBUTE_FORM_COMPONENT_CUSTOMIZER_PLACEMENT
Deprecated.no longer used- See Also:
- Constant Field Values
-
ATTRIBUTE_ASSOCIATED_ACTION
public static final java.lang.String ATTRIBUTE_ASSOCIATED_ACTION
-
ATTRIBUTE_ASSOCIATED_ACTION_TARGET_SCREEN
public static final java.lang.String ATTRIBUTE_ASSOCIATED_ACTION_TARGET_SCREEN
-
ATTRIBUTE_DEFAULT_STYLE_NAME
public static final java.lang.String ATTRIBUTE_DEFAULT_STYLE_NAME
- See Also:
setDefaultStyleName(String)
, Constant Field Values
-
ATTRIBUTE_DEFAULT_PRE_ACTIVATION_SCRIPT
public static final java.lang.String ATTRIBUTE_DEFAULT_PRE_ACTIVATION_SCRIPT
-
ATTRIBUTE_DEFAULT_POST_ACTIVATION_SCRIPT
public static final java.lang.String ATTRIBUTE_DEFAULT_POST_ACTIVATION_SCRIPT
-
-
Constructor Detail
-
ScreenBeanInfo
public ScreenBeanInfo(java.lang.String displayName, java.lang.String shortDescription, java.lang.String category, boolean multipleInstancesSupported, boolean installedFilesRequired, java.lang.Integer sortKey, java.lang.Class<? extends Screen> beanClass, java.lang.Class customizerClass)
-
ScreenBeanInfo
public ScreenBeanInfo(java.lang.String displayName, java.lang.String shortDescription, java.lang.String category, boolean multipleInstancesSupported, boolean installedFilesRequired, java.lang.Integer sortKey, java.lang.Class<? extends Screen> beanClass)
-
-
Method Detail
-
setDefaultQuitAfterScreen
public void setDefaultQuitAfterScreen(boolean defaultQuitAfterScreen)
Configures the default value of 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
public void setAssociatedAction(java.lang.String actionClassName, java.lang.String targetScreenClassName)
Configures an associated action. If set, and the user adds the action, the install4j GUI checks if an instance of the specified action is present in the list of configured actions on any screen. If not, it will remind the user to add such an action or propose to add the action immediately, depending on whethertargetScreenClassName
isnull
.- 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 cannot already be found on any screen.
-
setDefaultStyleName
public void setDefaultStyleName(java.lang.String defaultStyleName)
Sets a default style name. If set, the install4j GUI checks if a style with the corresponding name is available and sets that style for the screen.- Parameters:
defaultStyleName
- the default style name
-
setDefaultPreActivationScript
public void setDefaultPreActivationScript(java.lang.String defaultPreActivationScript)
Configures the default value for the "Pre-activation script" property of the bean.- Parameters:
defaultPreActivationScript
- the default value- See Also:
ATTRIBUTE_DEFAULT_PRE_ACTIVATION_SCRIPT
-
setDefaultPostActivationScript
public void setDefaultPostActivationScript(java.lang.String defaultPostActivationScript)
Configures the default value for the "Post-activation script" property of the bean.- Parameters:
defaultPostActivationScript
- the default value- See Also:
ATTRIBUTE_DEFAULT_POST_ACTIVATION_SCRIPT
-
-