flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodolpho Nascimento (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34730) Interface method conflicts
Date Wed, 28 Jan 2015 19:23:34 GMT
Rodolpho Nascimento created FLEX-34730:

             Summary: Interface method conflicts
                 Key: FLEX-34730
                 URL: https://issues.apache.org/jira/browse/FLEX-34730
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: DataGrid
    Affects Versions: Apache Flex 4.13.0
            Reporter: Rodolpho Nascimento

Well, when i try create a itemRenderer for GridColumn, i must to use a IGridItemRenderer for

If i implements a CheckBox to my itemRenderer, i have a conflict because
CheckBox extends for ButtonBase and both (ButtonBase and IGridItemRenderer ) have same property
(hovered) causing a conflict on compile my project.

Sample code:

	public class MYCheckBoxRenderer extends CheckBox implements IGridItemRenderer
		public function MYCheckBoxRenderer()
		public function get dragging():Boolean{return false} // Does work
		public function set dragging(value:Boolean):void {}  // Does work
		public function get hovered():Boolean{return false}; // Does not work
		public function set hovered(value:Boolean):void {}   // Does not work
Description	Resource	Path	Location	Type
1023: Incompatible override.	MYCheckBoxRenderer.as	/01_gkocomponents/src/br/com/gko/components/renderers
line 59	Flex Problem
Description	Resource	Path	Location	Type
1024: Overriding a function that is not marked for override.	
MYCheckBoxRenderer.as	/01_gkocomponents/src/br/com/gko/components/renderers	line 59	Flex Problem

This message was sent by Atlassian JIRA

View raw message