# AbstractInstallerScreen

Import: `import com.install4j.api.screens.AbstractInstallerScreen;`

```java
public abstract class AbstractInstallerScreen extends AbstractBean implements InstallerScreen
```

Abstract base class for installer screens.
All methods that have a reasonable default answer are overridden in the class.
This class saves the installer context that is set by the framework and provides a getter for it.

## Inherited from

- [AbstractBean](../beans/AbstractBean.md) — 22 methods
- [InstallerScreen](InstallerScreen.md) — 1 methods
- [Screen](Screen.md) — 20 methods
- [VisualContainerBean](../beans/VisualContainerBean.md) — 3 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`setInstallerContext(InstallerContext)`](#setinstallercontext-installercontext) | `void` |  |
| [`setWidgetStyleHandler(WidgetStyleHandler)`](#setwidgetstylehandler-widgetstylehandler) | `void` |  |
| [`isNextVisible()`](#isnextvisible) | `boolean` |  |
| [`isPreviousVisible()`](#ispreviousvisible) | `boolean` |  |
| [`isCancelVisible()`](#iscancelvisible) | `boolean` |  |
| [`isHiddenForNext()`](#ishiddenfornext) | `boolean` |  |
| [`isHiddenForPrevious()`](#ishiddenforprevious) | `boolean` |  |
| [`activated()`](#activated) | `void` |  |
| [`deactivated()`](#deactivated) | `void` |  |
| [`next()`](#next) | `boolean` |  |
| [`previous()`](#previous) | `boolean` |  |
| [`cancel()`](#cancel) | `boolean` |  |
| [`willActivate()`](#willactivate) | `void` |  |
| [`getAnchor()`](#getanchor) | `Anchor` | Returns a default value for the anchor of the screen component. |
| [`isHidden()`](#ishidden) | `boolean` |  |
| [`handleUnattended()`](#handleunattended) | `boolean` |  |
| [`handleConsole(Console)`](#handleconsole-console) | `boolean` |  |
| [`getProgressInterface(ProgressInterface)`](#getprogressinterface-progressinterface) | `ProgressInterface` |  |
| [`isCreateLazily()`](#iscreatelazily) | `boolean` |  |
| [`getInstallerContext()`](#getinstallercontext) | `InstallerContext` | Returns the `InstallerContext` that the framework has associated with this custom screen in [`AbstractInstallerScreen.setInstallerContext`](AbstractInstallerScreen.md#setinstallercontext-installercontext). |
| [`getWidgetStyleHandler()`](#getwidgetstylehandler) | `WidgetStyleHandler` | Returns the `WidgetStyleHandler` that the framework has associated with this custom screen in [`AbstractInstallerScreen.setWidgetStyleHandler`](AbstractInstallerScreen.md#setwidgetstylehandler-widgetstylehandler). |

### setInstallerContext(InstallerContext)

```java
public void setInstallerContext(InstallerContext context)
```

### setWidgetStyleHandler(WidgetStyleHandler)

```java
public void setWidgetStyleHandler(WidgetStyleHandler widgetStyleHandler)
```

### isNextVisible()

```java
public boolean isNextVisible()
```

### isPreviousVisible()

```java
public boolean isPreviousVisible()
```

### isCancelVisible()

```java
public boolean isCancelVisible()
```

### isHiddenForNext()

```java
public boolean isHiddenForNext()
```

### isHiddenForPrevious()

```java
public boolean isHiddenForPrevious()
```

### activated()

```java
public void activated()
```

### deactivated()

```java
public void deactivated()
```

### next()

```java
public boolean next()
```

### previous()

```java
public boolean previous()
```

### cancel()

```java
public boolean cancel()
```

### willActivate()

```java
public void willActivate()
```

### getAnchor()

```java
public Anchor getAnchor()
```

Returns a default value for the anchor of the screen component.


**Returns:** [`Anchor.NORTHWEST`](../beans/Anchor.md#northwest)

**See also:**

- [VisualContainerBean.getAnchor](../beans/VisualContainerBean.md#getanchor)

### isHidden()

```java
public boolean isHidden()
```

### handleUnattended()

```java
public boolean handleUnattended()
```

### handleConsole(Console)

```java
public boolean handleConsole(Console console) throws UserCanceledException
```

### getProgressInterface(ProgressInterface)

```java
public ProgressInterface getProgressInterface(ProgressInterface defaultProgressInterface)
```

### isCreateLazily()

```java
public boolean isCreateLazily()
```

### getInstallerContext()

```java
public InstallerContext getInstallerContext()
```

Returns the `InstallerContext` that the framework has associated with
this custom screen in [`AbstractInstallerScreen.setInstallerContext`](AbstractInstallerScreen.md#setinstallercontext-installercontext).


**Returns:** the installer context.

### getWidgetStyleHandler()

```java
public WidgetStyleHandler getWidgetStyleHandler()
```

Returns the `WidgetStyleHandler` that the framework has associated with
this custom screen in [`AbstractInstallerScreen.setWidgetStyleHandler`](AbstractInstallerScreen.md#setwidgetstylehandler-widgetstylehandler).


**Returns:** the widget style handler

## Constructors

| Signature | Description |
|---|---|
| [`AbstractInstallerScreen()`](#abstractinstallerscreen) |  |

### AbstractInstallerScreen()

```java
public AbstractInstallerScreen()
```

