Documentation
¶
Overview ¶
Package adapter 数据适配器.
Index ¶
- type AdapterListView
- func (a *AdapterListView) AddRef() int32
- func (a *AdapterListView) DeleteAll() *AdapterListView
- func (a *AdapterListView) DeleteAllGroup() *AdapterListView
- func (a *AdapterListView) DeleteAllItem() *AdapterListView
- func (a *AdapterListView) DeleteColumnGroup(iColumn int32) *AdapterListView
- func (a *AdapterListView) DeleteColumnItem(iColumn int32) *AdapterListView
- func (a *AdapterListView) Destroy() *adapter
- func (a *AdapterListView) EnableAutoDestroy(bEnable bool) *adapter
- func (a *AdapterListView) GetRefCount() int32
- func (a *AdapterListView) Group_AddColumn(pName string) int32
- func (a *AdapterListView) Group_AddItemImage(hImage int, iPos int32) int32
- func (a *AdapterListView) Group_AddItemImageEx(pName string, hImage int, iPos int32) int32
- func (a *AdapterListView) Group_AddItemText(pValue string, iPos int32) int32
- func (a *AdapterListView) Group_AddItemTextEx(pName string, pValue string, iPos int32) int32
- func (a *AdapterListView) Group_DeleteAllChildItem(iGroup int32) *AdapterListView
- func (a *AdapterListView) Group_DeleteItem(iGroup int32) bool
- func (a *AdapterListView) Group_GetCount() int32
- func (a *AdapterListView) Group_GetImage(iGroup, iColumn int32) int
- func (a *AdapterListView) Group_GetImageEx(iGroup int32, pName string) int
- func (a *AdapterListView) Group_GetText(iGroup, iColumn int32) string
- func (a *AdapterListView) Group_GetTextEx(iGroup int32, pName string) string
- func (a *AdapterListView) Group_SetImage(iGroup, iColumn int32, hImage int) bool
- func (a *AdapterListView) Group_SetImageEx(iGroup int32, pName string, hImage int) bool
- func (a *AdapterListView) Group_SetText(iGroup, iColumn int32, pValue string) bool
- func (a *AdapterListView) Group_SetTextEx(iGroup int32, pName string, pValue string) bool
- func (a *AdapterListView) Item_AddColumn(pName string) int32
- func (a *AdapterListView) Item_AddItemImage(iGroup int32, hImage int, iPos int32) int32
- func (a *AdapterListView) Item_AddItemImageEx(iGroup int32, pName string, hImage int, iPos int32) int32
- func (a *AdapterListView) Item_AddItemText(iGroup int32, pValue string, iPos int32) int32
- func (a *AdapterListView) Item_AddItemTextEx(iGroup int32, pName string, pValue string, iPos int32) int32
- func (a *AdapterListView) Item_DeleteItem(iGroup, iItem int32) bool
- func (a *AdapterListView) Item_GetCount(iGroup int32) int32
- func (a *AdapterListView) Item_GetImage(iGroup, iItem int32, pName string) int
- func (a *AdapterListView) Item_GetImageEx(iGroup, iItem int32, pName string) int
- func (a *AdapterListView) Item_GetText(iGroup, iItem, iColumn int32) string
- func (a *AdapterListView) Item_GetTextEx(iGroup, iItem int32, pName string) string
- func (a *AdapterListView) Item_SetImage(iGroup, iItem, iColumn int32, hImage int) bool
- func (a *AdapterListView) Item_SetImageEx(iGroup, iItem int32, pName string, hImage int) bool
- func (a *AdapterListView) Item_SetText(iGroup, iItem, iColumn int32, pValue string) bool
- func (a *AdapterListView) Item_SetTextEx(iGroup, iItem int32, pName string, pValue string) bool
- func (a *AdapterListView) Release() int32
- type AdapterMap
- func (a *AdapterMap) AddItemImage(pName string, hImage int) bool
- func (a *AdapterMap) AddItemText(pName string, pValue string) bool
- func (a *AdapterMap) AddRef() int32
- func (a *AdapterMap) DeleteItem(pName string) bool
- func (a *AdapterMap) Destroy() *adapter
- func (a *AdapterMap) EnableAutoDestroy(bEnable bool) *adapter
- func (a *AdapterMap) GetCount() int32
- func (a *AdapterMap) GetItemImage(pName string) int
- func (a *AdapterMap) GetItemText(pName string) string
- func (a *AdapterMap) GetRefCount() int32
- func (a *AdapterMap) Release() int32
- func (a *AdapterMap) SetItemImage(pName string, hImage int) bool
- func (a *AdapterMap) SetItemText(pName string, pValue string) bool
- type AdapterTable
- func (a *AdapterTable) AddColumn(pName string) int32
- func (a *AdapterTable) AddItemImage(hImage int) int32
- func (a *AdapterTable) AddItemImageEx(pName string, hImage int) int32
- func (a *AdapterTable) AddItemText(pValue string) int32
- func (a *AdapterTable) AddItemTextEx(pName string, pValue string) int32
- func (a *AdapterTable) AddRef() int32
- func (a *AdapterTable) AddRowImage(hImage int) int32
- func (a *AdapterTable) AddRowImageEx(pName string, hImage int) int32
- func (a *AdapterTable) AddRowText(pValue string) int32
- func (a *AdapterTable) AddRowTextEx(pName string, pValue string) int32
- func (a *AdapterTable) DeleteColumnAll() *AdapterTable
- func (a *AdapterTable) DeleteItem(iRow int32) bool
- func (a *AdapterTable) DeleteItemAll() *AdapterTable
- func (a *AdapterTable) DeleteItemEx(iRow, nCount int32) bool
- func (a *AdapterTable) DeleteRow(iRow int32) bool
- func (a *AdapterTable) DeleteRowAll() *AdapterTable
- func (a *AdapterTable) DeleteRowEx(iRow, nCount int32) bool
- func (a *AdapterTable) Destroy() *adapter
- func (a *AdapterTable) EnableAutoDestroy(bEnable bool) *adapter
- func (a *AdapterTable) GetCount() int32
- func (a *AdapterTable) GetCountColumn() int32
- func (a *AdapterTable) GetCountRow() int32
- func (a *AdapterTable) GetItemDataType(iItem, iColumn int32) xcc.Adapter_Date_Type_
- func (a *AdapterTable) GetItemDataTypeEx(iItem int32, pName string) xcc.Adapter_Date_Type_
- func (a *AdapterTable) GetItemFloat(iItem, iColumn int32, pOutValue *float32) bool
- func (a *AdapterTable) GetItemFloatEx(iItem int32, pName string, pOutValue *float32) bool
- func (a *AdapterTable) GetItemImage(iItem, iColumn int32) int
- func (a *AdapterTable) GetItemImageEx(iItem int32, pName string) int
- func (a *AdapterTable) GetItemInt(iItem, iColumn int32, pOutValue *int32) bool
- func (a *AdapterTable) GetItemIntEx(iItem int32, pName string, pOutValue *int32) bool
- func (a *AdapterTable) GetItemText(iItem, iColumn int32) string
- func (a *AdapterTable) GetItemTextEx(iItem int32, pName string) string
- func (a *AdapterTable) GetRefCount() int32
- func (a *AdapterTable) InsertItemImage(iItem int32, hImage int) int32
- func (a *AdapterTable) InsertItemImageEx(iItem int32, pName string, hImage int) int32
- func (a *AdapterTable) InsertItemText(iItem int32, pValue string) int32
- func (a *AdapterTable) InsertItemTextEx(iItem int32, pName string, pValue string) int32
- func (a *AdapterTable) InsertRowImage(iRow int32, hImage int) int32
- func (a *AdapterTable) InsertRowImageEx(iRow int32, pName string, hImage int) int32
- func (a *AdapterTable) InsertRowText(iRow int32, pValue string) int32
- func (a *AdapterTable) InsertRowTextEx(iRow int32, pName string, pValue string) int32
- func (a *AdapterTable) Release() int32
- func (a *AdapterTable) SetColumn(pColName string) int32
- func (a *AdapterTable) SetItemFloat(iItem, iColumn int32, fValue float32) bool
- func (a *AdapterTable) SetItemFloatEx(iItem int32, pName string, fValue float32) bool
- func (a *AdapterTable) SetItemImage(iItem, iColumn int32, hImage int) bool
- func (a *AdapterTable) SetItemImageEx(iItem int32, pName string, hImage int) bool
- func (a *AdapterTable) SetItemInt(iItem, iColumn int32, nValue int32) bool
- func (a *AdapterTable) SetItemIntEx(iItem int32, pName string, nValue int32) bool
- func (a *AdapterTable) SetItemText(iItem, iColumn int32, pValue string) bool
- func (a *AdapterTable) SetItemTextEx(iItem int32, pName string, pValue string) bool
- func (a *AdapterTable) Sort(iColumn int32, bAscending bool) *AdapterTable
- type AdapterTree
- func (a *AdapterTree) AddColumn(pName string) int32
- func (a *AdapterTree) AddRef() int32
- func (a *AdapterTree) DeleteColumnAll() *AdapterTree
- func (a *AdapterTree) DeleteItem(nID int32) bool
- func (a *AdapterTree) DeleteItemAll() *AdapterTree
- func (a *AdapterTree) Destroy() *adapter
- func (a *AdapterTree) EnableAutoDestroy(bEnable bool) *adapter
- func (a *AdapterTree) GetCount() int32
- func (a *AdapterTree) GetCountColumn() int32
- func (a *AdapterTree) GetItemImage(nID, iColumn int32) int
- func (a *AdapterTree) GetItemImageEx(nID int32, pName string) int
- func (a *AdapterTree) GetItemText(nID, iColumn int32) string
- func (a *AdapterTree) GetItemTextEx(nID int32, pName string) string
- func (a *AdapterTree) GetRefCount() int32
- func (a *AdapterTree) InsertItemImage(hImage int, nParentID, insertID int32) int32
- func (a *AdapterTree) InsertItemImageEx(pName string, hImage int, nParentID, insertID int32) int32
- func (a *AdapterTree) InsertItemText(pValue string, nParentID, insertID int32) int32
- func (a *AdapterTree) InsertItemTextEx(pName string, pValue string, nParentID, insertID int32) int32
- func (a *AdapterTree) Release() int32
- func (a *AdapterTree) SetColumn(pColName string) int32
- func (a *AdapterTree) SetItemImage(nID, iColumn int32, hImage int) bool
- func (a *AdapterTree) SetItemImageEx(nID int32, pName string, hImage int) bool
- func (a *AdapterTree) SetItemText(nID, iColumn int32, pValue string) bool
- func (a *AdapterTree) SetItemTextEx(nID int32, pName string, pValue string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterListView ¶
type AdapterListView struct {
// contains filtered or unexported fields
}
AdapterListView 数据适配器-列表视元素.
func NewAdapterListViewByHandle ¶ added in v1.0.1
func NewAdapterListViewByHandle(handle int) *AdapterListView
从句柄创建对象.
func (*AdapterListView) AddRef ¶ added in v0.0.3
func (a *AdapterListView) AddRef() int32
数据适配器_增加引用计数.
func (*AdapterListView) DeleteAll ¶
func (a *AdapterListView) DeleteAll() *AdapterListView
数据适配器列表视_删除全部, 删除所有(组,项,列).
func (*AdapterListView) DeleteAllGroup ¶
func (a *AdapterListView) DeleteAllGroup() *AdapterListView
数据适配器列表视_删除全部组, 删除所有的组.
func (*AdapterListView) DeleteAllItem ¶
func (a *AdapterListView) DeleteAllItem() *AdapterListView
数据适配器列表视_删除全部项, 删除所有的项.
func (*AdapterListView) DeleteColumnGroup ¶
func (a *AdapterListView) DeleteColumnGroup(iColumn int32) *AdapterListView
数据适配器列表视_组删除列, 删除组的列.
iColumn: 列索引.
func (*AdapterListView) DeleteColumnItem ¶
func (a *AdapterListView) DeleteColumnItem(iColumn int32) *AdapterListView
数据适配器列表视_项删除列, 删除项的列.
iColumn: 列索引.
func (*AdapterListView) Destroy ¶ added in v0.0.3
func (a *AdapterListView) Destroy() *adapter
数据适配器_销毁.
func (*AdapterListView) EnableAutoDestroy ¶ added in v0.0.3
func (a *AdapterListView) EnableAutoDestroy(bEnable bool) *adapter
数据适配器_启用自动销毁.
bEnable: 是否启用.
func (*AdapterListView) GetRefCount ¶ added in v0.0.3
func (a *AdapterListView) GetRefCount() int32
数据适配器_取引用计数.
func (*AdapterListView) Group_AddColumn ¶
func (a *AdapterListView) Group_AddColumn(pName string) int32
数据适配器列表视_组添加列, 组操作, 添加数据列, 返回列索引.
pName: 字段称.
func (*AdapterListView) Group_AddItemImage ¶
func (a *AdapterListView) Group_AddItemImage(hImage int, iPos int32) int32
数据适配器列表视_添加组图片, 组操作, 添加组, 数据默认填充第一列.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemImageEx ¶
func (a *AdapterListView) Group_AddItemImageEx(pName string, hImage int, iPos int32) int32
数据适配器列表视_添加组图片扩展, 组操作, 添加组, 数据填充指定列.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemText ¶
func (a *AdapterListView) Group_AddItemText(pValue string, iPos int32) int32
数据适配器列表视_添加组文本, 组操作, 添加组, 数据默认填充到第一列, 返回组索引.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_AddItemTextEx ¶
func (a *AdapterListView) Group_AddItemTextEx(pName string, pValue string, iPos int32) int32
数据适配器列表视_添加组文本扩展, 组操作, 添加组, 数据填充指定列, 返回组索引.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Group_DeleteAllChildItem ¶
func (a *AdapterListView) Group_DeleteAllChildItem(iGroup int32) *AdapterListView
数据适配器列表视_删除全部子项, 删除指定组的所有子项.
iGroup: 组索引.
func (*AdapterListView) Group_DeleteItem ¶
func (a *AdapterListView) Group_DeleteItem(iGroup int32) bool
数据适配器列表视_组删除项, 删除组, 自动删除子项.
iGroup: 组索引.
func (*AdapterListView) Group_GetCount ¶
func (a *AdapterListView) Group_GetCount() int32
数据适配器列表视_取组数量, 组操作, 获取组数量.
func (*AdapterListView) Group_GetImage ¶ added in v1.3.340
func (a *AdapterListView) Group_GetImage(iGroup, iColumn int32) int
数据适配器列表视_组取图片, 返回图片句柄.
iGroup: 组索引.
iColumn: 列索引.
func (*AdapterListView) Group_GetImageEx ¶ added in v1.3.340
func (a *AdapterListView) Group_GetImageEx(iGroup int32, pName string) int
数据适配器列表视_组取图片扩展, 返回图片句柄.
iGroup: 组索引.
pName: 字段名称.
func (*AdapterListView) Group_GetText ¶ added in v1.3.340
func (a *AdapterListView) Group_GetText(iGroup, iColumn int32) string
数据适配器列表视_组取文本, 返回文本内容.
iGroup: 组索引.
iColumn: 列索引.
func (*AdapterListView) Group_GetTextEx ¶ added in v1.3.340
func (a *AdapterListView) Group_GetTextEx(iGroup int32, pName string) string
数据适配器列表视_组取文本扩展, 返回文本内容.
iGroup: 组索引.
pName: 字段名称.
func (*AdapterListView) Group_SetImage ¶
func (a *AdapterListView) Group_SetImage(iGroup, iColumn int32, hImage int) bool
数据适配器列表视_组设置图片, 组操作, 设置指定项数据.
iGroup: 组索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterListView) Group_SetImageEx ¶
func (a *AdapterListView) Group_SetImageEx(iGroup int32, pName string, hImage int) bool
数据适配器列表视_组设置图片扩展, 组操作, 设置指定项数据.
iGroup: 组索引.
pName: 字段名.
hImage: 图片句柄.
func (*AdapterListView) Group_SetText ¶
func (a *AdapterListView) Group_SetText(iGroup, iColumn int32, pValue string) bool
数据适配器列表视_组设置文本, 组操作, 设置指定项数据.
iGroup: 组索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterListView) Group_SetTextEx ¶
func (a *AdapterListView) Group_SetTextEx(iGroup int32, pName string, pValue string) bool
数据适配器列表视_组设置文本扩展, 组操作, 设置指定项数据.
iGroup: 组索引.
pName: 字段名.
pValue: 值.
func (*AdapterListView) Item_AddColumn ¶
func (a *AdapterListView) Item_AddColumn(pName string) int32
数据适配器列表视_项添加列, 项操作, 添加列.
pName: 字段称.
func (*AdapterListView) Item_AddItemImage ¶
func (a *AdapterListView) Item_AddItemImage(iGroup int32, hImage int, iPos int32) int32
数据适配器列表视_添加项图片, 项操作, 添加项.
iGroup: 组索引.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemImageEx ¶
func (a *AdapterListView) Item_AddItemImageEx(iGroup int32, pName string, hImage int, iPos int32) int32
数据适配器列表视_添加项图片扩展, 项操作, 添加项, 填充指定列数据.
iGroup: 组索引.
pName: 字段称.
hImage: 图片句柄.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemText ¶
func (a *AdapterListView) Item_AddItemText(iGroup int32, pValue string, iPos int32) int32
数据适配器列表视_添加项文本, 项操作, 添加项.
iGroup: 组索引.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_AddItemTextEx ¶
func (a *AdapterListView) Item_AddItemTextEx(iGroup int32, pName string, pValue string, iPos int32) int32
数据适配器列表视_添加项文本扩展, 项操作, 添加项, 数据填充指定列.
iGroup: 组索引.
pName: 字段称.
pValue: 值.
iPos: 插入位置, 可为-1.
func (*AdapterListView) Item_DeleteItem ¶
func (a *AdapterListView) Item_DeleteItem(iGroup, iItem int32) bool
数据适配器列表视_删除项, 删除项.
iGroup: 组索引.
iItem: 项索引.
func (*AdapterListView) Item_GetCount ¶
func (a *AdapterListView) Item_GetCount(iGroup int32) int32
数据适配器列表视_取组中项数量, 项操作, 获取指定组中项数量.
iGroup: 组索引.
func (*AdapterListView) Item_GetImage ¶ added in v1.3.340
func (a *AdapterListView) Item_GetImage(iGroup, iItem int32, pName string) int
数据适配器列表视_项取图片. 项操作, 返回项图片句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段名称.
func (*AdapterListView) Item_GetImageEx ¶
func (a *AdapterListView) Item_GetImageEx(iGroup, iItem int32, pName string) int
数据适配器列表视_项获取图片扩展, 项操作, 获取项图片句柄.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func (*AdapterListView) Item_GetText ¶ added in v1.3.340
func (a *AdapterListView) Item_GetText(iGroup, iItem, iColumn int32) string
数据适配器列表视_项取文本. 项操作, 返回项文本内容.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterListView) Item_GetTextEx ¶
func (a *AdapterListView) Item_GetTextEx(iGroup, iItem int32, pName string) string
数据适配器列表视_项获取文本扩展, 项操作, 获取项文本内容.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
func (*AdapterListView) Item_SetImage ¶
func (a *AdapterListView) Item_SetImage(iGroup, iItem, iColumn int32, hImage int) bool
数据适配器列表视_项置图片, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterListView) Item_SetImageEx ¶
func (a *AdapterListView) Item_SetImageEx(iGroup, iItem int32, pName string, hImage int) bool
数据适配器列表视_项置图片扩展, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterListView) Item_SetText ¶
func (a *AdapterListView) Item_SetText(iGroup, iItem, iColumn int32, pValue string) bool
数据适配器列表视_项置文本, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterListView) Item_SetTextEx ¶
func (a *AdapterListView) Item_SetTextEx(iGroup, iItem int32, pName string, pValue string) bool
数据适配器列表视_项置文本扩展, 项操作, 数据填充指定列.
iGroup: 组索引.
iItem: 项索引.
pName: 字段称.
pValue: 值.
type AdapterMap ¶
type AdapterMap struct {
// contains filtered or unexported fields
}
AdapterMap 数据适配器-单列Map-列表头(listHeader).
func NewAdapterMapByHandle ¶ added in v1.0.1
func NewAdapterMapByHandle(handle int) *AdapterMap
从句柄创建对象.
func (*AdapterMap) AddItemImage ¶
func (a *AdapterMap) AddItemImage(pName string, hImage int) bool
数据适配器MAP_添加项图片, 增加数据项.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterMap) AddItemText ¶
func (a *AdapterMap) AddItemText(pName string, pValue string) bool
数据适配器MAP_添加项文本, 增加数据项.
pName: 字段称.
pValue: 值.
func (*AdapterMap) DeleteItem ¶
func (a *AdapterMap) DeleteItem(pName string) bool
数据适配器MAP_删除项, 删除数据项.
pName: 字段称.
func (*AdapterMap) EnableAutoDestroy ¶ added in v0.0.3
func (a *AdapterMap) EnableAutoDestroy(bEnable bool) *adapter
数据适配器_启用自动销毁.
bEnable: 是否启用.
func (*AdapterMap) GetItemImage ¶
func (a *AdapterMap) GetItemImage(pName string) int
数据适配器MAP_取项图片, 获取项内容, 如果内容为图片句柄, 返回图片句柄.
pName: 字段称.
func (*AdapterMap) GetItemText ¶
func (a *AdapterMap) GetItemText(pName string) string
数据适配器MAP_取项文本, 获取项内容, 如果内容为文本.
pName: 字段称.
func (*AdapterMap) GetRefCount ¶ added in v0.0.3
func (a *AdapterMap) GetRefCount() int32
数据适配器_取引用计数.
func (*AdapterMap) SetItemImage ¶
func (a *AdapterMap) SetItemImage(pName string, hImage int) bool
数据适配器MAP_置项图片, 设置项内容.
pName: 字段称.
hImage: 值.
func (*AdapterMap) SetItemText ¶
func (a *AdapterMap) SetItemText(pName string, pValue string) bool
数据适配器MAP_置项文本, 设置项内容.
pName: 字段称.
pValue: 值.
type AdapterTable ¶
type AdapterTable struct {
// contains filtered or unexported fields
}
AdapterTable 数据适配器-XList-XListBox.
func NewAdapterTableByHandle ¶ added in v1.0.1
func NewAdapterTableByHandle(handle int) *AdapterTable
从句柄创建对象.
func (*AdapterTable) AddColumn ¶
func (a *AdapterTable) AddColumn(pName string) int32
数据适配器表_添加列, 添加数据列.
pName: 字段称.
func (*AdapterTable) AddItemImage ¶
func (a *AdapterTable) AddItemImage(hImage int) int32
Deprecated
!这是旧版函数, 请使用 AddRowImage
func (*AdapterTable) AddItemImageEx ¶
func (a *AdapterTable) AddItemImageEx(pName string, hImage int) int32
Deprecated
!这是旧版函数, 请使用 AddRowImageEx
func (*AdapterTable) AddItemText ¶
func (a *AdapterTable) AddItemText(pValue string) int32
Deprecated
!这是旧版函数, 请使用 AddRowText
func (*AdapterTable) AddItemTextEx ¶
func (a *AdapterTable) AddItemTextEx(pName string, pValue string) int32
Deprecated
!这是旧版函数, 请使用 AddRowTextEx
func (*AdapterTable) AddRowImage ¶ added in v1.3.390
func (a *AdapterTable) AddRowImage(hImage int) int32
数据适配器表_添加行图片, 添加数据行, 默认值放到第一列, 返回行索引值.
hImage: 图片句柄.
func (*AdapterTable) AddRowImageEx ¶ added in v1.3.390
func (a *AdapterTable) AddRowImageEx(pName string, hImage int) int32
数据适配器表_添加行图片扩展, 添加数据行, 并填充指定列数据.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) AddRowText ¶ added in v1.3.390
func (a *AdapterTable) AddRowText(pValue string) int32
数据适配器表_添加行文本, 添加数据行, 默认值放到第一列, 返回行索引值.
pValue: 值.
func (*AdapterTable) AddRowTextEx ¶ added in v1.3.390
func (a *AdapterTable) AddRowTextEx(pName string, pValue string) int32
数据适配器表_添加行文本扩展, 添加数据行, 填充指定列数据, 返回行索引.
pName: 字段称.
pValue: 值.
func (*AdapterTable) DeleteColumnAll ¶
func (a *AdapterTable) DeleteColumnAll() *AdapterTable
数据适配器表_删除列全部, 删除所有列, 并且清空所有数据.
func (*AdapterTable) DeleteItem ¶
func (a *AdapterTable) DeleteItem(iRow int32) bool
Deprecated
!这是旧版函数, 请使用 DeleteRow
func (*AdapterTable) DeleteItemAll ¶
func (a *AdapterTable) DeleteItemAll() *AdapterTable
Deprecated
!这是旧版函数, 请使用 DeleteRowAll
func (*AdapterTable) DeleteItemEx ¶
func (a *AdapterTable) DeleteItemEx(iRow, nCount int32) bool
Deprecated
!这是旧版函数, 请使用 DeleteRowEx
func (*AdapterTable) DeleteRow ¶ added in v1.3.390
func (a *AdapterTable) DeleteRow(iRow int32) bool
数据适配器表_删除行.
iRow: 行索引.
func (*AdapterTable) DeleteRowAll ¶ added in v1.3.390
func (a *AdapterTable) DeleteRowAll() *AdapterTable
数据适配器表_删除行全部, 删除所有行.
func (*AdapterTable) DeleteRowEx ¶ added in v1.3.390
func (a *AdapterTable) DeleteRowEx(iRow, nCount int32) bool
数据适配器表_删除行扩展, 删除多个行.
iRow: 行起始索引.
nCount: 删除行数量.
func (*AdapterTable) EnableAutoDestroy ¶ added in v0.0.3
func (a *AdapterTable) EnableAutoDestroy(bEnable bool) *adapter
数据适配器_启用自动销毁.
bEnable: 是否启用.
func (*AdapterTable) GetCount ¶
func (a *AdapterTable) GetCount() int32
Deprecated
!这是旧版函数, 请使用 GetCountRow
func (*AdapterTable) GetCountColumn ¶
func (a *AdapterTable) GetCountColumn() int32
数据适配器表_取列数量, 获取列数量.
func (*AdapterTable) GetCountRow ¶ added in v1.3.390
func (a *AdapterTable) GetCountRow() int32
数据适配器表_取行数量, 获取行数量.
func (*AdapterTable) GetItemDataType ¶
func (a *AdapterTable) GetItemDataType(iItem, iColumn int32) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型, 获取项数据类型, 返回: Adapter_Date_Type_.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemDataTypeEx ¶
func (a *AdapterTable) GetItemDataTypeEx(iItem int32, pName string) xcc.Adapter_Date_Type_
数据适配器表_取项数据类型扩展, 返回: Adapter_Date_Type_.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) GetItemFloat ¶
func (a *AdapterTable) GetItemFloat(iItem, iColumn int32, pOutValue *float32) bool
数据适配器表_取项浮点值, 获取项值.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemFloatEx ¶
func (a *AdapterTable) GetItemFloatEx(iItem int32, pName string, pOutValue *float32) bool
数据适配器表_取项浮点值扩展, 获取项值.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemImage ¶
func (a *AdapterTable) GetItemImage(iItem, iColumn int32) int
数据适配器表_取项图片, 获取项图片句柄.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemImageEx ¶
func (a *AdapterTable) GetItemImageEx(iItem int32, pName string) int
数据适配器表_取项图片扩展, 获取项图片句柄.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) GetItemInt ¶
func (a *AdapterTable) GetItemInt(iItem, iColumn int32, pOutValue *int32) bool
数据适配器表_取项整数值, 获取项值.
iItem: 项索引.
iColumn: 列索引.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemIntEx ¶
func (a *AdapterTable) GetItemIntEx(iItem int32, pName string, pOutValue *int32) bool
数据适配器表_取项整数值扩展, 获取项值.
iItem: 项索引.
pName: 字段称.
pOutValue: 接收返还值.
func (*AdapterTable) GetItemText ¶
func (a *AdapterTable) GetItemText(iItem, iColumn int32) string
数据适配器表_取项文本, 获取项文本内容.
iItem: 项索引.
iColumn: 列索引.
func (*AdapterTable) GetItemTextEx ¶
func (a *AdapterTable) GetItemTextEx(iItem int32, pName string) string
数据适配器表_取项文本扩展, 获取项文本内容.
iItem: 项索引.
pName: 字段称.
func (*AdapterTable) GetRefCount ¶ added in v0.0.3
func (a *AdapterTable) GetRefCount() int32
数据适配器_取引用计数.
func (*AdapterTable) InsertItemImage ¶
func (a *AdapterTable) InsertItemImage(iItem int32, hImage int) int32
Deprecated
!这是旧版函数, 请使用 InsertRowImage
func (*AdapterTable) InsertItemImageEx ¶
func (a *AdapterTable) InsertItemImageEx(iItem int32, pName string, hImage int) int32
Deprecated
!这是旧版函数, 请使用 InsertRowImageEx
func (*AdapterTable) InsertItemText ¶
func (a *AdapterTable) InsertItemText(iItem int32, pValue string) int32
Deprecated
!这是旧版函数, 请使用 InsertRowText
func (*AdapterTable) InsertItemTextEx ¶
func (a *AdapterTable) InsertItemTextEx(iItem int32, pName string, pValue string) int32
Deprecated
!这是旧版函数, 请使用 InsertRowTextEx
func (*AdapterTable) InsertRowImage ¶ added in v1.3.390
func (a *AdapterTable) InsertRowImage(iRow int32, hImage int) int32
数据适配器表_插入行图片, 插入数据行, 填充第一列数据, 返回行索引.
iRow: 插入位置索引.
hImage: 图片句柄.
func (*AdapterTable) InsertRowImageEx ¶ added in v1.3.390
func (a *AdapterTable) InsertRowImageEx(iRow int32, pName string, hImage int) int32
数据适配器表_插入行图片扩展, 插入数据行, 并填充指定列数据, 返回行索引.
iRow: 插入位置索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) InsertRowText ¶ added in v1.3.390
func (a *AdapterTable) InsertRowText(iRow int32, pValue string) int32
数据适配器表_插入行文本, 插入数据行, 填充第一列数据, 返回行索引.
iRow: 插入位置索引.
pValue: 值.
func (*AdapterTable) InsertRowTextEx ¶ added in v1.3.390
func (a *AdapterTable) InsertRowTextEx(iRow int32, pName string, pValue string) int32
数据适配器表_插入行文本扩展, 插入数据行, 并填充指定列数据, 返回行索引.
iRow: 插入位置索引.
pName: 字段称.
pValue: 值.
func (*AdapterTable) SetColumn ¶
func (a *AdapterTable) SetColumn(pColName string) int32
数据适配器表_置列, 设置列, 返回列数量.
pColName: 列名, 多个列名用逗号分开.
func (*AdapterTable) SetItemFloat ¶
func (a *AdapterTable) SetItemFloat(iItem, iColumn int32, fValue float32) bool
数据适配器表_置项浮点值, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
fValue: 值.
func (*AdapterTable) SetItemFloatEx ¶
func (a *AdapterTable) SetItemFloatEx(iItem int32, pName string, fValue float32) bool
数据适配器表_置项浮点值扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
fValue: 值.
func (*AdapterTable) SetItemImage ¶
func (a *AdapterTable) SetItemImage(iItem, iColumn int32, hImage int) bool
数据适配器表_置项图片, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterTable) SetItemImageEx ¶
func (a *AdapterTable) SetItemImageEx(iItem int32, pName string, hImage int) bool
数据适配器表_置项图片扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTable) SetItemInt ¶
func (a *AdapterTable) SetItemInt(iItem, iColumn int32, nValue int32) bool
数据适配器表_置项整数值, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
nValue: 值.
func (*AdapterTable) SetItemIntEx ¶
func (a *AdapterTable) SetItemIntEx(iItem int32, pName string, nValue int32) bool
数据适配器表_置项整数值扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
nValue: 值.
func (*AdapterTable) SetItemText ¶
func (a *AdapterTable) SetItemText(iItem, iColumn int32, pValue string) bool
数据适配器表_置项文本, 设置项数据.
iItem: 项索引.
iColumn: 列索引.
pValue: 值.
func (*AdapterTable) SetItemTextEx ¶
func (a *AdapterTable) SetItemTextEx(iItem int32, pName string, pValue string) bool
数据适配器表_置项文本扩展, 设置项数据.
iItem: 项索引.
pName: 字段称.
pValue: 值.
func (*AdapterTable) Sort ¶
func (a *AdapterTable) Sort(iColumn int32, bAscending bool) *AdapterTable
数据适配器表_排序, 对内容进行排序.
iColumn: 要排序的列索引。.
bAscending: 是否按照升序方式排序.
type AdapterTree ¶
type AdapterTree struct {
// contains filtered or unexported fields
}
AdapterTree 数据适配器-树元素.
func NewAdapterTreeByHandle ¶ added in v1.0.1
func NewAdapterTreeByHandle(handle int) *AdapterTree
从句柄创建对象.
func (*AdapterTree) AddColumn ¶
func (a *AdapterTree) AddColumn(pName string) int32
数据适配器树_添加列, 添加列, 返回索引值.
pName: 字段称.
func (*AdapterTree) DeleteColumnAll ¶
func (a *AdapterTree) DeleteColumnAll() *AdapterTree
数据适配器树_删除列全部, 删除所有列, 并且清空数据.
func (*AdapterTree) DeleteItem ¶
func (a *AdapterTree) DeleteItem(nID int32) bool
数据适配器树_删除项, 删除项.
nID: 项ID.
func (*AdapterTree) DeleteItemAll ¶
func (a *AdapterTree) DeleteItemAll() *AdapterTree
数据适配器树_删除项全部, 删除所有项.
func (*AdapterTree) EnableAutoDestroy ¶ added in v0.0.3
func (a *AdapterTree) EnableAutoDestroy(bEnable bool) *adapter
数据适配器_启用自动销毁.
bEnable: 是否启用.
func (*AdapterTree) GetCountColumn ¶
func (a *AdapterTree) GetCountColumn() int32
数据适配器树_取列数量, 获取列数量.
func (*AdapterTree) GetItemImage ¶
func (a *AdapterTree) GetItemImage(nID, iColumn int32) int
数据适配器树_取项图片, 获取项内容, 返回图片句柄.
nID: 项ID.
iColumn: 列索引.
func (*AdapterTree) GetItemImageEx ¶
func (a *AdapterTree) GetItemImageEx(nID int32, pName string) int
数据适配器树_取项图片扩展, 获取项内容, 返回图片句柄.
nID: 项ID.
pName: 字段称.
func (*AdapterTree) GetItemText ¶
func (a *AdapterTree) GetItemText(nID, iColumn int32) string
数据适配器树_取项文本, 获取项文本内容.
nID: 项ID.
iColumn: 列索引.
func (*AdapterTree) GetItemTextEx ¶
func (a *AdapterTree) GetItemTextEx(nID int32, pName string) string
数据适配器树_取项文本扩展, 获取项文本内容.
nID: 项ID.
pName: 字段称.
func (*AdapterTree) GetRefCount ¶ added in v0.0.3
func (a *AdapterTree) GetRefCount() int32
数据适配器_取引用计数.
func (*AdapterTree) InsertItemImage ¶
func (a *AdapterTree) InsertItemImage(hImage int, nParentID, insertID int32) int32
数据适配器树_插入项图片, 插入项, 数据填充到第一列, 返回项ID值.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemImageEx ¶
func (a *AdapterTree) InsertItemImageEx(pName string, hImage int, nParentID, insertID int32) int32
数据适配器树_插入项图片扩展, 插入项, 数据填充到指定列, 返回项ID值.
pName: 字段称.
hImage: 图片句柄.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemText ¶
func (a *AdapterTree) InsertItemText(pValue string, nParentID, insertID int32) int32
数据适配器树_插入项文本, 插入项, 数据填充到第一列, 返回项ID值.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) InsertItemTextEx ¶
func (a *AdapterTree) InsertItemTextEx(pName string, pValue string, nParentID, insertID int32) int32
数据适配器树_插入项文本扩展, 插入项, 数据填充到指定列, 返回项ID值.
pName: 字段称.
pValue: 值.
nParentID: 父ID.
insertID: 插入位置ID.
func (*AdapterTree) SetColumn ¶
func (a *AdapterTree) SetColumn(pColName string) int32
数据适配器树_置列, 设置列, 返回列数量.
pColName: 列名, 列名, 多个列名用逗号分开.
func (*AdapterTree) SetItemImage ¶
func (a *AdapterTree) SetItemImage(nID, iColumn int32, hImage int) bool
数据适配器树_置项图片, 设置项数据.
nID: 项ID.
iColumn: 列索引.
hImage: 图片句柄.
func (*AdapterTree) SetItemImageEx ¶
func (a *AdapterTree) SetItemImageEx(nID int32, pName string, hImage int) bool
数据适配器树_置项图片扩展, 设置项内容.
nID: 项ID.
pName: 字段称.
hImage: 图片句柄.
func (*AdapterTree) SetItemText ¶
func (a *AdapterTree) SetItemText(nID, iColumn int32, pValue string) bool
数据适配器树_置项文本, 设置项数据.
nID: 项ID.
iColumn: 列索引.
pValue: 值.
func (*AdapterTree) SetItemTextEx ¶
func (a *AdapterTree) SetItemTextEx(nID int32, pName string, pValue string) bool
数据适配器树_置项文本扩展, 设置项文件内容.
nID: 项ID.
pName: 字段称.
pValue: 值.