|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gwtext.client.core.Ext
public class Ext
Ext core utilities and functions.
Constructor Summary | |
---|---|
Ext()
|
Method Summary | |
---|---|
static void |
debugger()
Utility method to kick up Javascript debugger. |
static void |
destroy(Component component)
Attempts to destroy the component passed to it by removing all event listeners, removing them from the DOM (if applicable) and calling their destroy functions (if available). |
static void |
destroy(ExtElement element)
Attempts to destroy the objects by removing all event listeners, removing them from the DOM (if applicable) and calling their destroy functions (if available). |
static void |
disableFirebug()
Disable firebug. |
static java.lang.String |
escapeRe(java.lang.String str)
Escapes the passed string for use in a regular expression. |
static ExtElement |
fly(com.google.gwt.user.client.Element element)
Gets the globally shared flyweight ExtElement, with the passed node as the active element. |
static ExtElement |
fly(com.google.gwt.user.client.Element element,
java.lang.String named)
Gets the globally shared flyweight ExtElement, with the passed node as the active element. |
static ExtElement |
fly(java.lang.String id)
Gets the globally shared flyweight ExtElement, with the passed node as the active element. |
static ExtElement |
fly(java.lang.String id,
java.lang.String named)
Gets the globally shared flyweight ExtElement, with the passed node as the active element. |
static java.lang.String |
generateId()
Generates unique ids. |
static java.lang.String |
generateId(java.lang.String prefix)
Generates unique ids. |
static ExtElement |
get(com.google.gwt.user.client.Element element)
Method to retrieve Element objects. |
static ExtElement |
get(java.lang.String id)
Method to retrieve Element objects. |
static ExtElement |
getBody()
Returns the current document body as an ExtElement . |
static Component |
getCmp(com.google.gwt.user.client.Element element)
Returns a component that the passed element represents. |
static Component |
getCmp(ExtElement element)
Returns a component that the passed element represents. |
static Component |
getCmp(java.lang.String id)
Returns a component by id. |
static ExtElement |
getDoc()
Returns the current HTML document object as an ExtElement . |
static boolean |
isAir()
|
static boolean |
isBorderBox()
|
static boolean |
isEnableGarbageCollector()
Returns is Garbage Collector is enabled. |
static boolean |
isEnableListenerCollection()
Retruns true if listener collection is true. |
static boolean |
isFirebug()
Return true if Firebug is enabled. |
static boolean |
isGecko()
|
static boolean |
isIE()
|
static boolean |
isIE6()
|
static boolean |
isIE7()
|
static boolean |
isLinux()
|
static boolean |
isMac()
|
static boolean |
isOpera()
|
static boolean |
isReady()
|
static boolean |
isSafari()
|
static boolean |
isSafari2()
|
static boolean |
isSafari3()
|
static boolean |
isSecure()
|
static boolean |
isStrict()
|
static boolean |
isUseShims()
|
static boolean |
isWindows()
|
static void |
onReady(Function cb)
Fires when the document is ready (before onload and before images are loaded). |
static void |
setEnableGarbageCollector(boolean enableGarbageCollector)
True to automatically uncache orphaned Ext.Elements periodically (defaults to true). |
static void |
setEnableListenerCollection(boolean enableListenerCollection)
True to automatically purge event listeners after uncaching an element (defaults to false). |
static void |
setSslSecureUrl(java.lang.String url)
URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent the IE insecure content warning (defaults to javascript:false). |
static void |
setUseShims(boolean useShims)
By default, Ext intelligently decides whether floating elements should be shimmed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ext()
Method Detail |
---|
public static void setSslSecureUrl(java.lang.String url)
url
- the urlpublic static void setEnableGarbageCollector(boolean enableGarbageCollector)
enableGarbageCollector
- true to enable GCpublic static boolean isEnableGarbageCollector()
public static void setEnableListenerCollection(boolean enableListenerCollection)
enableListenerCollection
- true to enable listener collectionpublic static boolean isEnableListenerCollection()
public static boolean isBorderBox()
public static boolean isGecko()
public static boolean isIE()
public static boolean isIE6()
public static boolean isIE7()
public static boolean isLinux()
public static boolean isMac()
public static boolean isAir()
public static boolean isOpera()
public static boolean isReady()
public static boolean isSafari()
public static boolean isSafari2()
public static boolean isSafari3()
public static boolean isSecure()
public static boolean isStrict()
public static boolean isWindows()
public static void setUseShims(boolean useShims)
useShims
- true to use shimspublic static boolean isUseShims()
public static java.lang.String escapeRe(java.lang.String str)
str
- the String to escape
public static ExtElement get(java.lang.String id)
id
- element ID
public static ExtElement get(com.google.gwt.user.client.Element element)
element
- the element
public static void destroy(ExtElement element)
element
- the element to destroypublic static void destroy(Component component)
component
- the component to destroypublic static ExtElement getDoc()
ExtElement
.
public static ExtElement getBody()
ExtElement
.
public static Component getCmp(java.lang.String id)
ComponentMgr.getComponent(String)
.
id
- the component ID
public static Component getCmp(com.google.gwt.user.client.Element element)
ComponentMgr.getComponent(Element)
.
element
- the component's element
public static Component getCmp(ExtElement element)
ComponentMgr.getComponent(ExtElement)
.
element
- the component's element
public static ExtElement fly(java.lang.String id)
id
- the element ID
public static ExtElement fly(java.lang.String id, java.lang.String named)
id
- the element IDnamed
- allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_internal")
public static ExtElement fly(com.google.gwt.user.client.Element element)
element
- the element
public static ExtElement fly(com.google.gwt.user.client.Element element, java.lang.String named)
element
- the elementnamed
- allows for creation of named reusable flyweights to prevent conflicts (e.g. internally Ext uses "_internal")
public static java.lang.String generateId()
public static java.lang.String generateId(java.lang.String prefix)
prefix
- Id prefix (defaults "ext-gen")
public static void onReady(Function cb)
cb
- callback to executepublic static void debugger()
public static boolean isFirebug()
public static void disableFirebug()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |