Class PTCommonUtil

Object
   |
   +--PTCommonUtil

class PTCommonUtil


Static class containing commonly used methods.

Usage:	
 	PTCommonUtil.isDefined(myobject)
 

Defined in PTUtil.js


Field Summary
<static>  <final> Object VERSION
          
 
Constructor Summary
PTCommonUtil ()
            PTCommonUtil static object constructor
 
Method Summary
<static> Object copyObject(srcObj,destObj)
           Returns a new object which is a copy of a given object.
<static> Object getCSSClassStyleProperty(className, propertyName)
           Returns a style property value for a given CSS class and style property name.
<static> Object getCSSClassStyles(className)
           Returns the style object for a given CSS class name.
<static> Element getElementById(id)
           Wrapper for document.getElementById with performance improvements.
<static> Number getIEVersion()
           Returns "dot" version of MSIE browser (eg.
<static> Number getNNVersion()
           Returns "dot" version of NN browser (eg.
<static> Object getRelativePosition(childDiv,parentDiv,ignoreBorders)
           Computes relative placement of child within parent.
<static> Object getRemoteStyleClassProperty(doc,className,attrName)
           Retrieves an attribute's value from a style class in a specified document
<static> Array getScripts()
           Retrieves an array of the scripts on a page
<static> String getServerFromURL(url)
           Returns the machine name portion of a URL (eg.
<static> Object getStyleClass(className)
           Retrieves a style class from the current document's stylesheets
<static> Object getStyleClassFromDocument(doc,className)
           Retrieves a style class from a document's stylesheets
<static> Object getStyleClassProperty(className,attrName)
           Retrieves an attribute's value from a style class in the current document
<static> String getValueForStyleAttribute(s,attr)
           Parses a style string, examining it for a single attribute, and returns the value of that attribute if found
<static> Boolean isDefined(obj)
           Tests an object to see if it is currently defined in memory
<static> Hash parseGet(url)
           Parses a URL, returning the query string variables separated in to key/value pairs.
<static> void scrollDivIntoView(object,container)
           Repositions the document vertically so that one object becomes visible within the scrolling area of another object.
<static> Number sortCaseInsensitive(aa,bb)
           Sorts alphabetically, ignoring case
<static> Number sortForward(aa,bb)
           Sorts in forward alpha order
<static> Hash sortHashByKeys(hash,preserveFirstKey,isCaseInsensitive,doReverseSort)
           Sorts the objects in a hash by order of its keys
<static> Number sortNumeric(a,b)
           Sorts using numeric comparators (instead of default alpha comparator)
<static> Number sortReverse(aa,bb)
           Sorts in reverse alpha order
<static> Number sortReverseCaseInsensitive(aa,bb)
           Sorts reverse-alphabetically, ignoring case
<static> void wait(ms)
           Causes the browser to idle in complete thread-blocking inactivity for a specified number of milliseconds.

Field Detail

VERSION

<static> <final> Object VERSION

Constructor Detail

PTCommonUtil

PTCommonUtil()

Method Detail

copyObject

<static> Object copyObject(srcObj,destObj)

getCSSClassStyleProperty

<static> Object getCSSClassStyleProperty(className, propertyName)

getCSSClassStyles

<static> Object getCSSClassStyles(className)

getElementById

<static> Element getElementById(id)

getIEVersion

<static> Number getIEVersion()

getNNVersion

<static> Number getNNVersion()

getRelativePosition

<static> Object getRelativePosition(childDiv,parentDiv,ignoreBorders)

getRemoteStyleClassProperty

<static> Object getRemoteStyleClassProperty(doc,className,attrName)

getScripts

<static> Array getScripts()

getServerFromURL

<static> String getServerFromURL(url)

getStyleClass

<static> Object getStyleClass(className)

getStyleClassFromDocument

<static> Object getStyleClassFromDocument(doc,className)

getStyleClassProperty

<static> Object getStyleClassProperty(className,attrName)

getValueForStyleAttribute

<static> String getValueForStyleAttribute(s,attr)

isDefined

<static> Boolean isDefined(obj)

parseGet

<static> Hash parseGet(url)

scrollDivIntoView

<static> void scrollDivIntoView(object,container)

sortCaseInsensitive

<static> Number sortCaseInsensitive(aa,bb)

sortForward

<static> Number sortForward(aa,bb)

sortHashByKeys

<static> Hash sortHashByKeys(hash,preserveFirstKey,isCaseInsensitive,doReverseSort)

sortNumeric

<static> Number sortNumeric(a,b)

sortReverse

<static> Number sortReverse(aa,bb)

sortReverseCaseInsensitive

<static> Number sortReverseCaseInsensitive(aa,bb)

wait

<static> void wait(ms)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005