[sandbox.akabana]/trunk/yui-frameworks/yui-framework/src/main/flex/jp/akb7/yui/customizer/AbstractComponentCustomizer.as
Parent Directory
|
Revision Log
Revision 1739 -
(show annotations)
Fri Mar 2 17:51:57 2012 JST (14 months, 3 weeks ago) by e1arkw
File size: 2346 byte(s)
Fri Mar 2 17:51:57 2012 JST (14 months, 3 weeks ago) by e1arkw
File size: 2346 byte(s)
パッケージ名変更
| 1 | /* |
| 2 | * Copyright 2004-2011 the Seasar Foundation and the Others. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 13 | * either express or implied. See the License for the specific language |
| 14 | * governing permissions and limitations under the License. |
| 15 | */ |
| 16 | package jp.akb7.yui.customizer |
| 17 | { |
| 18 | import __AS3__.vec.Vector; |
| 19 | |
| 20 | import flash.display.DisplayObjectContainer; |
| 21 | import flash.errors.IllegalOperationError; |
| 22 | import flash.utils.Dictionary; |
| 23 | |
| 24 | import mx.core.UIComponent; |
| 25 | |
| 26 | import jp.akb7.yui.core.YuiFrameworkController; |
| 27 | import jp.akb7.yui.core.ns.yui_internal; |
| 28 | import jp.akb7.yui.core.reflection.ClassRef; |
| 29 | import jp.akb7.yui.core.reflection.PropertyRef; |
| 30 | import jp.akb7.yui.logging.debug; |
| 31 | import jp.akb7.yui.message.MessageManager; |
| 32 | |
| 33 | [ExcludeClass] |
| 34 | public class AbstractComponentCustomizer implements IViewCustomizer { |
| 35 | |
| 36 | protected function setPropertiesValue(target:Object,varClassName:String,value:Object):void { |
| 37 | const targetClassRef:ClassRef = getClassRef(target); |
| 38 | const propertyRefs:Vector.<PropertyRef> = targetClassRef.getPropertyRefByType(varClassName); |
| 39 | |
| 40 | if(propertyRefs != null) { |
| 41 | for each(var propertyRef:PropertyRef in propertyRefs) { |
| 42 | propertyRef.setValue(target,value); |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | public function customizeView( view:UIComponent ):void{ |
| 48 | throw new IllegalOperationError("can't call"); |
| 49 | } |
| 50 | |
| 51 | public function uncustomizeView( view:UIComponent ):void{ |
| 52 | throw new IllegalOperationError("can't call"); |
| 53 | } |
| 54 | |
| 55 | CONFIG::DEBUG { |
| 56 | protected function _debug(resourceName:String,...parameters):void{ |
| 57 | debug( this, MessageManager.yui_internal::yuiframework.getMessage.apply(null,[resourceName].concat(parameters))); |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | } |
Properties
| Name | Value |
|---|---|
| svn:keywords | Author Revision |
| Repository Top ViewVC Help |
![]() |
| Powered by ViewVC |

