1. ActionScript / Говнокод #15647

    −136

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    /**
         *  @private
    	 *  Storage for the isTruncated property.
         */
        private var _isTruncated:Boolean = false;
            
        /**
    	 *  A read-only property reporting whether the text has been truncated.
    	 *
    	 *  <p>Truncating text means replacing excess text
    	 *  with a truncation indicator such as "...".
         *  The truncation indicator is locale-dependent;
         *  it is specified by the "truncationIndicator" resource
         *  in the "core" resource bundle.</p>
    	 *
         *  <p>If <code>maxDisplayedLines</code> is 0, no truncation occurs.
         *  Instead, the text will simply be clipped
    	 *  if it doesn't fit within the component's bounds.</p>
         *
         *  <p>If <code>maxDisplayedLines</code> is is a positive integer,
    	 *  the text will be truncated if necessary to reduce
    	 *  the number of lines to this integer.</p>
         *
         *  <p>If <code>maxDisplayedLines</code> is -1, the text will be truncated
    	 *  to display as many lines as will completely fit within the height
         *  of the component.</p>
         *
         *  <p>Truncation is only performed if the <code>lineBreak</code>
         *  style is <code>"toFit"</code>; the value of this property
         *  is ignored if <code>lineBreak</code> is <code>"explicit"</code>.</p>
    	 *
    	 *  @default false
         *  
         *  @langversion 3.0
         *  @playerversion Flash 10
         *  @playerversion AIR 1.5
         *  @productversion Flex 4
         */
    	public function get isTruncated():Boolean
        {
    		// For some reason, the compiler needs an explicit cast to Boolean
    		// to avoid a warning even though at runtime "is Boolean" is true.
    		return Boolean(_isTruncated);
        }

    Во-первых, неправда.
    Во-вторых, как бы это было печально, если бы было правдой.

    Запостил: wvxvw, 02 Апреля 2014

    Комментарии (1) RSS

    Добавить комментарий