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] [Updated] (FLEX-34730) Interface method conflicts
Date Wed, 28 Jan 2015 20:02:34 GMT

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

Rodolpho Nascimento updated FLEX-34730:
---------------------------------------
    Priority: Trivial  (was: Major)

> 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
>            Priority: Trivial
>
> Well, when i try create a itemRenderer for GridColumn, i must to use a IGridItemRenderer
for it.
> 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()
> 		{
> 			super();
> 			this.addEventListener(Event.CHANGE,onChange);
> 		}
> 		
> 		....
> 		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
(v6.3.4#6332)

Mime
View raw message