摘要: public static ProductView getProductDetail(String id) { String path ="http://192.168.7.45:8080/Service/ws/product/detail/"+id; URL url = null; Pro... 阅读全文
posted @ 2014-11-19 15:42 pretty flower 阅读(180) 评论(0) 推荐(0)
摘要: str = str.replaceAll("'", "''").replaceAll("\"", """); 阅读全文
posted @ 2014-07-07 18:17 pretty flower 阅读(383) 评论(0) 推荐(0)
摘要: @SuppressWarnings("unchecked") public User getUser(String id,String name) { SoftReference softRestTemplate = new SoftReference(restTemplate); String... 阅读全文
posted @ 2014-06-27 13:57 pretty flower 阅读(255) 评论(0) 推荐(0)
摘要: @Inject private RestTemplate restTemplate;@SuppressWarnings("unchecked") public User updateUser(User user) { SoftReference softRestTemplate = new Sof... 阅读全文
posted @ 2014-06-27 11:42 pretty flower 阅读(487) 评论(0) 推荐(0)
摘要: HttpClient client = new HttpClient(); client.getHttpConnectionManager().getParams().setConnectionTimeout(connectionTimeout); HttpClientParams para... 阅读全文
posted @ 2014-06-27 11:27 pretty flower 阅读(289) 评论(0) 推荐(0)
摘要: Flex特效之AnimateProperty动画效果:<mx:AnimateProperty id="animateProperty"property="scaleX" fromValue="1 "toValue="2"duration="1000"/><mx:Image id="img" source="assets/plane.png" mouseDownEffect="{animateP roperty}"/&g 阅读全文
posted @ 2013-01-31 15:03 pretty flower 阅读(454) 评论(0) 推荐(0)
摘要: 几个常见的Flex效果,我们可以通过设置repeatCount属性和repeatDelay属性,来分别控制效果播放的次数和重复播放效果的时间间隔(以毫秒为单位);Flex中提供了丰富的效果组件。由于效果是一种根据时间渐变的过程,因此所有效果都具有duration属性,用来设置播放时间(以毫秒为单位)。如果希望在触发器被触发后,延迟一段时间调用效果,可以使用startDelay属性。Glow是一种发光效果,该效果使用了flash.filters.GlowFilter滤镜类:<mx:Glowidmx:Glowid="glowImage"duration="100 阅读全文
posted @ 2013-01-31 14:32 pretty flower 阅读(249) 评论(0) 推荐(0)
摘要: [Bindable] [Embed(source="assets/Nokia_lg_v_keypad.png")] public var phone4:Class;<mx:HorizontalList id="CameraSelection" height="250" columnCount="3" columnWidth="125"> <mx:dataProvider> <mx:Array> <mx:Object label="Nokia 6 阅读全文
posted @ 2012-12-25 14:23 pretty flower 阅读(120) 评论(0) 推荐(0)
摘要: <mx:XMLList id="employees"> <employee> <name>Christina Coenraets</name> <phone>555-219-2270</phone> <email>ccoenraets@fictitious.com</email> <active>true</active> </employee> <employee> <name>Joanne Wall</name 阅读全文
posted @ 2012-12-25 14:09 pretty flower 阅读(122) 评论(0) 推荐(0)
摘要: [Bindable] public var cards: Array = [ {label:"Visa", data:1}, {label:"MasterCard", data:2}, {label:"American Express", data:3} ]; [Bindable] public var selectedItem:Object;<mx:ComboBox dataProvider="{cards}" width="150" close="selectedItem=C 阅读全文
posted @ 2012-12-25 13:51 pretty flower 阅读(221) 评论(0) 推荐(0)