ChoiceFactoryOptions クラス
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. ChoiceFactoryOptions
- com.
public class ChoiceFactoryOptions
選択肢の一覧を表示するための書式設定オプションが含まれています。
フィールドの概要
| 修飾子と型 | フィールドと説明 |
|---|---|
| static final boolean | DEFAULT_INCLUDE_NUMBERS |
| static final java.lang.String | DEFAULT_INLINE_OR |
| static final java.lang.String | DEFAULT_INLINE_OR_MORE |
| static final java.lang.String | DEFAULT_INLINE_SEPERATOR |
コンストラクターの概要
| コンストラクター | 説明 |
|---|---|
| ChoiceFactoryOptions() |
既定のオプションを作成します。 |
| ChoiceFactoryOptions(ChoiceFactoryOptions options) |
別のオプション オブジェクトを複製し、必要に応じて既定値を適用します。 |
| ChoiceFactoryOptions(String withInlineSeparator, String withInlineOr, String withInlineOrMore) |
指定した書式設定値を使用してオプションを作成します。 |
| ChoiceFactoryOptions(String withInlineSeparator, String withInlineOr, String withInlineOrMore, boolean withIncludeNumbers) |
クラスの新しいインスタンスを初期化します。 |
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| java.lang.Boolean |
getIncludeNumbers()
インラインおよびリスト スタイルの選択肢の先頭に選択肢のインデックスを付けるかどうかを示す値を取得します。"1. |
| java.lang.String |
getInlineOr()
選択肢が 2 つしかない場合に、選択肢の間に挿入される区切り記号を取得します。 |
| java.lang.String |
getInlineOrMore()
2 つ以上の選択肢がある場合に、最後の 2 つの選択肢の間に挿入された区切り記号を取得します。 |
| java.lang.String |
getInlineSeparator()
2 つ以上の選択肢がある場合に個々の選択肢を区切るために使用される文字を取得します。 |
| void |
setIncludeNumbers(Boolean withIncludeNumbers)
インラインおよびリスト スタイルの選択肢の前に選択肢のインデックスを付けるかどうかを示す値を設定します。 |
| void |
setInlineOr(String withInlineOr)
選択肢が 2 つしかない場合に、選択肢の間に挿入される区切り記号を設定します。 |
| void |
setInlineOrMore(String withInlineOrMore)
2 つ以上の選択肢がある場合に、最後の 2 つの選択肢の間に挿入される区切り記号を設定します。 |
| void |
setInlineSeparator(String withSeperator)
2 つ以上の選択肢がある場合に、個々の選択肢を区切るために使用する文字を設定します。 |
メソッドの継承元: java.lang.Object
フィールドの詳細
DEFAULT_INCLUDE_NUMBERS
public static final boolean DEFAULT_INCLUDE_NUMBERS
DEFAULT_INLINE_OR
public static final String DEFAULT_INLINE_OR
DEFAULT_INLINE_OR_MORE
public static final String DEFAULT_INLINE_OR_MORE
DEFAULT_INLINE_SEPERATOR
public static final String DEFAULT_INLINE_SEPERATOR
コンストラクターの詳細
ChoiceFactoryOptions
public ChoiceFactoryOptions()
既定のオプションを作成します。
ChoiceFactoryOptions
public ChoiceFactoryOptions(ChoiceFactoryOptions options)
別のオプション オブジェクトを複製し、必要に応じて既定値を適用します。
パラメーター:
ChoiceFactoryOptions
public ChoiceFactoryOptions(String withInlineSeparator, String withInlineOr, String withInlineOrMore)
指定した書式設定値を使用してオプションを作成します。
パラメーター:
ChoiceFactoryOptions
public ChoiceFactoryOptions(String withInlineSeparator, String withInlineOr, String withInlineOrMore, boolean withIncludeNumbers)
クラスの新しいインスタンスを初期化します。 使用法の例については、ConfirmPrompt のコードを参照してください。
パラメーター:
メソッドの詳細
getIncludeNumbers
public Boolean getIncludeNumbers()
インラインおよびリスト スタイルの選択肢の先頭に選択肢のインデックスを付けるかどうかを示す値を取得します。"1. choice"。 false の場合、リスト スタイルでは代わりに箇条書きが使用されます。 既定値は true です。
戻り値:
getInlineOr
public String getInlineOr()
選択肢が 2 つしかない場合に、選択肢の間に挿入される区切り記号を取得します。 既定値は '" または "' です。 これは省略可能です。
戻り値:
getInlineOrMore
public String getInlineOrMore()
2 つ以上の選択肢がある場合に、最後の 2 つの選択肢の間に挿入された区切り記号を取得します。 既定値は '"、または "' です。 これは省略可能です。
戻り値:
getInlineSeparator
public String getInlineSeparator()
2 つ以上の選択肢がある場合に個々の選択肢を区切るために使用される文字を取得します。 既定値は '"、"'です。 これは省略可能です。
戻り値:
setIncludeNumbers
public void setIncludeNumbers(Boolean withIncludeNumbers)
インラインおよびリスト スタイルの選択肢の前に選択肢のインデックスを付けるかどうかを示す値を設定します。
パラメーター:
setInlineOr
public void setInlineOr(String withInlineOr)
選択肢が 2 つしかない場合に、選択肢の間に挿入される区切り記号を設定します。
パラメーター:
setInlineOrMore
public void setInlineOrMore(String withInlineOrMore)
2 つ以上の選択肢がある場合に、最後の 2 つの選択肢の間に挿入される区切り記号を設定します。
パラメーター:
setInlineSeparator
public void setInlineSeparator(String withSeperator)
2 つ以上の選択肢がある場合に、個々の選択肢を区切るために使用する文字を設定します。
パラメーター: