# DefaultUnattendedProgressInterface

Import: `import com.install4j.api.context.DefaultUnattendedProgressInterface;`

```java
public class DefaultUnattendedProgressInterface implements UnattendedProgressInterface
```

Default implementation of [`UnattendedProgressInterface`](UnattendedProgressInterface.md).
You can override its methods to customize the default behavior.

## Inherited from

- [UnattendedProgressInterface](UnattendedProgressInterface.md) — 4 methods
- [ProgressInterface](ProgressInterface.md) — 13 methods, 7 fields

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`setVisible(boolean)`](#setvisible-boolean) | `void` | Default implementation for unattended mode that does nothing. |
| [`setCancelButtonEnabled(boolean)`](#setcancelbuttonenabled-boolean) | `void` | Default implementation for unattended mode that does nothing. |
| [`setCancelButtonVisible(boolean)`](#setcancelbuttonvisible-boolean) | `void` | Default implementation for unattended mode that does nothing. |
| [`setStatusMessage(String)`](#setstatusmessage-string) | `void` | Default implementation for unattended mode that does nothing. |
| [`setDetailMessage(String)`](#setdetailmessage-string) | `void` | Default implementation for unattended mode that does nothing. |
| [`setPercentCompleted(int)`](#setpercentcompleted-int) | `void` | Sets the completion percentage of the current action and saves it to a local variable. |
| [`getPercentCompleted()`](#getpercentcompleted) | `int` | Returns the last value set by [`setPercentCompleted`](DefaultUnattendedProgressInterface.md#setpercentcompleted-int). |
| [`setSecondaryPercentCompleted(int)`](#setsecondarypercentcompleted-int) | `void` |  |
| [`setIndeterminateProgress(boolean)`](#setindeterminateprogress-boolean) | `void` | Default implementation for unattended mode that does nothing. |
| [`showFailure(String)`](#showfailure-string) | `void` | Default implementation for unattended mode that does nothing. |
| [`askOverwrite(File)`](#askoverwrite-file) | `int` | Default implementation for unattended mode. |
| [`askRetry(File)`](#askretry-file) | `int` | Default implementation for unattended mode. |
| [`askContinue(File)`](#askcontinue-file) | `boolean` | Default implementation for unattended mode. |

### setVisible(boolean)

```java
public void setVisible(boolean visible)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `visible` — `true` at startup and `false` at exit

### setCancelButtonEnabled(boolean)

```java
public void setCancelButtonEnabled(boolean enabled)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `enabled` — `true` or `false`

### setCancelButtonVisible(boolean)

```java
public void setCancelButtonVisible(boolean visible)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `visible` — `true` or `false`

### setStatusMessage(String)

```java
public void setStatusMessage(String message)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `message` — the new message.

### setDetailMessage(String)

```java
public void setDetailMessage(String message)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `message` — the new message.

### setPercentCompleted(int)

```java
public void setPercentCompleted(int value)
```

Sets the completion percentage of the current action and saves it to a local variable.


**Parameters:**

- `value` — a value between 0 and 100.

### getPercentCompleted()

```java
public int getPercentCompleted()
```

Returns the last value set by [`setPercentCompleted`](DefaultUnattendedProgressInterface.md#setpercentcompleted-int).


**Returns:** the percentage of completion

### setSecondaryPercentCompleted(int)

```java
public void setSecondaryPercentCompleted(int value)
```

### setIndeterminateProgress(boolean)

```java
public void setIndeterminateProgress(boolean indeterminateProgress)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `indeterminateProgress` — `true` or `false`

### showFailure(String)

```java
public void showFailure(String message)
```

Default implementation for unattended mode that does nothing.


**Parameters:**

- `message` — the error message

### askOverwrite(File)

```java
public int askOverwrite(File file) throws UserCanceledException
```

Default implementation for unattended mode.


**Parameters:**

- `file` — the file in question.

**Returns:** always returns [`OVERWRITE_NO`](DefaultUnattendedProgressInterface.md#overwrite-no)

**Throws:**

- `UserCanceledException` — if the user cancels the operation

### askRetry(File)

```java
public int askRetry(File file) throws UserCanceledException
```

Default implementation for unattended mode.


**Parameters:**

- `file` — the file in question.

**Returns:** always returns [`RETRY_NO`](DefaultUnattendedProgressInterface.md#retry-no)

**Throws:**

- `UserCanceledException` — if the user cancels the operation

### askContinue(File)

```java
public boolean askContinue(File file) throws UserCanceledException
```

Default implementation for unattended mode.


**Parameters:**

- `file` — the file in question.

**Returns:** always returns `true`

**Throws:**

- `UserCanceledException` — if the user cancels the operation

## Constructors

| Signature | Description |
|---|---|
| [`DefaultUnattendedProgressInterface()`](#defaultunattendedprogressinterface) |  |

### DefaultUnattendedProgressInterface()

```java
public DefaultUnattendedProgressInterface()
```

