# FormComponentBeanInfo

Import: `import com.install4j.api.beaninfo.FormComponentBeanInfo;`

```java
public class FormComponentBeanInfo extends Install4JBeanInfo
```

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.

## Inherited from

- [Install4JBeanInfo](Install4JBeanInfo.md) — 28 methods, 23 fields

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`setDefaultVisibilityScript(String)`](#setdefaultvisibilityscript-string) | `void` | Configures the default value for the "Visibility script" property of the form component. |
| [`setHideVisibilityScript(boolean)`](#sethidevisibilityscript-boolean) | `void` | Configures if the visibility script should be hidden in the install4j IDE. |

### setDefaultVisibilityScript(String)

```java
public void setDefaultVisibilityScript(String defaultVisibilityScript)
```

Configures the default value for the "Visibility script" property of the form component.


**Parameters:**

- `defaultVisibilityScript` — the default value

**See also:**

- [FormComponentBeanInfo.ATTRIBUTE_DEFAULT_VISIBILITY_SCRIPT](FormComponentBeanInfo.md#attribute-default-visibility-script)

### setHideVisibilityScript(boolean)

```java
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:**

- [FormComponentBeanInfo.ATTRIBUTE_HIDE_VISIBILITY_SCRIPT](FormComponentBeanInfo.md#attribute-hide-visibility-script)

## Constructors

| Signature | Description |
|---|---|
| [`FormComponentBeanInfo(String, String, String, Integer, Class<? extends FormComponent>, Class)`](#formcomponentbeaninfo-string-string-string-integer-class-extends-formcomponent-class) | Same as [`Install4JBeanInfo.Install4JBeanInfo`](Install4JBeanInfo.md#install4jbeaninfo-string-string-string-boolean-boolean-integer-class-extends-bean-class) with `multipleInstancesSupported` set to `true` and `installedFilesRequired` set to `false`. |
| [`FormComponentBeanInfo(String, String, String, boolean, Integer, Class<? extends FormComponent>, Class)`](#formcomponentbeaninfo-string-string-string-boolean-integer-class-extends-formcomponent-class) | Same as [`Install4JBeanInfo.Install4JBeanInfo`](Install4JBeanInfo.md#install4jbeaninfo-string-string-string-boolean-boolean-integer-class-extends-bean-class) with `installedFilesRequired` set to `false`. |
| [`FormComponentBeanInfo(String, String, String, Integer, Class<? extends FormComponent>)`](#formcomponentbeaninfo-string-string-string-integer-class-extends-formcomponent) | Same as [`FormComponentBeanInfo.FormComponentBeanInfo`](FormComponentBeanInfo.md#formcomponentbeaninfo-string-string-string-integer-class-extends-formcomponent-class) with a customizer class of `null`. |

### FormComponentBeanInfo(String, String, String, Integer, Class<? extends FormComponent>, Class)

```java
public FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass)
```

Same as [`Install4JBeanInfo.Install4JBeanInfo`](Install4JBeanInfo.md#install4jbeaninfo-string-string-string-boolean-boolean-integer-class-extends-bean-class) with
`multipleInstancesSupported` set to `true` and `installedFilesRequired` set to `false`.

### FormComponentBeanInfo(String, String, String, boolean, Integer, Class<? extends FormComponent>, Class)

```java
public FormComponentBeanInfo(String displayName, String shortDescription, String category, boolean multipleInstancesSupported, Integer sortKey, Class<? extends FormComponent> beanClass, Class customizerClass)
```

Same as [`Install4JBeanInfo.Install4JBeanInfo`](Install4JBeanInfo.md#install4jbeaninfo-string-string-string-boolean-boolean-integer-class-extends-bean-class) with
`installedFilesRequired` set to `false`.

### FormComponentBeanInfo(String, String, String, Integer, Class<? extends FormComponent>)

```java
public FormComponentBeanInfo(String displayName, String shortDescription, String category, Integer sortKey, Class<? extends FormComponent> beanClass)
```

Same as [`FormComponentBeanInfo.FormComponentBeanInfo`](FormComponentBeanInfo.md#formcomponentbeaninfo-string-string-string-integer-class-extends-formcomponent-class) with a customizer class of `null`.

## Fields

| Field | Type | Description |
|---|---|---|
| [ATTRIBUTE_DEFAULT_VISIBILITY_SCRIPT](#attribute-default-visibility-script) | `String` |  |
| [ATTRIBUTE_HIDE_VISIBILITY_SCRIPT](#attribute-hide-visibility-script) | `String` |  |

### ATTRIBUTE_DEFAULT_VISIBILITY_SCRIPT

```java
public static final String ATTRIBUTE_DEFAULT_VISIBILITY_SCRIPT = "defaultVisibilityScript"
```

### ATTRIBUTE_HIDE_VISIBILITY_SCRIPT

```java
public static final String ATTRIBUTE_HIDE_VISIBILITY_SCRIPT = "hideVisibilityScript"
```

