- 浏览: 91244 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
assasszt:
写的很透彻,厉害!能不能问个 问题:cookie 应该是浏览器 ...
Tomcat之Session和Cookie大揭密 -
赵武艺:
有时间把全部代码贴出来看看,只看这个看不懂?
Ajax请求,利用JFreeChart,页面无刷新画带“map”的图 -
e_soft:
解决办法:
拔了网线就好了,具体什么原因正在查找.
我也在 ...
MyEclipse开发JSP页面假死问题解决办法
Class Ext.Element
Package: | Ext |
Defined In: | Element.js |
Class: | Element |
Subclasses: | Layer |
Extends: | Object |
Usage:
// by id
var
el = Ext.get("my-div"
);
// by DOM element reference
var
el = Ext.get(myDivElement);
Animations
Many of the functions for manipulating an element have an optional "animate" parameter. The animate parameter should either be a boolean (true) or an object literal with animation options. Note that the supported Element animation options are a subset of the Ext.Fx animation options specific to Fx effects. The Element animation options are:
Option Default Description --------- -------- --------------------------------------------- duration .35 The duration of the animation in seconds easing easeOut The easing method callback none A function to execute when the anim completes scope this The scope (this) of the callback functionAlso, the Anim object being used for the animation will be set on your options object as "anim", which allows you to stop or manipulate the animation. Here's an example:
var el = Ext.get("my-div"
);
// no animation
el.setWidth(100);
// default
animation
el.setWidth(100, true);
// animation with
some options set
el.setWidth(100, {
duration: 1,
callback: this
.foo,
scope: this
});
// using the "anim"
property to get the Anim object
var
opt = {
duration: 1,
callback: this
.foo,
scope: this
};
el.setWidth(100, opt);
...
if
(opt.anim.isAnimated()){
opt.anim.stop();
}
Composite (Collections of) Elements
For working with collections of Elements, see Ext.CompositeElement
Public Properties
Public Methods
Element
( String/HTMLElement element
, [Boolean forceNew
]
)
Create a new Element directly.
Create a new Element directly.
Parameters:
|
Element | |
Element.fly
( String/HTMLElement el
, [String named
]
) : Element
<static> Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a...
<static> Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element - the dom node can be overwritten by other code.
Parameters:
|
Element | |
Element.get
( Mixed el
) : Element
<static> Static method to retrieve Ext.Element objects. This method does not retrieve Components. This method r...
<static> Static method to retrieve Ext.Element objects.
This method does not retrieve Component s. This method retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentMgr.get . Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM.
Parameters:
|
Element | |
addClass
( String/Array className
) : Ext.Element
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
Parameters:
|
Element | |
addClassOnClick
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
Parameters:
|
Element | |
addClassOnFocus
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when this element has the focus
Sets up event handlers to add and remove a css class when this element has the focus
Parameters:
|
Element | |
addClassOnOver
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when the mouse is over this element
Sets up event handlers to add and remove a css class when the mouse is over this element
Parameters:
|
Element | |
addKeyListener
( Number/Array/Object/String key
, Function fn
, [Object scope
]
) : Ext.KeyMap
Convenience method for constructing a KeyMap
Convenience method for constructing a KeyMap
Parameters:
|
Element | |
addKeyMap
( Object config
) : Ext.KeyMap
Creates a KeyMap for this element
Creates a KeyMap for this element
Parameters:
|
Element | |
addListener
( String eventName
, Function fn
, [Object scope
]
, [Object options
]
) : void
Appends an event handler to this element. The shorthand version on
is equivalent.
Appends an event handler to this element. The shorthand version on
is equivalent.
Parameters:
|
Element | |
alignTo
( Mixed element
, String position
, [Array offsets
]
, [Boolean/Object animate
]
) : Ext.Element
Aligns this element with another element relative to the specified anchor points. If the other element is the documen...
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport. The position parameter is optional, and can be specified in any one of the following formats:
Value Description ----- ----------------------------- tl The top left corner (default) t The center of the top edge tr The top right corner l The center of the left edge c In the center of the element r The center of the right edge bl The bottom left corner b The center of the bottom edge br The bottom right cornerExample Usage:
Parameters:
|
Element | |
anchorTo
( Mixed element
, String position
, [Array offsets
]
, [Boolean/Object animate
]
, [Boolean/Number monitorScroll
]
, Function callback
) : Ext.Element
Anchors an element to another element and realigns it when the window is resized.
Anchors an element to another element and realigns it when the window is resized.
Parameters:
|
Element | |
animate
( Object args
, [Float duration
]
, [Function onComplete
]
, [String easing
]
, [String animType
]
) : Ext.Element
Perform animation on this element.
Perform animation on this element.
Parameters:
|
Element | |
appendChild
( String/HTMLElement/Array/Element/CompositeElement el
) : Ext.Element
Appends the passed element(s) to this element
Appends the passed element(s) to this element
Parameters:
|
Element | |
appendTo
( Mixed el
) : Ext.Element
Appends this element to the passed element
Appends this element to the passed element
Parameters:
|
Element | |
applyStyles
( String/Object/Function styles
) : Ext.Element
More flexible version of setStyle
for setting style properties.
More flexible version of setStyle
for setting style properties.
Parameters:
|
Element | |
autoHeight
( [Boolean animate
]
, [Float duration
]
, [Function onComplete
]
, [String easing
]
) : Ext.Element
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new hei...
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new height may not be available immediately.
Parameters:
|
Element | |
blur
() : Ext.Element
Tries to blur the element. Any exceptions are caught and ignored.
Tries to blur the element. Any exceptions are caught and ignored.
Parameters:
|
Element | |
boxWrap
( [String class
]
) : Ext.Element
Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradie...
Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background, rounded corners and a 4-way shadow. Example usage:
Parameters:
|
Element | |
center
( [Mixed centerIn
]
) : void
Centers the Element in either the viewport, or another Element.
Centers the Element in either the viewport, or another Element.
Parameters:
|
Element | |
child
( String selector
, [Boolean returnDom
]
) : HTMLElement/Ext.Element
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont...
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
Parameters:
|
Element | |
clean
( [Boolean forceReclean
]
) : void
Removes worthless text nodes
Removes worthless text nodes
Parameters:
|
Element | |
clearOpacity
() : Ext.Element
Clears any opacity settings from this element. Required in some cases for IE.
Clears any opacity settings from this element. Required in some cases for IE.
Parameters:
|
Element | |
clearPositioning
( [String value
]
) : Ext.Element
Clear positioning back to the default when the document was loaded
Clear positioning back to the default when the document was loaded
Parameters:
|
Element | |
clip () : Ext.Element | Element | |
contains
( HTMLElement/String el
) : Boolean
Returns true if this element is an ancestor of the passed element
Returns true if this element is an ancestor of the passed element
Parameters:
|
Element | |
createChild
( Object config
, [HTMLElement insertBefore
]
, [Boolean returnDom
]
) : Ext.Element
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
Parameters:
|
Element | |
createProxy
( String/Object config
, [String/HTMLElement renderTo
]
, [Boolean matchBox
]
) : Ext.Element
Creates a proxy element of this element
Creates a proxy element of this element
Parameters:
|
Element | |
createShim
() : Ext.Element
Creates an iframe shim for this element to keep selects and other windowed objects from showing through.
Creates an iframe shim for this element to keep selects and other windowed objects from showing through.
Parameters:
|
Element | |
down
( String selector
, [Boolean returnDom
]
) : HTMLElement/Ext.Element
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).
Parameters:
|
Element | |
enableDisplayMode
( [String display
]
) : Ext.Element
Convenience method for setVisibilityMode(Element.DISPLAY)
Convenience method for setVisibilityMode(Element.DISPLAY)
Parameters:
|
Element | |
findParent
( String selector
, [Number/Mixed maxDepth
]
, [Boolean returnEl
]
) : HTMLElement
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:fi...
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Parameters:
|
Element | |
findParentNode
( String selector
, [Number/Mixed maxDepth
]
, [Boolean returnEl
]
) : HTMLElement
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Parameters:
|
Element | |
first
( [String selector
]
, [Boolean returnDom
]
) : Ext.Element/HTMLElement
Gets the first child, skipping text nodes
Gets the first child, skipping text nodes
Parameters:
|
Element | |
focus
() : Ext.Element
Tries to focus the element. Any exceptions are caught and ignored.
Tries to focus the element. Any exceptions are caught and ignored.
Parameters:
|
Element | |
getAlignToXY
( Mixed element
, String position
, [Array offsets
]
) : Array
Gets the x,y coordinates to align this element with another element. See alignTo for more info on the supported posit...
Gets the x,y coordinates to align this element with another element. See alignTo
for more info on the supported position values.
Parameters:
|
Element | |
getAnchorXY
( [String anchor
]
, [Boolean local
]
, [Object size
]
) : Array
Gets the x,y coordinates specified by the anchor position on the element.
Gets the x,y coordinates specified by the anchor position on the element.
Parameters:
|
Element | |
getAttributeNS
( String namespace
, String name
) : String
Returns the value of a namespaced attribute from the element's underlying DOM node.
Returns the value of a namespaced attribute from the element's underlying DOM node.
Parameters:
|
Element | |
getBorderWidth
( String side
) : Number
Gets the width of the border(s) for the specified side(s)
Gets the width of the border(s) for the specified side(s)
Parameters:
|
Element | |
getBottom
( Boolean local
) : Number
Gets the bottom Y coordinate of the element (element Y position + element height)
Gets the bottom Y coordinate of the element (element Y position + element height)
Parameters:
|
Element | |
getBox
( [Boolean contentBox
]
, [Boolean local
]
) : Object
Return a box {x, y, width, height} that can be used to set another elements size/location to match this element.
Return a box {x, y, width, height} that can be used to set another elements size/location to match this element.
Parameters:
|
Element | |
相关推荐
EXT核心API详解 1、Ext类 ………………………………… 2 2、Array类 …………………………… 4 3、Number类 …………………………… 4 4、String类 …………………………… 4 5、Date类 ……………………………… 5 ...
cp target/new-api-kafkameter-x.y.z.jar $JMETER_HOME /lib/ext 用法 Kafka生产者采样器 安装kafkameter后,添加Java请求采样器(Add- Add -> Sampler -> Java Request Sampler- Add -> Sampler -> Java Request )...
其它控件都是建立在这些底层api的基础上,底层api位于源代码目录的core子目录中,包括DomHelper.js、Element.js等文件,如图xx所示。 控件(widgets):控件是指可以直接在页面中创建的可视化组件,比如面板、...
Ext3.2中文API(最终完成版2010-11-01编译) 修正了Ext.Element类的几个格式Bug
API 参考 API 参考里面详细描述了所有能在 Ext 类库里面找到的类和组件。最常用的类有: Ext.Element Ext.BorderLayout Ext.DomHelper Ext.TabPanel Ext.UpdateManager
第三部分 Ext-UI 第8章 Ext用户界面控件 216 8.1 布局 216 8.1.1 在FormPanel中使用HBoxLayout进行布局 216 8.1.2 在FormPanel中使用HBoxLayout和VBoxLayout进行布局 219 8.1.3 Panel的body的样式范围 224 8.2 Form...
在使用Ext开发的应用程序中,组件Component是最高层次的抽象,是直接给用户使用的,Ext Element是Ext的底层API,主要是由Ext或自定义组件调用的,而DOM是W3C标准定义的原始API,Ext的Element通过操作DOM 来实现页面...
本文档是 Java Platform Standard Edition 6 的 API !Java 1.6 API的中文帮助文档。 深圳电信培训中心徐海蛟博士教学用api中文文档。支持全文检索,在线即时查询。 里面列出了,Java的所有类及其使用方法! Java ...
extJs 2.1学习笔记 此资料收集于网上.. ...25. extJs 2.0学习笔记(Ext.Element API总结) 69 26. extJs 2.0学习笔记(Element.js篇) 73 27. extJs 2.0学习笔记(DomHelper.js篇) 76 28. extJs 2.0学习笔记(ext.js篇) 77
- Fixed bug in "Fix dump" renaming (with the char '_' before the ext) - Added Original First Thunks rebuilder (in Options) - Fixed bug on disabled editboxes (you could edit them.... erm) - Added ...
ExtJs学习笔记,共30讲 ...25. extJs 2.0学习笔记(Ext.Element API总结) 69 26. extJs 2.0学习笔记(Element.js篇) 73 27. extJs 2.0学习笔记(DomHelper.js篇) 76 28. extJs 2.0学习笔记(ext.js篇) 77
javax.lang.model.element javax.lang.model.type javax.lang.model.util javax.management javax.management.loading javax.management.modelmbean javax.management.monitor javax.management.openmbean ...
本文档是 JavaTM Platform Standard Edition 6 的 API 规范。 Java SE Platform 软件包 java.applet 提供创建 applet 所必需的类和 applet 用来与其 applet 上下文通信的类。 java.awt 包含用于创建用户界面和绘制...
javase 中文API 最新版 ******************************* JavaTM 2 Platform Standard Ed. 6 所有类软件包 java.applet java.awt java.awt.color java.awt.datatransfer java.awt.dnd java.awt.event ...
API中有这样一段示例: 代码如下:var t = new Ext.Template( ‘”{id}”>’, ‘”{cls}”>{name:trim} {value:ellipsis(10)}’, ‘’ ); t.append(‘some-element’, {id: ‘myid’, cls: ‘myclass...
其它控件都是建立在这些底层api的基础上,底层api位于源代码目录的core子目录中,包括DomHelper.js、Element.js等文件,如图xx所示。 控件(widgets):控件是指可以直接在页面中创建的可视化组件,比如面板、选项...
YUI的动画类简直就是一门艺术工作。不像其它的传统的JS库,提供了已经“预设好”的直接可运行的效果,相反,它由开发者做...因此,在上一发布的版本中, 我把 YAHOO.ext.Element的动画效果尽量简单地调用。其实,在这个
Safari 2 3575ms 475ms 753% Opera 9.1 3196ms 326ms 980% Average improvement: 867% <br>下表为jQuery1.1.3与常用的一些JS库选择器的对比: Browser Prototype jQuery Mootools Ext Dojo ...
java jdk api帮助文档中文版 JavaTM Platform Standard Ed. 6 所有类 软件包 java.applet java.awt java.awt.color java.awt.datatransfer java.awt.dnd java.awt.event java.awt.font java.awt.geom ...