FineUI.Core 16.3.0
.NET 企业级全栈 UI 框架
载入中...
搜索中...
未找到
FineUI.Core.ControlBase类 参考abstract

控件基类 更多...

类 FineUI.Core.ControlBase 继承关系图:
FineUI.Core.Component FineUI.Core.GridColumn FineUI.Core.GridFilter FineUI.Core.PageManager FineUI.Core.PartialConnector FineUI.Core.BaseMenuItem FineUI.Core.BoxComponent FineUI.Core.Menu FineUI.Core.Tool FineUI.Core.ToolbarFill FineUI.Core.ToolbarSeparator FineUI.Core.ToolbarText FineUI.Core.GroupField FineUI.Core.RenderBaseField FineUI.Core.RowNumberField

Public 成员函数

 ControlBase ()
 构造函数
bool RemoveAttribute (string name)
 移除控件 HTML 元素上的一个自定义属性,同时保留其它属性。 例如移除 data-tag 后,原有的 title 仍会保留;属性不存在时返回 false,且不会产生回发更新。
bool PropertyModified (string propertyName)
 回发过程中此属性是否被改变
bool PropertyModified (params string[] propertyNames)
 回发过程中这些属性是否被改变
string GetPostBackEventReference ()
 此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。
string GetPostBackEventReference (string action)
 此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。
string GetPostBackEventReference (string action, ParameterCollection parameters)
 此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。
string GetPostBackEventReference (Event evt)
 此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。
virtual string GetHideReference ()
 获取隐藏控件的客户端脚本
virtual string GetShowReference ()
 获取显示控件的客户端脚本

属性

ControlBase Parent [get]
 父控件
string ProductName [get]
 当前服务器产品名称,返回 FineUI.Core;只读,不从浏览器控件状态恢复。
virtual string ProductVersion [get]
 当前服务器程序集的产品版本,例如 16.0.0;不含构建元数据和企业客户编码。 只读,不使用浏览器回传的版本决定服务器行为。
virtual JObject Attributes [get, set]
 [AJAX属性]HTML标签属性
string AttributeDataTag [get, set]
 [AJAX属性]HTML标签属性(data-tag)
string WrapperID [get]
 按当前控件 ID 推导的外部容器编号,例如 Button1 对应 Button1_wrapper。 不另存编号;是否实际输出该容器由控件的渲染位置决定。
string ID [get, set]
 控件ID
virtual bool Enabled [get, set]
 [AJAX属性]是否可用
virtual bool Hidden [get, set]
 [AJAX属性]是否隐藏控件
virtual HideMode HideMode [get, set]
 隐藏模式
bool IsFineUIAjaxPostBack [get]
 当前请求是否携带 X-FineUI-Ajax: true,普通 JSON 与文件上传请求使用同一判断。 普通页面请求返回 false;此标志不代替回发内容校验或业务权限检查。
bool IsFineUICoreAjaxPostBack [get]
 IsFineUIAjaxPostBack 的兼容名称,始终读取同一次请求的相同标志。 例如上传回发带 X-FineUI-Ajax: true 时,两项都返回 true,不另存控件状态。
virtual ListenerCollection Listeners [get, set]
 客户端事件列表
virtual EventCollection Events [get, set]
 服务端事件列表

详细描述

控件基类

构造及析构函数说明

◆ ControlBase()

FineUI.Core.ControlBase.ControlBase ( )

构造函数

成员函数说明

◆ GetHideReference()

virtual string FineUI.Core.ControlBase.GetHideReference ( )
virtual

获取隐藏控件的客户端脚本

返回
客户端脚本

被 FineUI.Core.Tab , 以及 FineUI.Core.Window 重载.

◆ GetPostBackEventReference() [1/4]

string FineUI.Core.ControlBase.GetPostBackEventReference ( )

此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。

返回
此接口始终抛出异常,不再返回客户端脚本。
异常
NotSupportedException请按异常信息改用相应开发模式的公开回发入口。

◆ GetPostBackEventReference() [2/4]

string FineUI.Core.ControlBase.GetPostBackEventReference ( Event evt)

此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。

参数
evt旧事件声明。
返回
此接口始终抛出异常,不再返回客户端脚本。
异常
NotSupportedException请按异常信息改用相应开发模式的公开回发入口。

◆ GetPostBackEventReference() [3/4]

string FineUI.Core.ControlBase.GetPostBackEventReference ( string action)

此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。

参数
action旧动作地址。
返回
此接口始终抛出异常,不再返回客户端脚本。
异常
NotSupportedException请按异常信息改用相应开发模式的公开回发入口。

◆ GetPostBackEventReference() [4/4]

string FineUI.Core.ControlBase.GetPostBackEventReference ( string action,
ParameterCollection parameters )

此接口已停止生成回发脚本;保留签名,让旧程序集调用时得到明确的迁移提示。 标准事件通过控件属性声明,RazorForms 页面级业务回发使用 F.customEvent。

参数
action旧动作地址。
parameters旧请求参数。
返回
此接口始终抛出异常,不再返回客户端脚本。
异常
NotSupportedException请按异常信息改用相应开发模式的公开回发入口。

◆ GetShowReference()

virtual string FineUI.Core.ControlBase.GetShowReference ( )
virtual

