檢視原始碼 wxGridCellBoolEditor (wx v2.4.3)

用於布林資料的網格單元格編輯器。

參閱

此類別繼承自以下類別,並可使用其函式:

wxWidgets 文件: wxGridCellBoolEditor

摘要

函式

銷毀物件

如果給定的 value 等於我們目前使用的真值字串表示形式(請參閱 useStringValues/1),則傳回 true。

預設建構子。

此方法允許您自訂使用此編輯器的單元格,由 wxGridCellNumberEditor:getValue/1 所傳回的值。

型別

連結到此型別

wxGridCellBoolEditor()

檢視原始碼
-type wxGridCellBoolEditor() :: wx:wx_object().

函式

-spec destroy(This :: wxGridCellBoolEditor()) -> ok.

銷毀物件

-spec isTrueValue(Value) -> boolean() when Value :: unicode:chardata().

如果給定的 value 等於我們目前使用的真值字串表示形式(請參閱 useStringValues/1),則傳回 true。

-spec new() -> wxGridCellBoolEditor().

預設建構子。

-spec useStringValues() -> ok.

等同於 useStringValues([])

連結到此函式

useStringValues(Options)

檢視原始碼
-spec useStringValues([Option]) -> ok
                         when
                             Option ::
                                 {valueTrue, unicode:chardata()} | {valueFalse, unicode:chardata()}.

此方法允許您自訂使用此編輯器的單元格,由 wxGridCellNumberEditor:getValue/1 所傳回的值。

預設情況下,會使用參數的預設值,即如果選取單元格,則傳回 "1",否則傳回空字串。