public void setUseGoogIsRtlForBidiGlobalDir ( boolean useGoogIsRtlForBidiGlobalDir ) { Preconditions . checkState ( ! useGoogIsRtlForBidiGlobalDir || shouldGenerateGoogMsgDefs , "Do not specify useGoogIsRtlForBidiGlobalDir without shouldGenerateGoogMsgDefs." ) ; Preconditions . checkState ( ! useGoogIsRtlForBidiGlobalDir || bidiGlobalDir == 0 , "Must not specify both bidiGlobalDir and useGoogIsRtlForBidiGlobalDir." ) ; this . useGoogIsRtlForBidiGlobalDir = useGoogIsRtlForBidiGlobalDir ; }
Sets the Javascript code snippet that will evaluate at template runtime to a boolean value indicating whether the bidi global direction is rtl . Can only be used when shouldGenerateGoogMsgDefs is true .