获取显示控件的客户端脚本

返回
客户端脚本

被 FineUI.Core.Tab , 以及 FineUI.Core.Window 重载.

◆ PropertyModified() [1/2]

bool FineUI.Core.ControlBase.PropertyModified ( params string[] propertyNames)

回发过程中这些属性是否被改变

参数
propertyNames属性名
返回
是否改变

◆ PropertyModified() [2/2]

bool FineUI.Core.ControlBase.PropertyModified ( string propertyName)

回发过程中此属性是否被改变

参数
propertyName属性名
返回
是否改变

◆ RemoveAttribute()

bool FineUI.Core.ControlBase.RemoveAttribute ( string name)

移除控件 HTML 元素上的一个自定义属性,同时保留其它属性。 例如移除 data-tag 后,原有的 title 仍会保留;属性不存在时返回 false,且不会产生回发更新。

参数
name要移除的 HTML 属性名。
返回
找到并移除属性时为 true,否则为 false。

属性说明

◆ AttributeDataTag

string FineUI.Core.ControlBase.AttributeDataTag
getset

[AJAX属性]HTML标签属性(data-tag)

AJAX 更新:RazorForms 模式下,本条 AJAX 说明的适用范围不含 Chart、GridFilter、GroupField、PageManager、PartialConnector、RenderCheckField、RenderField、RowNumberField。更新控件上的 data-tag 自定义属性。传 null 仅移除此成员,保留标题提示及其他自定义属性。

◆ Attributes

virtual JObject FineUI.Core.ControlBase.Attributes
getset

[AJAX属性]HTML标签属性

AJAX 更新:RazorForms 模式下,本条 AJAX 说明的适用范围不含 GridFilter、PageManager、PartialConnector。本次响应后更新自定义 HTML 属性,并移除旧集合中已删除的成员;属性名称和值须符合允许的 HTML 属性规则。

◆ Enabled

virtual bool FineUI.Core.ControlBase.Enabled
getset

[AJAX属性]是否可用

AJAX 更新:RazorForms 模式下,本条 AJAX 说明的适用范围不含 GridFilter、GroupField、PartialConnector、RenderCheckField、RenderField、RowNumberField。本次响应后更新禁用状态,不改变控件原有的只读设置。

◆ Events

virtual EventCollection FineUI.Core.ControlBase.Events
getset

服务端事件列表

◆ Hidden

virtual bool FineUI.Core.ControlBase.Hidden
getset

[AJAX属性]是否隐藏控件

AJAX 更新:RazorForms 模式下,本条 AJAX 说明的适用范围不含 GridFilter、GroupField、PartialConnector、RenderCheckField、RenderField、RowNumberField。本次响应后更新控件显隐;HiddenField 按设计始终为隐藏输入,不因设置此属性而显示。

AJAX 更新:RazorForms 模式下,适用于 GroupField、RenderCheckField、RenderField、RowNumberField。普通表格在本次响应后隐藏或显示列。隐藏分组列时,其子列一并隐藏。 修改已有列的属性即可,无需替换列集合或重新绑定。 适用于未启用单元格编辑、表头过滤、树、模拟树、行分组、大数据或卡片模式的普通表格,且列未配置编辑器或过滤控件。

◆ HideMode

virtual HideMode FineUI.Core.ControlBase.HideMode
getset

隐藏模式

◆ ID

string FineUI.Core.ControlBase.ID
getset

控件ID

◆ IsFineUIAjaxPostBack

bool FineUI.Core.ControlBase.IsFineUIAjaxPostBack
get

当前请求是否携带 X-FineUI-Ajax: true,普通 JSON 与文件上传请求使用同一判断。 普通页面请求返回 false;此标志不代替回发内容校验或业务权限检查。

◆ IsFineUICoreAjaxPostBack

bool FineUI.Core.ControlBase.IsFineUICoreAjaxPostBack
get

IsFineUIAjaxPostBack 的兼容名称,始终读取同一次请求的相同标志。 例如上传回发带 X-FineUI-Ajax: true 时,两项都返回 true,不另存控件状态。

◆ Listeners

virtual ListenerCollection FineUI.Core.ControlBase.Listeners
getset

客户端事件列表

◆ Parent

ControlBase FineUI.Core.ControlBase.Parent
get

父控件

◆ ProductName

string FineUI.Core.ControlBase.ProductName
get

当前服务器产品名称,返回 FineUI.Core;只读,不从浏览器控件状态恢复。

◆ ProductVersion

virtual string FineUI.Core.ControlBase.ProductVersion
get

当前服务器程序集的产品版本,例如 16.0.0;不含构建元数据和企业客户编码。 只读,不使用浏览器回传的版本决定服务器行为。

◆ WrapperID

string FineUI.Core.ControlBase.WrapperID
get

按当前控件 ID 推导的外部容器编号,例如 Button1 对应 Button1_wrapper。 不另存编号;是否实际输出该容器由控件的渲染位置决定。


该类的文档由以下文件生成:
  • ControlBase.cs
  • ControlBase.TemplateDeclarations.cs
  • ControlBase.Declarations.cs
  • ControlBase.EventConfiguration.cs
  • ControlBase.Json.cs
  • ControlBase.State.cs