You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/03/07 20:20:21 UTC

[jira] [Updated] (FLEX-33385) titleText SkinPart in TitleBar is NOT Required but exception is thrown if not implemented.

     [ https://issues.apache.org/jira/browse/FLEX-33385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-33385:
---------------------------------

    Labels: easyfix  (was: )
    
> titleText SkinPart in TitleBar is NOT Required but exception is thrown if not implemented.
> ------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33385
>                 URL: https://issues.apache.org/jira/browse/FLEX-33385
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: Spark: WindowedApplication
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Fabio Todaro
>              Labels: easyfix
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Original:
> override protected function commitProperties():void
>     {
>         super.commitProperties();
>         if (titleChanged)
>         {
> 			
>             	titleText.text = _title;
>             	titleChanged = false;  
> 			
>         }
>         if (titleIconChanged)
>         {
>             if (titleIconObject)
>             {
>                 titleIconImage.source = null;
>                 titleIconObject = null;
>             }
>             
>             if (_titleIcon && titleIconImage)
>             {
>                 titleIconObject = new _titleIcon();
>                 titleIconImage.source = titleIconObject;
>             }
>             titleIconChanged = false;
>         }
>         
>     }
> Solution:
> override protected function commitProperties():void
>     {
>         super.commitProperties();
>         if (titleChanged)
>         {
> 		if(titleText)
> 	        {
>             	   titleText.text = _title;
>             	   titleChanged = false;  
> 		}
>         }
>         if (titleIconChanged)
>         {
>             if (titleIconObject)
>             {
>                 titleIconImage.source = null;
>                 titleIconObject = null;
>             }
>             
>             if (_titleIcon && titleIconImage)
>             {
>                 titleIconObject = new _titleIcon();
>                 titleIconImage.source = titleIconObject;
>             }
>             titleIconChanged = false;
>         }
>         
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira