You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Query.gwt.xml 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--
  2. Copyright 2011, The gwtquery team.
  3. Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. use this file except in compliance with the License. You may obtain a copy of
  5. the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  9. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  10. License for the specific language governing permissions and limitations under
  11. the License.
  12. -->
  13. <module>
  14. <inherits name='com.google.gwt.user.User'/>
  15. <generate-with class="com.google.gwt.query.rebind.LazyGenerator">
  16. <when-type-assignable class="com.google.gwt.query.client.Lazy"/>
  17. </generate-with>
  18. <!-- Selector Generators -->
  19. <generate-with class="com.google.gwt.query.rebind.SelectorGeneratorJS">
  20. <when-type-assignable class="com.google.gwt.query.client.Selectors"/>
  21. </generate-with>
  22. <generate-with class="com.google.gwt.query.rebind.SelectorGeneratorNative">
  23. <when-type-assignable class="com.google.gwt.query.client.Selectors"/>
  24. <any>
  25. <when-property-is name="user.agent" value="gecko1_8"/>
  26. <when-property-is name="user.agent" value="opera"/>
  27. <when-property-is name="user.agent" value="safari"/>
  28. </any>
  29. </generate-with>
  30. <generate-with class="com.google.gwt.query.rebind.SelectorGeneratorNativeIE8">
  31. <when-type-assignable class="com.google.gwt.query.client.Selectors"/>
  32. <when-property-is name="user.agent" value="ie8"/>
  33. </generate-with>
  34. <!-- Document Style -->
  35. <replace-with class="com.google.gwt.query.client.impl.DocumentStyleImpl">
  36. <when-type-assignable class="com.google.gwt.query.client.impl.DocumentStyleImpl"/>
  37. </replace-with>
  38. <replace-with class="com.google.gwt.query.client.impl.DocumentStyleImplIE">
  39. <when-type-assignable class="com.google.gwt.query.client.impl.DocumentStyleImpl"/>
  40. <any>
  41. <when-property-is name="user.agent" value="ie6"/>
  42. <when-property-is name="user.agent" value="ie8"/>
  43. </any>
  44. </replace-with>
  45. <!-- Selector Engines -->
  46. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineCssToXPath">
  47. <when-type-assignable class="com.google.gwt.query.client.impl.HasSelector"/>
  48. </replace-with>
  49. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineSizzleIE">
  50. <when-type-assignable class="com.google.gwt.query.client.impl.HasSelector"/>
  51. <any>
  52. <when-property-is name="user.agent" value="ie8"/>
  53. <when-property-is name="user.agent" value="ie6"/>
  54. </any>
  55. </replace-with>
  56. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineSizzle">
  57. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  58. </replace-with>
  59. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineSizzleIE">
  60. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  61. <when-property-is name="user.agent" value="ie6"/>
  62. </replace-with>
  63. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineNative">
  64. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  65. <any>
  66. <when-property-is name="user.agent" value="gecko1_8"/>
  67. <when-property-is name="user.agent" value="opera"/>
  68. <when-property-is name="user.agent" value="safari"/>
  69. </any>
  70. </replace-with>
  71. <replace-with class="com.google.gwt.query.client.impl.SelectorEngineNativeIE8">
  72. <when-type-assignable class="com.google.gwt.query.client.impl.SelectorEngineImpl"/>
  73. <when-property-is name="user.agent" value="ie8"/>
  74. </replace-with>
  75. <!-- UI implementations -->
  76. <replace-with
  77. class="gwtquery.plugins.commonui.client.GQuery.GQueryUiImplTrident">
  78. <when-type-is
  79. class="gwtquery.plugins.commonui.client.GQuery.GQueryUiImpl" />
  80. <any>
  81. <when-property-is name="user.agent" value="ie6" />
  82. <when-property-is name="user.agent" value="ie8" />
  83. </any>
  84. </replace-with>
  85. <!-- IE8 needs the iframe where the js of app is loaded set to standard in order
  86. to use the queryAll native selector -->
  87. <define-linker name="stddoctype" class="com.google.gwt.query.linker.IFrameWithDocTypeLinker"/>
  88. <add-linker name="stddoctype"/>
  89. </module>