ext.net 中文API 文档 (CHM)
文件大小: 19923k
源码售价: 10 个金币 积分规则     积分充值
资源说明:API Documentation Ext chart Axis BarChart BarSeries CartesianChart CartesianSeries CategoryAxis Chart ColumnChart ColumnSeries LineChart LineSeries NumericAxis PieChart PieSeries Series TimeAxis data dd direct form grid AbstractSelectionModel BooleanColumn CellSelectionModel CheckboxSelectionModel Column ColumnModel DateColumn EditorGridPanel GridDragZone GridPanel GridView GroupingView NumberColumn PropertyColumnModel PropertyGrid PropertyRecord PropertyStore RowNumberer RowSelectionModel TemplateColumn layout menu state tree util CSS ClickRepeater DelayedTask Format JSON MixedCollection Observable TaskRunner TextMetrics Action Ajax BoxComponent Button ButtonGroup ColorPalette Component ComponentMgr CompositeElement CompositeElementLite Container CycleButton DataView DatePicker Direct DomHelper DomQuery Editor Element Error EventManager EventObject FlashComponent FlashProxy Fx History KeyMap KeyNav Layer ListView ListView.ColumnResizer ListView.Sorter LoadMask MessageBox PagingToolbar Panel ProgressBar QuickTip QuickTips Resizable Shadow Slider Spacer SplitBar SplitBar.AbsoluteLayoutAdapter SplitBar.BasicLayoutAdapter SplitButton StoreMgr TabPanel TaskMgr Template Tip ToolTip Toolbar Toolbar.Fill Toolbar.Item Toolbar.Separator Toolbar.Spacer Toolbar.TextItem Updater Updater.BasicRenderer Updater.defaults Viewport Window WindowGroup WindowMgr XTemplate ?? Date Ext Function Number String ------------------------------------------------------- 类Ext.grid.AbstractSelectionModel 包: Extgrid 定义的文件: AbstractSelectionModel.js 类全称: Ext.grid.AbstractSelectionModel 继承自于: Ext.util.Observable Grid选区模型(SelectionModels)基本抽象类。本类提供了子类要实现的接口。该类不能被直接实例化。 Abstract base class for grid SelectionModels. It provides the interface that should be implemented by descendant classes. This class should not be directly instantiated. 配置项配置项 定义者 listeners : Object (optional) A config object containi... (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once. Observable 公告属性这个类没有公告属性。 公共方法方法 定义者 AbstractSelectionModel() 参数项: None. 返回值: void AbstractSelectionModel lock() 锁定多个选区。Locks the selections. 锁定多个选区。Locks the selections. 参数项: None. 返回值: void AbstractSelectionModel unlock() 解锁多个选区。Unlocks the selections. 解锁多个选区。Unlocks the selections. 参数项: None. 返回值: void AbstractSelectionModel isLocked() : Boolean 返回true如果选区被锁。Returns true if the se... 返回true如果选区被锁。Returns true if the selections are locked. 参数项: None. 返回值: Boolean AbstractSelectionModel fireEvent( String eventName, Object... args ) : Boolean 触发指定的事件,并在这里把处理函数的参数传入(应该至少要有事件的名称)... 触发指定的事件,并在这里把处理函数的参数传入(应该至少要有事件的名称)。Fires the specified event with the passed parameters (minus the event name). 参数项: eventName : String 事件名称The name of the event to fire. If the event is to bubble up an Observable parent hierarchy (See Ext.ComponentgetBubbleTarget) then the first argument must be passed as true, and the event name is passed as the second argument. 如果这个事件是要在Observable父类上逐层上报(参阅Ext.ComponentgetBubbleTarget),那么第一个参数一定是true,然后第二个参数是事件名称。 args : Object... 传入事件处理函数的参数Variable number of parameters are passed to handlers 返回值: Boolean 从处理函数返回true或者false returns false if any of the handlers return false otherwise it returns true Observable addListener( String eventName, Function fn, Object scope, Object options ) 加入一个事件处理函数。on是其简写方式。Appends an even... 加入一个事件处理函数。on是其简写方式。Appends an event handler to this element. The shorthand version on is equivalent. 参数项: eventName : String 事件处理函数的名称。The type of event to handle fn : Function 事件处理函数。该函数会送入以下的参数:The handler function the event invokes. This function is passed the following parameters: evt : EventObject 用于描述这次事件EventObject的事件对象。The EventObject describing the event. t : Element 事件源对象,类型是Element The Element which was the target of the event. 注意该项可能会选项delegate筛选而发生变化Note that this may be filtered by using the delegate option. o : Object 调用addListener时送入的选项对象The options object from the addListener call. scope : Object (可选的) 事件处理函数执行时所在的作用域。处理函数“this”的上下文。(optional) The scope (The this reference) of the handler function. Defaults to this Element. options : Object (可选的) 包含句柄配置属性的一个对象。该对象可能会下来的属性: (optional) An object containing handler configuration properties. This may contain any of the following properties: scope {Object} : 事件处理函数执行时所在的作用域。处理函数“this”的上下文环境。The scope in which to execute the handler function. The handler function's "this" context. delegate {String} : 一个简易选择符,用于过滤目标,或是查找目标的子孙。A simple selector to filter the target or look for a descendant of the target stopEvent {Boolean} : true表示为阻止事件。即停止传播、阻止默认动作。True to stop the event. That is stop propagation, and prevent the default action. preventDefault {Boolean} : true表示为阻止默认动作。True to prevent the default action stopPropagation {Boolean} : true表示为阻止事件传播。True to prevent event propagation normalized {Boolean} : false表示对处理函数送入一个原始、未封装过的浏览器对象而非标准的Ext.EventObject。False to pass a browser event to the handler function instead of an Ext.EventObject delay {Number} : 触发事件后处理函数延时执行的时间。The number of milliseconds to delay the invocation of the handler after te event fires. single {Boolean} : true代表为事件触发后加入一个下次移除本身的处理函数。True to add a handler to handle just the next firing of the event, and then remove itself. buffer {Number} : 若指定一个毫秒数会把该处理函数安排到Ext.util.DelayedTask延时之后才执行。如果事件在那个事件再次触发,则原处理器句柄将不会 被启用,但是新处理器句柄会安排在其位置。Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of milliseconds. If the event fires again within that time, the original handler is not invoked, but the new handler is scheduled in its place. 不同配搭方式的选项 Combining Options 下面的例子,使用的是on的简写方式。和addListener是等价的。利用参数选项,可以组合成不同类型的侦听器: In the following examples, the shorthand form on is used rather than the more verbose addListener. The two are equivalent. Using the options argument, it is possible to combine different types of listeners: 这个事件的含义是,已常规化的,延时的,自动停止事件并有传入一个自定义的参数(forumId)的一次性侦听器。这些事件设置在处理函数(也就是第三个的参数)中也可以找到的。A normalized, delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options object. The options object is available as the third parameter in the handler function. 代码:Code: 返回值: void Observable removeListener( String eventName, Function handler, Object scope ) 移除侦听器Removes a listener 移除侦听器Removes a listener 参数项: eventName : String 侦听事件的类型The type of event to listen for handler : Function 移除的处理函数The handler to remove scope : Object (可选的) 处理函数之作用域(optional) The scope (this object) for the handler 返回值: void Observable purgeListeners() 从这个对象身上移除所有的侦听器。Removes all listene... 从这个对象身上移除所有的侦听器。Removes all listeners for this object 参数项: None. 返回值: void Observable relayEvents( Object o, Array events ) Relays selected events from the spe... Relays selected events from the specified Observable as if the events were fired by this. 参数项: o : Object The Observable whose events this object is to relay. events : Array Array of event names to relay. 返回值: void Observable addEvents( Object o ) 定义观察者的事件。Used to define events on t... 定义观察者的事件。Used to define events on this Observable 参数项: o : Object 定义的事件对象。object The object with the events defined 返回值: void Observable hasListener( String eventName ) : Boolean 检测当前对象是否有指定的事件。Checks to see if thi... 检测当前对象是否有指定的事件。Checks to see if this object has any listeners for a specified event 参数项: eventName : String 要检查的事件名称。The name of the event to check for 返回值: Boolean True表示有事件正在被监听,否则为false。True if the event is being listened for, else false Observable suspendEvents( Boolean queueSuspended ) 暂停触发所有的事件(参阅resumeEvents)。Suspend t... 暂停触发所有的事件(参阅resumeEvents)。Suspend the firing of all events. (see resumeEvents) 参数项: queueSuspended : Boolean Pass as true to queue up suspended events to be fired after the resumeEvents call instead of discarding all suspended events; 返回值: void Observable resumeEvents() 重新触发事件(参阅suspendEvents)。Resume firi... 重新触发事件(参阅suspendEvents)。Resume firing events. (see suspendEvents) If events were suspended using the queueSuspended parameter, then all events fired during event suspension will be sent to any listeners now. 参数项: None. 返回值: void Observable on( String eventName, Function handler, Object scope, Object options ) 为该元素添加事件处理函数(addListener的简写方式)。Appe... 为该元素添加事件处理函数(addListener的简写方式)。Appends an event handler to this element (shorthand for addListener) 参数项: eventName : String 事件名称The type of event to listen for handler : Function 处理函数The method the event invokes scope : Object (可选的) 执行处理函数的作用域。“this”对象指针(optional) The scope in which to execute the handler function. The handler function's "this" context. options : Object (可选的)(optional) 返回值: void Observable un( String eventName, Function handler, Object scope ) 移除侦听器(removeListener的快捷方式)Removes a... 移除侦听器(removeListener的快捷方式)Removes a listener (shorthand for removeListener) 参数项: eventName : String 侦听事件的类型The type of event to listen for handler : Function 事件涉及的方法 The handler to remove scope : Object (可选的) 处理函数的作用域(optional) The scope (this object) for the handler 返回值: void Observable capture( Observable o, Function fn, Object scope ) 开始捕捉特定的观察者。在事件触发之前,所有的事件会以“事件名称+标准签... 开始捕捉特定的观察者。在事件触发之前,所有的事件会以“事件名称+标准签名”的形式传入到函数(传入的参数是function类型)。如果传入的函数执行后返回false,则接下的事件将不会触发。Starts capture on the specified Observable. All events will be passed to the supplied function with the event name + standard signature of the event before the event is fired. If the supplied function returns false, the event will not fire. 参数项: o : Observable 要捕捉的观察者The Observable to capture fn : Function 要调用的函数The function to call scope : Object (可选的) 函数作用域(optional) The scope (this object) for the fn @static 返回值: void Observable releaseCapture( Observable o ) 从Observable身上移除所有已加入的捕捉captures。Rem... 从Observable身上移除所有已加入的捕捉captures。Removes all added captures from the Observable. 参数项: o : Observable 要释放的观察者The Observable to release @static 返回值: void Observable 公共事件这个类没有公告事件。
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。