# 确认/取消界面

## 调用方法

```java
InventoryManager.presetPage(ViewType.OK_CANCEL);
```

## 介绍

这个预设界面适用于确认和取消的场景。

## **界面特性**

| **属性**              | 介绍           | 值               |
| ------------------- | ------------ | --------------- |
| isPageButtonEnabled | 是否开启翻页       | False           |
| autoAddPage         | 是否自动增加页面     | False           |
| isLastLineDisabled  | 最后一行是否禁用添加物品 | True            |
| backGroundColor     | 背景色          | BackGround.GRAY |
| middleButton        | 中间的按钮        | null            |
| pageNumber          | 预设页          | 0               |
| isOkCancelEnabled   | 是否开启确认/取消按钮  | True            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wisdomme.gitbook.io/ultitools/details/preset-page/ok-cancel-view.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
