Interface NumInputFactory
- All Superinterfaces:
ComponentFactory<NumInputFactory>
數字輸入組件工廠,可用任意數字類型
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
NumInputFactory.NumberTypeFactory<T extends Number>
泛型數字輸入組件工廠 -
Method Summary
Modifier and TypeMethodDescriptiondisabled()
設置禁用messageInput
(String message) messageInvalidNumber
(String message) <T extends Number>
NumInputFactory.NumberTypeFactory<T>useNumberType
(Class<T> type) 綁定指定數字類型waitForInput
(long wait)
-
Method Details
-
label
- Parameters:
label
- 標題- Returns:
- this
-
useNumberType
綁定指定數字類型- Type Parameters:
T
- 數字類型- Parameters:
type
- 數字類型- Returns:
- 泛型數字輸入組件工廠
-
waitForInput
- Parameters:
wait
- 等待輸入時間 (ticks)- Returns:
- this
-
messageInput
- Parameters:
message
- 輸入時的訊息- Returns:
- this
-
messageInvalidNumber
- Parameters:
message
- 無效文字時的訊息- Returns:
- this
-
disabled
設置禁用- Returns:
- this
-