Show
Ignore:
Timestamp:
08/14/10 12:54:49 (21 months ago)
Author:
mszopinski
Message:

calendar, one-week display
fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ssme/trunk/flex/Calendar/src/com/kh/ssme/components/EventField.as

    r4040 r4042  
    2424 
    2525import com.kh.ssme.entity.TimeFrameEntity; 
    26  
    27 import flash.display.DisplayObject; 
    28  
     26    
    2927    import mx.binding.utils.BindingUtils; 
    30     import mx.binding.utils.ChangeWatcher; 
    31     import mx.controls.TextArea; 
    3228    import mx.core.Container; 
    3329    import mx.core.UIComponent; 
     30    import mx.events.ToolTipEvent; 
     31    import mx.managers.ToolTipManager; 
    3432 
    3533    public class EventField extends RoundedCornerContainer { 
     
    4038            container_.visible = container_.includeInLayout = true; 
    4139            this.addChild( container_ ); 
     40 
     41            this.toolTip = "";             
    4242        } 
    4343 
     
    6868        } 
    6969 
     70        /** 
     71         * Index of beginning quarter 
     72         */ 
     73        public var beginIndex:int; 
     74 
     75        /** 
     76         * Index of ending quarter 
     77         */ 
     78        public var endIndex:int; 
     79 
     80        /** 
     81         * number of neighbour events 
     82         */ 
     83        public var neighbours:int; 
     84 
     85        /** 
     86         * Component position rank 
     87         */ 
     88        public var rank:int; 
     89 
     90        /** 
     91         * Component left alignment 
     92         */ 
     93        public var leftPosition:int; 
    7094 
    7195        protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ 
     
    7599            container_.y = this.borderThickness_; 
    76100            container_.width = this.width - this.borderThickness_*2; 
    77             container_.height = this.height - this.borderThickness_*2;             
     101            container_.height = this.height - this.borderThickness_*2; 
     102 
     103            this.toolTip = "Indexes : ["+beginIndex+" - "+endIndex+"]\n" + 
     104                            "neighbours: "+neighbours+"; rank:"+rank+"\n" + 
     105                            "x: "+x+"; y:"+y+"; width:"+width+"; height:"+height+ 
     106                            "UUID:"+data.UUID; 
    78107        } 
    79108