|
The Gravey 2.0 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--GLOBALS
| Method Summary | |
<static> Function
|
Class( <Function> theClass, <StringArray> optConstructorArgDescArray )
Declare a class and create the glue objects and code to allow "pretty" source; A mechanism is set up to insure that required constructor parameters each have a defined value; This function also defines the "name" attribute of the specified class and initializes it with the class name. |
<static> void
|
EDOInitialize( <EDOHolderModel> edoHolder, <Function> edoIndexClass, <Function> edoHolderViewClass, optCounterViewClass, <PopupMenuController> optMenuCtrlr )
Initialize EDO Framework global variables. |
<static> Object
|
grvAbstractException( funcName )
return the formatted message for a calling-abstract-method exception |
<static> boolean
|
grvAfter( <String> datestr, <Date> date )
Determine whether given date is at or before a given datestr (where empty means "future"). |
<static> boolean
|
grvAfterNow( <String> datestr )
Determine whether today is at or before a given date (where empty means "future"). |
<static> Object
|
grvAppName(appId)
|
<static> Object
|
grvArgsToString( args )
|
<static> Object
|
grvArrayToString( a )
|
<static> String
|
grvAsBoolStr(flag)
Generate string representation of given boolean value |
<static> void
|
grvASSERT(condition,msg)
throw an exception if given condition is not true |
<static> boolean
|
grvBefore( <String> datestr, <Date> date )
Determine whether a given datestr is explicitly before the given date. |
<static> boolean
|
grvBeforeNow( <String> datestr )
Determine whether a given date is explicitly before today. |
<static> boolean
|
grvBoolValue(s)
Evaluate boolean string value |
<static> Object
|
grvBreak(msg)
output the given message and ask user if they wish to break |
<static> void
|
grvBreakpoint()
cause the debugger to stop (ala a breakpoint) |
<static> void
|
grvBusy()
set the cursor to the hourglass icon |
<static> void
|
grvBusyDo( <String> funcname, <String> funcargs, <int> optDelayMilliSecs )
generic utility function to queue up for future execution the specified function with the specified arguments after a specified amount of delay. |
<static> void
|
grvClearGlobalVar( <String> varname )
static routine to dynamically undefine/delete a global variable |
<static> void
|
grvClearGlobalVars()
static routine to dynamically undefine/delete ALL "...GlobalVars" variables |
<static> void
|
grvClearPersistentVars()
static routine to dynamically undefine/delete ALL "...PersistentVars" variables |
<static> boolean
|
grvDateKeyFilter( <int> keyCode, <String> valueSoFar )
is the given character a legal addition to the given dollar string |
<static> String
|
grvDateParseErrorMsg(dateStr)
Verify that given string contains a date. |
<static> void
|
grvDebugWindow( <String> contents )
open debug window with contents in scrollable area |
<static> String
|
grvDiamond(<boolean> optBlankFlag)
return the HTML to draw a diamond |
<static> boolean
|
grvDollarKeyFilter( <int> keyCode, <String> valueSoFar )
is the given character a legal addition to the given dollar string |
<static> Object
|
grvDollarStrFilter(s)
|
<static> String
|
grvDot()
return the HTML to draw a biggish dot |
<static> void
|
grvEditElem( e, makeSelected, makeEdited, makeInvalid, optUnselectColor )
|
<static> void
|
grvEditElemID( ID, makeSelected, makeEdited, makeInvalid )
|
<static> String
|
grvEpsilon()
return the HTML to draw a smallish "E" |
<static> void
|
grvError(msg)
output the given error message and ask user if they wish to break |
<static> Function
|
grvExtends( <Function> superClass )
This utility function takes (via "THIS") a "class" and (re)sets its superClass. |
<static> String
|
grvFilterNum( str )
remove dollar formatting characters from given string |
<static> Object
|
grvFormatDate( d, f )
|
<static> String
|
grvFormatDecimal( <anyType> v, <String> currencyPreSymbol, <String> currencyPostSymbol, <String> sepSymbol, <boolean> optZeroAsBlankFlag )
format given value as -<$>#<,>###.00<%> |
<static> String
|
grvFormatDollar( <anyType> v, <boolean> optZeroAsBlankFlag )
format given value as $#,###.00 |
<static> String
|
grvFormatDollarNot( v )
like format_dollar except empty string returned for zero |
<static> String
|
grvFormatErrorStr( msg )
format Server Error Messages |
<static> String
|
grvFormatLpadded( s,len,padChar )
pad or truncate to be exactly given length |
<static> String
|
grvFormatMultilineStr( s,len )
convert CRs to tags |
<static> String
|
grvFormatPaddedStr( s,len )
blankpad or truncate to be exactly given length |
<static> String
|
grvFormatPercent( <anyType> v, <boolean> optZeroAsBlankFlag )
format given value as ####.00% |
<static> String
|
grvFormatRpadded( s,len,padChar )
pad or truncate to be exactly given length |
<static> String
|
grvFuncName(<Function> f)
This function returns the name of a given function; It does this by using a regular expression to extract the function name from the function source code. |
<static> String
|
grvGenHook( <String> hookID, <String> optInnerHTML )
generate a piece of HTML, identified by the given ID, that can safely have its innerHTML replaced at runtime. |
<static> Object
|
grvGetArg( argname )
|
<static> Object
|
grvGetElemVisibility( e )
|
<static> Object
|
grvGetFormInt( ID )
|
<static> Object
|
grvGetFormValue( ID )
|
<static> Object
|
grvGetGlobalVar( <String> varname )
static routine to return the value of persistent variable with given name |
<static> Object
|
grvGetHook( hookID )
|
<static> Object
|
grvGetPersistentVar( <String> varname )
static routine to return the value of the persistent variable with given name |
<static> Object
|
grvGetTodayAsMMDDYYYY()
|
<static> Object
|
grvGetTodayAsXXDDYYYY(monthNames)
|
<static> Object
|
grvGetXslDOM( xslURL )
retrieve XSL DOM from given URL |
<static> Object
|
grvGlobalVar()
|
<static> void
|
grvHighlightElem( e, makeSelected, selectColor, optUnselectColor )
|
<static> void
|
grvImplements()
This utility function sets up multiple "implements" inheritance with all of the interfaces/classes passed in as parameters. |
<static> boolean
|
grvIsAlpha(s)
Verify that all characters in given string are alpha chars. |
<static> boolean
|
grvIsAlphaBlank(s)
Verify that all characters in given string are alpha or blank chars. |
<static> boolean
|
grvIsAlphaNum(s)
Verify that all characters in given string are alphanumeric chars. |
<static> Object
|
grvIsChecked( ID )
|
<static> boolean
|
grvIsDigit(c)
Verify that given character is a digit (0 .. |
<static> boolean
|
grvIsEmpty(x)
Verify that given string is "empty". |
<static> boolean
|
grvIsFalse(s)
Verify that given string equates to "false". |
<static> boolean
|
grvIsFloat(s)
Verify given string represents a float. |
<static> boolean
|
grvIsIntDelimInt(s,delim)
Verify that given string is a delimited integer |
<static> boolean
|
grvIsInteger(s)
Verify that given string contains an integer. |
<static> boolean
|
grvIsLetter(c)
Verify that given character is an English letter (A .. |
<static> boolean
|
grvIsPhoneNum(s)
Verify given string is a phone number. |
<static> boolean
|
grvIsSelected(s)
Verify that given string explicitly equates to "true". |
<static> boolean
|
grvIsSignedFloat(s)
Verify that given string contains a signed or unsigned floating point (real) number. |
<static> boolean
|
grvIsTrue(s)
Verify that given string equates to "true". |
<static> boolean
|
grvIsUndefined(<any> x)
Perform a robust test for JavaScript "undefined" using the wisdom at Dont Assume Undefined is Undefined. |
<static> Object
|
grvIsZeroDollars(v)
|
<static> boolean
|
grvIsZipCode(s)
Verify that the given string is a zip code |
<static> boolean
|
grvKeyFilter( <int> keyCode, <String> allowedChars )
Is the given keyCode in the given list of allowed characters? |
<static> void
|
grvLoudThrow( exceptionObj )
throw an exception but first give user a chance to "break" |
<static> Object
|
grvMissingArgException( argDesc, funcName )
return the formatted message for a missing-argument exception |
<static> void
|
grvMustOverride( funcName )
throw an exception because given function is abstract |
<static> boolean
|
grvNoDuplicates( <String> s, <String> charList )
Is there no more than one occurance of each character in the given character list in the given string? |
<static> void
|
grvNotBusy()
set the cursor to the default icon |
<static> void
|
grvNotImplemented( what )
throw an exception because given functionality is unimplemented |
<static> Object
|
grvNotImplementedException( what )
return the formatted message for a not-implemented exception |
<static> Object
|
grvObjectToInitializer( o )
|
<static> Object
|
grvObjectToShortInitializer( o )
|
<static> Object
|
grvObjectToString( o )
|
<static> Object
|
grvPersistentVar()
|
<static> Object
|
grvPleaseWait( <boolean> enableFlag, <String> msg, appId )
create and open a window (if enabled) with the specified message |
<static> String
|
grvRightArrow()
return the HTML to draw a bold right arrow |
<static> void
|
grvSelectElem( e, makeSelected, optUnselectColor )
|
<static> void
|
grvSelectElemID( ID, makeSelected, optUnselectColor )
|
<static> void
|
grvSendStatusMessage( <String> msg )
send a message to the browser status bar |
<static> void
|
grvSetBackgroundColor( ID, color )
|
<static> void
|
grvSetButtonElemText( button, str )
|
<static> void
|
grvSetButtonText( buttonId, str )
|
<static> void
|
grvSetElemBackgroundColor( e, color )
|
<static> void
|
grvSetElemDisplay( e, visibleFlag )
|
<static> void
|
grvSetElemText( e, str )
|
<static> void
|
grvSetElemVisibility( e, visibleFlag )
|
<static> void
|
grvSetFormValue( ID, theValue )
|
<static> void
|
grvSetGlobalVar( <String> varname, <Object> value )
static routine to dynamically define/update a global (to window/page but reloaded with page) variable with the given name and value. |
<static> void
|
grvSetPersistentVar( <String> varname, <Object> value )
static routine to dynamically define/update a persistent (across page loads) variable with the given name and value. |
<static> void
|
grvSetText( ID, str )
|
<static> void
|
grvSetVisibility( ID, visibleFlag )
|
<static> boolean
|
grvStrFilter( s, <String> allowedChars )
Does the given string consist of only characters in the given list of allowed characters? |
<static> String
|
grvSubitem( isInValid )
return the HTML to draw a subitem bullet |
<static> Object
|
grvTimestamp()
|
<static> Object
|
grvTooFewArgsException( funcName, required, passed )
return the formatted message for a too-few-arguments exception |
<static> Object
|
grvTrace(flag,msg)
|
<static> Object
|
grvTraceEvt(msg)
|
<static> Object
|
grvTraceMrk(msg)
|
<static> Object
|
grvTraceMsg(msg)
|
<static> Object
|
grvTraceMVC(msg)
|
<static> Object
|
grvTraceObj(msg)
|
<static> Object
|
grvTraceTODO(msg)
|
<static> String
|
grvTrimStr(sInString)
Strip leading and trailing whitespace from given string |
<static> void
|
grvUNWAIT(appId)
close the "please wait" window if it exists otherwise no effect |
<static> boolean
|
grvUpperKeyFilter( <int> keyCode, <String> valueSoFar )
convert the given character to uppercase |
<static> String
|
grvURLDecode( <String> encoded )
This decodes URL-encoded strings because the Javascript function "unescape" only does part of the job; adapted from here. |
<static> void
|
grvValidateArgs( callerName, <StringArray> argDescArray, callersArgs )
generic utility function to verify that required args (of the caller of this function) have been passed; The given array of descriptions defines how many arguments should be found with a defined value; Therefore, the caller of this routine should place its optional arguments at the end of its parameter list with no description specified in "optArgDescArray". |
<static> void
|
grvValidateDate( fieldName )
validate date value of form field with given element ID |
<static> void
|
grvValidateDollar( fieldName )
validate dollar value of form field with given element ID |
<static> void
|
grvValidateFloat( fieldName )
validate float value of form field with given element ID |
<static> void
|
grvValidateInteger( fieldName )
validate integer value of form field with given element ID |
<static> void
|
grvWAIT(appId)
Create an idempotent "wait a minute" window, if one doesn't exist, and squirrel away a reference to it that survives window reloads |
<static> boolean
|
grvWAITING(appId)
are we in "please wait" mode? |
<static> Object
|
grvWaitWindowName(appId)
|
<static> void
|
grvWarnInvalid(<element> theField, <String> s)
Notify user that contents of field theField are invalid. |
<static> String
|
grvXformDOM( xslDOM, xmlDOM )
transform given XML DOM using given XSLT DOM |
<static> String
|
grvXformURL( xslURL, xmlDOM )
transform given XML DOM using an XSLT retrieved from given URL |
<static> Object
|
handleEvent(aEvent) * { * var myEvent = aEvent ? aEvent : window.event; * } * * @author Bruce Wallace (PolyGlotInc.com) * @requires grvUtils.js * @requires grvValidate.js * @requires grvClass.js * @version 2.0 */ var kMVCImgPath = "/images/"; var kMVCDim_ = "DIM_"; var kMVCImgSpacer = 'spacer.gif'; var kMVCImgRedSpacer = 'redspacer.gif'; var kMVCImgCalendar = 'calendar.gif'; function mvcSPACER()
|
<static> boolean
|
mvcDoCmd( command )
Do the given command in "synchonized" mode (meaning that it will wait until commands that are already running/queued have finished). |
<static> String
|
mvcEmbedAttributeViewer( <MVCView> parentView, <String> attribute, <Function> optFormatter, <Object> optParam )
Create and embed, as a subview, a MVCScalarView of the specified data model attribute. |
<static> String
|
mvcEmbedBoolDualEditor( <MVCView> parentView, <String> attribute, <int> min, <String> className )
Create and embed, as a subview, a MVCDualBoolController of the specified data model attribute which is expected to be a (boolean) data element. |
<static> String
|
mvcEmbedChkBoxDualEditor( <MVCView> parentView, <String> attribute, <int> min, <String> className )
Create and embed, as a subview, a MVCDualChkBoxController of the specified data model attribute which is expected to be a (boolean) data element. |
<static> String
|
mvcEmbedDateDualEditor( <MVCView> parentView, <String> attribute, <String> className )
Create and embed, as a subview, a MVCDualDateController of the specified data model attribute which is expected to be a String data element containing a Date. |
<static> String
|
mvcEmbedDollarDualEditor( <MVCView> parentView, <String> attribute, <String> className, <Function> optFormatFunction )
Create and embed, as a subview, a MVCDualDollarController of the specified data model attribute which is expected to be a dollar amount data element. |
<static> String
|
mvcEmbedDualMenu( <MVCView> parentView, <String> attribute, <MVCSelectionModel> menuModel, <String> className, <String> optEvtHndlrName, <String> optInitDesc )
Create and embed, as a subview, a MVCDualMenuController of the specified data model attribute |
<static> String
|
mvcEmbedStringDualEditor( <MVCView> parentView, <String> attribute, <int> min, <int> max, <String> className, <Function> optKeyFilter )
Create and embed, as a subview, a MVCDualStringController of the specified data model attribute which is expected to be a String data element. |
<static> String
|
mvcEmbedTextDualEditor( <MVCView> parentView, <String> attribute, <int> rows, <int> cols, <int> max, <String> className )
Create and embed, as a subview, a MVCDualTextController of the specified data model attribute which is expected to be a String data element. |
<static> Object
|
mvcREDSPACER600()
|
<static> Object
|
mvcREDSPACER768()
|
<static> Object
|
mvcSECTIONBREAK()
|
<static> void
|
onEDOAddClick( <EDOIndex> xi )
handle event for 'click on an EDO Add Button' |
<static> void
|
onEDOClick( <EDOIndex> xi )
handle event for 'click on an EDO' |
<static> void
|
onEDODeleteBtnPressed()
handle event for 'delete EDO button pressed' |
<static> void
|
onEDOEditBtnPressed()
handle event for 'edit EDO button pressed' |
<static> void
|
onEDOHolderCancelBtnPressed()
handle event for 'cancel button pressed' |
<static> void
|
onEDOHolderExitBtnPressed()
handle event for 'exit button pressed' |
<static> void
|
onEDOHolderLoadReply( <XMLreq> xmlReq )
handle event for 'reply received from "load EDOHolder data" server-request' |
<static> void
|
onEDOHolderPageBeforeUnLoad()
|
<static> void
|
onEDOHolderPageLoad()
handle event for 'entering EDOHolder web page' |
<static> void
|
onEDOHolderSaveBtnPressed()
handle event for 'save button pressed' |
<static> void
|
onEDOHolderSaveReply( <XMLreq> xmlReq )
handle event for 'reply received from "save EDOHolder data" server-request' |
<static> void
|
onEDOHolderSelect( <int> selectedHolderIndex )
handle event for 'user selects from the select menu which loads a new EDOHolder' |
<static> void
|
onEDOInsertBtnPressed()
handle event for 'insert EDO button pressed' |
<static> void
|
onEDOToggle( <EDOIndex> xi )
handle event for 'toggle an EDO' |
<static> void
|
onMVCFieldEditFocus( <Element> field )
handle "entering a text field" event per webreference tip) |
<static> boolean
|
onMVCFieldEditKey( <String> viewID )
handle "key pressed" events in text fields |
<static> Object
|
onMVCGlobalKeyPress()
pre-screen all keypress events for entire page This implementation handles ctrl-z and ctrl-y to invoke Undo and Redo respectively. |
<static> void
|
onMVCRedoBtnPressed()
redo-button-pressed event handler |
<static> boolean
|
onMVCScalarEditUpdate( <String> viewID )
ScalarEditController update-event handler |
<static> void
|
onMVCUndoBtnPressed()
undo-button-pressed event handler |
| Method Detail |
<static> Function Class( <Function> theClass, <StringArray> optConstructorArgDescArray )
theClass - the "class constructor" function
optConstructorArgDescArray - optional array of strings describing required parameters for this class' "constructor"; Note: Optional constructor parameters should not be included in this array.
<static> void EDOInitialize( <EDOHolderModel> edoHolder, <Function> edoIndexClass, <Function> edoHolderViewClass, optCounterViewClass, <PopupMenuController> optMenuCtrlr )
edoHolder - wrapper model for set of EDOs
edoIndexClass - class of index used with EDOHolder
edoHolderViewClass - "class" of EDOHolderView to use
optMenuCtrlr - optional menu override
counterViewClass - "class" of EDOCountersView to use
<static> Object grvAbstractException( funcName )
<static> boolean grvAfter( <String> datestr, <Date> date )
datestr - string rendition of date in Date.parse format
date - date object to compare to
<static> boolean grvAfterNow( <String> datestr )
datestr - string rendition of date in Date.parse format
<static> Object grvAppName(appId)
<static> Object grvArgsToString( args )
<static> Object grvArrayToString( a )
<static> String grvAsBoolStr(flag)
<static> void grvASSERT(condition,msg)
<static> boolean grvBefore( <String> datestr, <Date> date )
datestr - string rendition of date in Date.parse format
date - date object to compare to
<static> boolean grvBeforeNow( <String> datestr )
datestr - string rendition of date in Date.parse format
<static> boolean grvBoolValue(s)
<static> Object grvBreak(msg)
<static> void grvBreakpoint()
<static> void grvBusy()
<static> void grvBusyDo( <String> funcname, <String> funcargs, <int> optDelayMilliSecs )
funcname - the name of the function to call
funcargs - a string image of the parameters to be passed
optDelayMilliSecs - optional delay amount (default 5 milliSeconds)
<static> void grvClearGlobalVar( <String> varname )
varname - name of "persistent" variable
<static> void grvClearGlobalVars()
<static> void grvClearPersistentVars()
<static> boolean grvDateKeyFilter( <int> keyCode, <String> valueSoFar )
keyCode - the proposed new character
valueSoFar - the value so far
<static> String grvDateParseErrorMsg(dateStr)
<static> void grvDebugWindow( <String> contents )
contents - what to put into this debug window
<static> String grvDiamond(<boolean> optBlankFlag)
optBlankFlag - if true, says generate blanks of same size as 1 diamond
<static> boolean grvDollarKeyFilter( <int> keyCode, <String> valueSoFar )
keyCode - the proposed new character
valueSoFar - the value so far
<static> Object grvDollarStrFilter(s)
<static> String grvDot()
<static> void grvEditElem( e, makeSelected, makeEdited, makeInvalid, optUnselectColor )
<static> void grvEditElemID( ID, makeSelected, makeEdited, makeInvalid )
<static> String grvEpsilon()
<static> void grvError(msg)
<static> Function grvExtends( <Function> superClass )
superClass - the "superclass constructor" function
<static> String grvFilterNum( str )
<static> Object grvFormatDate( d, f )
<static> String grvFormatDecimal( <anyType> v, <String> currencyPreSymbol, <String> currencyPostSymbol, <String> sepSymbol, <boolean> optZeroAsBlankFlag )
v - value to format
currencyPreSymbol - prefix "currency symbol" to add
currencyPostSymbol - postfix "currency symbol" to add
sepSymbol - thousands "separator" to add
optZeroAsBlankFlag - optional flag to make zero format as blank
<static> String grvFormatDollar( <anyType> v, <boolean> optZeroAsBlankFlag )
v - value to format
optZeroAsBlankFlag - optional flag to make zero format as blank
<static> String grvFormatDollarNot( v )
<static> String grvFormatErrorStr( msg )
<static> String grvFormatLpadded( s,len,padChar )
<static> String grvFormatMultilineStr( s,len )
<static> String grvFormatPaddedStr( s,len )
<static> String grvFormatPercent( <anyType> v, <boolean> optZeroAsBlankFlag )
v - value to format
optZeroAsBlankFlag - optional flag to make zero format as blank
<static> String grvFormatRpadded( s,len,padChar )
<static> String grvFuncName(<Function> f)
f - reference to a function
<static> String grvGenHook( <String> hookID, <String> optInnerHTML )
hookID - name of the HTML to be generated
optInnerHTML - optional HTML to be inserted into the generated HTML
<static> Object grvGetArg( argname )
<static> Object grvGetElemVisibility( e )
<static> Object grvGetFormInt( ID )
<static> Object grvGetFormValue( ID )
<static> Object grvGetGlobalVar( <String> varname )
varname - name of "global" i.e. "static" variable
<static> Object grvGetHook( hookID )
<static> Object grvGetPersistentVar( <String> varname )
varname - name of "persistent" variable
<static> Object grvGetTodayAsMMDDYYYY()
<static> Object grvGetTodayAsXXDDYYYY(monthNames)
<static> Object grvGetXslDOM( xslURL )
<static> Object grvGlobalVar()
<static> void grvHighlightElem( e, makeSelected, selectColor, optUnselectColor )
<static> void grvImplements()
<static> boolean grvIsAlpha(s)
<static> boolean grvIsAlphaBlank(s)
<static> boolean grvIsAlphaNum(s)
<static> Object grvIsChecked( ID )
<static> boolean grvIsDigit(c)
<static> boolean grvIsEmpty(x)
<static> boolean grvIsFalse(s)
<static> boolean grvIsFloat(s)
<static> boolean grvIsIntDelimInt(s,delim)
<static> boolean grvIsInteger(s)
<static> boolean grvIsLetter(c)
<static> boolean grvIsPhoneNum(s)
<static> boolean grvIsSelected(s)
<static> boolean grvIsSignedFloat(s)
<static> boolean grvIsTrue(s)
<static> boolean grvIsUndefined(<any> x)
x - variable to check for undefinedness
<static> Object grvIsZeroDollars(v)
<static> boolean grvIsZipCode(s)
<static> boolean grvKeyFilter( <int> keyCode, <String> allowedChars )
keyCode - the charCode of the character to validate
allowedChars - the list of characters that are allowed
<static> void grvLoudThrow( exceptionObj )
<static> Object grvMissingArgException( argDesc, funcName )
<static> void grvMustOverride( funcName )
<static> boolean grvNoDuplicates( <String> s, <String> charList )
s - string to check
charList - list of characters that should occur only once
<static> void grvNotBusy()
<static> void grvNotImplemented( what )
<static> Object grvNotImplementedException( what )
<static> Object grvObjectToInitializer( o )
<static> Object grvObjectToShortInitializer( o )
<static> Object grvObjectToString( o )
<static> Object grvPersistentVar()
<static> Object grvPleaseWait( <boolean> enableFlag, <String> msg, appId )
enableFlag - iff true then create window
msg - message to place in window
<static> String grvRightArrow()
<static> void grvSelectElem( e, makeSelected, optUnselectColor )
<static> void grvSelectElemID( ID, makeSelected, optUnselectColor )
<static> void grvSendStatusMessage( <String> msg )
msg - the message to send.
<static> void grvSetBackgroundColor( ID, color )
<static> void grvSetButtonElemText( button, str )
<static> void grvSetButtonText( buttonId, str )
<static> void grvSetElemBackgroundColor( e, color )
<static> void grvSetElemDisplay( e, visibleFlag )
<static> void grvSetElemText( e, str )
<static> void grvSetElemVisibility( e, visibleFlag )
<static> void grvSetFormValue( ID, theValue )
<static> void grvSetGlobalVar( <String> varname, <Object> value )
varname - name of "persistent" variable
value - value to set variable to
<static> void grvSetPersistentVar( <String> varname, <Object> value )
varname - name of "persistent" variable
value - value to set variable to
<static> void grvSetText( ID, str )
<static> void grvSetVisibility( ID, visibleFlag )
<static> boolean grvStrFilter( s, <String> allowedChars )
allowedChars - the list of characters that are allowed
keyCode - the charCode of the character to validate
<static> String grvSubitem( isInValid )
<static> Object grvTimestamp()
<static> Object grvTooFewArgsException( funcName, required, passed )
<static> Object grvTrace(flag,msg)
<static> Object grvTraceEvt(msg)
<static> Object grvTraceMrk(msg)
<static> Object grvTraceMsg(msg)
<static> Object grvTraceMVC(msg)
<static> Object grvTraceObj(msg)
<static> Object grvTraceTODO(msg)
<static> String grvTrimStr(sInString)
<static> void grvUNWAIT(appId)
<static> boolean grvUpperKeyFilter( <int> keyCode, <String> valueSoFar )
keyCode - the proposed new character
valueSoFar - the value so far
<static> String grvURLDecode( <String> encoded )
encoded - the URL-encoded string to translate
<static> void grvValidateArgs( callerName, <StringArray> argDescArray, callersArgs )
argDescArray - array of strings describing required parameters; Note: Optional constructor parameters should not be included in this array.
<static> void grvValidateDate( fieldName )
<static> void grvValidateDollar( fieldName )
<static> void grvValidateFloat( fieldName )
<static> void grvValidateInteger( fieldName )
<static> void grvWAIT(appId)
<static> boolean grvWAITING(appId)
<static> Object grvWaitWindowName(appId)
<static> void grvWarnInvalid(<element> theField, <String> s)
theField - HTML element containing form field
s - describes expected contents of theField.value.
<static> String grvXformDOM( xslDOM, xmlDOM )
<static> String grvXformURL( xslURL, xmlDOM )
<static> Object handleEvent(aEvent) * { * var myEvent = aEvent ? aEvent : window.event; * } * * @author Bruce Wallace (PolyGlotInc.com) * @requires grvUtils.js * @requires grvValidate.js * @requires grvClass.js * @version 2.0 */ var kMVCImgPath = "/images/"; var kMVCDim_ = "DIM_"; var kMVCImgSpacer = 'spacer.gif'; var kMVCImgRedSpacer = 'redspacer.gif'; var kMVCImgCalendar = 'calendar.gif'; function mvcSPACER()
<static> boolean mvcDoCmd( command )
<static> String mvcEmbedAttributeViewer( <MVCView> parentView, <String> attribute, <Function> optFormatter, <Object> optParam )
parentView - the view to embed the new view into
attribute - the identifier of the attribute of the parent view's primary data model to view
optFormatter - optional formatter function
optParam - optional parameter to pass to model method if the attribute actually refers to a method rather than a data element
<static> String mvcEmbedBoolDualEditor( <MVCView> parentView, <String> attribute, <int> min, <String> className )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
min - minimum number of chars to support (i.e. display size)
className - the CSS classname to use for formatting
<static> String mvcEmbedChkBoxDualEditor( <MVCView> parentView, <String> attribute, <int> min, <String> className )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
min - minimum number of chars to support (i.e. display size)
className - the CSS classname to use for formatting
<static> String mvcEmbedDateDualEditor( <MVCView> parentView, <String> attribute, <String> className )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
className - the CSS classname to use for formatting
<static> String mvcEmbedDollarDualEditor( <MVCView> parentView, <String> attribute, <String> className, <Function> optFormatFunction )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
className - the CSS classname to use for formatting
optFormatFunction - optional formatter function
<static> String mvcEmbedDualMenu( <MVCView> parentView, <String> attribute, <MVCSelectionModel> menuModel, <String> className, <String> optEvtHndlrName, <String> optInitDesc )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
menuModel - data model for the popup menu
className - the CSS classname to use for formatting
optEvtHndlrName - optional edit event handler (default is to launch a MVCScalarEditCmd command).
optInitDesc - optional initial description string
<static> String mvcEmbedStringDualEditor( <MVCView> parentView, <String> attribute, <int> min, <int> max, <String> className, <Function> optKeyFilter )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
min - minimum number of chars to support (i.e. display size)
max - maximum number of chars to support
className - the CSS classname to use for formatting
optKeyFilter - optional keypress filter function
<static> String mvcEmbedTextDualEditor( <MVCView> parentView, <String> attribute, <int> rows, <int> cols, <int> max, <String> className )
parentView - the view to embed the new controller into
attribute - the identifier of the attribute of the parent view's primary data model to view/edit
rows - number of rows to support
cols - number of cols to support
max - maximum number of chars to support
className - the CSS classname to use for formatting
<static> Object mvcREDSPACER600()
<static> Object mvcREDSPACER768()
<static> Object mvcSECTIONBREAK()
<static> void onEDOAddClick( <EDOIndex> xi )
xi - index of EDO to append after
<static> void onEDOClick( <EDOIndex> xi )
xi - index of EDO clicked
<static> void onEDODeleteBtnPressed()
<static> void onEDOEditBtnPressed()
<static> void onEDOHolderCancelBtnPressed()
<static> void onEDOHolderExitBtnPressed()
<static> void onEDOHolderLoadReply( <XMLreq> xmlReq )
xmlReq - the XML request being replied to
<static> void onEDOHolderPageBeforeUnLoad()
<static> void onEDOHolderPageLoad()
<static> void onEDOHolderSaveBtnPressed()
<static> void onEDOHolderSaveReply( <XMLreq> xmlReq )
xmlReq - the XML request being replied to
<static> void onEDOHolderSelect( <int> selectedHolderIndex )
selectedHolderIndex - the new menu-selection
<static> void onEDOInsertBtnPressed()
<static> void onEDOToggle( <EDOIndex> xi )
xi - index of EDO to collapse/expand
<static> void onMVCFieldEditFocus( <Element> field )
field - HTML element of text field generating this event
<static> boolean onMVCFieldEditKey( <String> viewID )
viewID - view ID of the MVCFieldEditController generating this event.
<static> Object onMVCGlobalKeyPress()
<static> void onMVCRedoBtnPressed()
<static> boolean onMVCScalarEditUpdate( <String> viewID )
viewID - view ID of the MVCScalarEditController generating this event.
<static> void onMVCUndoBtnPressed()
|
The Gravey 2.0 Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||