private String getFeatureKey ( CoreScriptFeature feature ) { switch ( feature . getIntValue ( ) ) { case CoreScriptFeature . INT_ANCHOR_SUBMIT : return "anchorFormSubmit" ; case CoreScriptFeature . INT_SET_FOCUS : return "setFocus" ; case CoreScriptFeature . INT_POPUP_OPEN : return "popupSupportPopupWindow" ; case CoreScriptFeature . INT_POPUP_DONE : return "popupDone" ; case CoreScriptFeature . INT_POPUP_UPDATE_FORM : return "popupSupportUpdateForm" ; case CoreScriptFeature . INT_ROLLOVER : return "rollover" ; case CoreScriptFeature . INT_TREE_INIT : return "initTree" ; case CoreScriptFeature . INT_AJAX_PREFIX : return "initTreePrefix" ; case CoreScriptFeature . INT_AJAX_PARAM : return "initTreeParam" ; case CoreScriptFeature . INT_DIVPANEL_INIT : return "initDivPanel" ; case CoreScriptFeature . INT_DYNAMIC_INIT : return "writeWebAppName" ; case CoreScriptFeature . INT_BUTTON_DISABLE_AND_SUBMIT : return "buttonDisableAndSubmitForm" ; case CoreScriptFeature . INT_BUTTON_DISABLE : return "buttonDisable" ; } assert ( false ) : "getFeature fell through on feature:" + feature ; return null ; }
This will map the Features into their keys