flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Lantier (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33740) Change UIComponent function removedFromStageHandler from private to protected to allow override
Date Wed, 18 Sep 2013 07:53:51 GMT

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

David Lantier updated FLEX-33740:
---------------------------------

    Description: 
It would be more safe and faster if it was possible to override the function UIComponent::removedFromStageHandler
(and also, remove) instead to have to add and remove events listeners for those who extends
UI classes. 
Have to check if new proposed method name "removedFromStage" not used by any component, or
choose another.

Example:
private function removedFromStageHandler(event:Event):void
    {
        _systemManagerDirty = true;
	removedFromStage();     // proposition: add this call
    }
// proposition: new function protected, dedicated to override
/** Override this allow to be called when this is removing from stage. Avoids to have to listen
REMOVED_FROM_STAGE event. */
protected function removedFromStage():void {}

  was:
It would be more safe and faster if it was possible to override the function UIComponent::removedFromStageHandler
(and also, remove) instead to have to add and remove events listeners for those who extends
UI classes. 
Have to check if new proposed method name "removedFromStage" not used by any component, or
choose another.

Example:
private function removedFromStageHandler(event:Event):void
    {
        _systemManagerDirty = true;
	removedFromStage();     // proposition: add this call
    }
// proposition: new function protected, dedicated to override
/** Override this allow to be called when this is removing from stage. Avoid to listen REMOVED_FROM_STAGE
event. */
protected function removedFromStage():void {}

    
> Change UIComponent function removedFromStageHandler from private to protected to allow
override
> -----------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33740
>                 URL: https://issues.apache.org/jira/browse/FLEX-33740
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: .Unspecified - Framework
>    Affects Versions: Apache Flex 4.10.0
>         Environment: Gui framework
>            Reporter: David Lantier
>              Labels: features, performance
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> It would be more safe and faster if it was possible to override the function UIComponent::removedFromStageHandler
(and also, remove) instead to have to add and remove events listeners for those who extends
UI classes. 
> Have to check if new proposed method name "removedFromStage" not used by any component,
or choose another.
> Example:
> private function removedFromStageHandler(event:Event):void
>     {
>         _systemManagerDirty = true;
> 	removedFromStage();     // proposition: add this call
>     }
> // proposition: new function protected, dedicated to override
> /** Override this allow to be called when this is removing from stage. Avoids to have
to listen REMOVED_FROM_STAGE event. */
> protected function removedFromStage():void {}

--
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

Mime
View raw message