[arquillian-issues] [JBoss JIRA] (ARQGRA-261) Provide mapping of getters to properties in @JavaScript interfaces

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Jan 24 02:35:47 EST 2013


    [ https://issues.jboss.org/browse/ARQGRA-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750116#comment-12750116 ] 

Lukáš Fryč commented on ARQGRA-261:
-----------------------------------

Hey Jan, I believe this is already possible, have you tried that?
                
> Provide mapping of getters to properties in @JavaScript interfaces
> ------------------------------------------------------------------
>
>                 Key: ARQGRA-261
>                 URL: https://issues.jboss.org/browse/ARQGRA-261
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>            Reporter: Jan Papousek
>
> Consider I want to get screen width and height (window.screen.width and window.screen.height in javascript). I'd like to create the following interface:
> {code}
> @JavaScript("window.screen")
> public interfaces Screen {
>     @Property("width") // the property name should be optional (it can be derived from method name)
>     Long getWidth();
>     @Property
>     Long getHeight();
> }
> {code}

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



More information about the arquillian-issues mailing list