From: Adrian B. <kil...@gm...> - 2010-01-18 14:12:04
|
Hey guys First of all, this is a great project! I'm trying to write an iPhone application using the components in the org.xmlvm.iphone package. I'm missing some kind of password text field component. I have no problem in extending the UITextField and add the functionality, just want to make sure I did not overlook something? Is there some kind of multi-line support in the UILabel component? The text I have set is too long and runs over the window border. I can split it into multiple labels, but that does not feel like the appropriate solution... Keep up the good work! Adrian |
From: Arno P. <ar...@pu...> - 2010-01-18 19:37:14
|
no, we don't have password field support or multi-line UILabels. I think it is relatively easy to add the appropriate Java API for those two cases and map them to Objective-C, but it will take a little more effort to make sure it also runs in our Java Emulator. But any patch in that direction is very welcomed. Arno On 1/18/10 5:44 AM, Adrian Buerki wrote: > Hey guys > > First of all, this is a great project! > > I'm trying to write an iPhone application using the components in the > org.xmlvm.iphone package. I'm missing some kind of password text field > component. I have no problem in extending the UITextField and add the > functionality, just want to make sure I did not overlook something? > > Is there some kind of multi-line support in the UILabel component? The > text I have set is too long and runs over the window border. I can > split it into multiple labels, but that does not feel like the > appropriate solution... > > Keep up the good work! > Adrian > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Wolfgang K. <wol...@xm...> - 2010-01-18 20:04:33
|
Adrian, you did not overlook an existing implementation. Neither password fields, nor multiline labels are supported by now. So feel free to contribute to XMLVM. If you need help to get started don't hesitate to contact us. To accept contributions we ask you to sign our Contributors License Agreement (CLA) . Please have a look at http://xmlvm.org/contribute/ -- Wolfgang Adrian Buerki wrote: > Hey guys > > First of all, this is a great project! > > I'm trying to write an iPhone application using the components in the > org.xmlvm.iphone package. I'm missing some kind of password text field > component. I have no problem in extending the UITextField and add the > functionality, just want to make sure I did not overlook something? > > Is there some kind of multi-line support in the UILabel component? The > text I have set is too long and runs over the window border. I can > split it into multiple labels, but that does not feel like the > appropriate solution... > > Keep up the good work! > Adrian > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Adrian B. <kil...@gm...> - 2010-01-19 10:19:53
|
Hey guys I have electronically signed the CLA. The iPhone Java emulator seems to have problems with multiple text fields on the same screen. Due to the fact that the org.xmlvm.iphone.internal.Display class does only support one key listener. I have fixed that. I assume the problem is just in the emulator, once cross compiled the text fields would behave correctly. I'm going to submit a patch, if my assumption about the no need to touch the Objective-C stuff is right. About the password fields and multiline labels, yes I can help there. I'm quite good at building Java UI's but don't know anything about Objective-C. So I need help with the Objective-C part. Regards, Adrian 2010/1/18 Wolfgang Korn <wol...@xm...>: > Adrian, > > you did not overlook an existing implementation. Neither password > fields, nor multiline labels are supported by now. So feel free to > contribute to XMLVM. If you need help to get started don't hesitate to > contact us. > > To accept contributions we ask you to sign our Contributors License > Agreement (CLA) . Please have a look at http://xmlvm.org/contribute/ > > -- Wolfgang > > > Adrian Buerki wrote: >> Hey guys >> >> First of all, this is a great project! >> >> I'm trying to write an iPhone application using the components in the >> org.xmlvm.iphone package. I'm missing some kind of password text field >> component. I have no problem in extending the UITextField and add the >> functionality, just want to make sure I did not overlook something? >> >> Is there some kind of multi-line support in the UILabel component? The >> text I have set is too long and runs over the window border. I can >> split it into multiple labels, but that does not feel like the >> appropriate solution... >> >> Keep up the good work! >> Adrian >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > |
From: Arno P. <ar...@pu...> - 2010-01-19 20:25:31
|
Adrian, the event handling for key-strokes in the Java Emulator is very simplistic. Well, it currently can only handle one input widget. It sounds like your patch will address that. How do you switch input focus? Arno On 1/19/10 2:19 AM, Adrian Buerki wrote: > Hey guys > > I have electronically signed the CLA. > > The iPhone Java emulator seems to have problems with multiple text > fields on the same screen. Due to the fact that the > org.xmlvm.iphone.internal.Display class does only support one key > listener. I have fixed that. I assume the problem is just in the > emulator, once cross compiled the text fields would behave correctly. > I'm going to submit a patch, if my assumption about the no need to > touch the Objective-C stuff is right. > > About the password fields and multiline labels, yes I can help there. > I'm quite good at building Java UI's but don't know anything about > Objective-C. So I need help with the Objective-C part. > > Regards, Adrian > > 2010/1/18 Wolfgang Korn<wol...@xm...>: >> Adrian, >> >> you did not overlook an existing implementation. Neither password >> fields, nor multiline labels are supported by now. So feel free to >> contribute to XMLVM. If you need help to get started don't hesitate to >> contact us. >> >> To accept contributions we ask you to sign our Contributors License >> Agreement (CLA) . Please have a look at http://xmlvm.org/contribute/ >> >> -- Wolfgang >> >> >> Adrian Buerki wrote: >>> Hey guys >>> >>> First of all, this is a great project! >>> >>> I'm trying to write an iPhone application using the components in the >>> org.xmlvm.iphone package. I'm missing some kind of password text field >>> component. I have no problem in extending the UITextField and add the >>> functionality, just want to make sure I did not overlook something? >>> >>> Is there some kind of multi-line support in the UILabel component? The >>> text I have set is too long and runs over the window border. I can >>> split it into multiple labels, but that does not feel like the >>> appropriate solution... >>> >>> Keep up the good work! >>> Adrian >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for Conference >>> attendees to learn about information security's most important issues through >>> interactions with peers, luminaries and emerging and established companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Adrian B. <kil...@gm...> - 2010-01-20 10:56:32
|
Hi Arno That was quite easy. I added a property hasFocus to the org.xmlvm.iphone.UIView class. The property hasFocus is set in the touchedInsideView(...) method. The touchedInsideView(...) method is called when a mouse click occurs, and if the click was on the current component hasFocus is set to true. That way the last clicked element knows that it has the focus. So the focus only works for mouse clicks, but the iPhone does not have a tabulator key or arrows to switch input focus anyway... Now all I do in the org.xmlvm.iphone.internal.Display class is iterating over the key listeners, ask each listener (which is a UIView instance) whether it has the focus and send the typed character to the component with the focus. Regards, Adrian 2010/1/19 Arno Puder <ar...@pu...>: > > Adrian, > > the event handling for key-strokes in the Java Emulator is very > simplistic. Well, it currently can only handle one input widget. It > sounds like your patch will address that. How do you switch input focus? > > Arno > > > On 1/19/10 2:19 AM, Adrian Buerki wrote: >> Hey guys >> >> I have electronically signed the CLA. >> >> The iPhone Java emulator seems to have problems with multiple text >> fields on the same screen. Due to the fact that the >> org.xmlvm.iphone.internal.Display class does only support one key >> listener. I have fixed that. I assume the problem is just in the >> emulator, once cross compiled the text fields would behave correctly. >> I'm going to submit a patch, if my assumption about the no need to >> touch the Objective-C stuff is right. >> >> About the password fields and multiline labels, yes I can help there. >> I'm quite good at building Java UI's but don't know anything about >> Objective-C. So I need help with the Objective-C part. >> >> Regards, Adrian >> >> 2010/1/18 Wolfgang Korn<wol...@xm...>: >>> Adrian, >>> >>> you did not overlook an existing implementation. Neither password >>> fields, nor multiline labels are supported by now. So feel free to >>> contribute to XMLVM. If you need help to get started don't hesitate to >>> contact us. >>> >>> To accept contributions we ask you to sign our Contributors License >>> Agreement (CLA) . Please have a look at http://xmlvm.org/contribute/ >>> >>> -- Wolfgang >>> >>> >>> Adrian Buerki wrote: >>>> Hey guys >>>> >>>> First of all, this is a great project! >>>> >>>> I'm trying to write an iPhone application using the components in the >>>> org.xmlvm.iphone package. I'm missing some kind of password text field >>>> component. I have no problem in extending the UITextField and add the >>>> functionality, just want to make sure I did not overlook something? >>>> >>>> Is there some kind of multi-line support in the UILabel component? The >>>> text I have set is too long and runs over the window border. I can >>>> split it into multiple labels, but that does not feel like the >>>> appropriate solution... >>>> >>>> Keep up the good work! >>>> Adrian >>>> >>>> ------------------------------------------------------------------------------ >>>> Throughout its 18-year history, RSA Conference consistently attracts the >>>> world's best and brightest in the field, creating opportunities for Conference >>>> attendees to learn about information security's most important issues through >>>> interactions with peers, luminaries and emerging and established companies. >>>> http://p.sf.net/sfu/rsaconf-dev2dev >>>> _______________________________________________ >>>> xmlvm-users mailing list >>>> xml...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: Arno P. <ar...@pu...> - 2010-01-20 19:32:48
|
Adrian, sounds like a reasonable approach. But I would suggest that the UIView that has the input focus calls back a method in the simulator to register itself (similar to the way the key window registers itself). This way you can avoid iterating over all UIViews to find the one that has the input focus (which you would need to do for every single event). Why don't you make that change and submit a patch? Arno On 1/20/10 2:56 AM, Adrian Buerki wrote: > Hi Arno > > That was quite easy. I added a property hasFocus to the > org.xmlvm.iphone.UIView class. The property hasFocus is set in the > touchedInsideView(...) method. The touchedInsideView(...) method is > called when a mouse click occurs, and if the click was on the current > component hasFocus is set to true. That way the last clicked element > knows that it has the focus. So the focus only works for mouse clicks, > but the iPhone does not have a tabulator key or arrows to switch input > focus anyway... > > Now all I do in the org.xmlvm.iphone.internal.Display class is > iterating over the key listeners, ask each listener (which is a UIView > instance) whether it has the focus and send the typed character to the > component with the focus. > > Regards, Adrian > > 2010/1/19 Arno Puder<ar...@pu...>: >> >> Adrian, >> >> the event handling for key-strokes in the Java Emulator is very >> simplistic. Well, it currently can only handle one input widget. It >> sounds like your patch will address that. How do you switch input focus? >> >> Arno >> >> >> On 1/19/10 2:19 AM, Adrian Buerki wrote: >>> Hey guys >>> >>> I have electronically signed the CLA. >>> >>> The iPhone Java emulator seems to have problems with multiple text >>> fields on the same screen. Due to the fact that the >>> org.xmlvm.iphone.internal.Display class does only support one key >>> listener. I have fixed that. I assume the problem is just in the >>> emulator, once cross compiled the text fields would behave correctly. >>> I'm going to submit a patch, if my assumption about the no need to >>> touch the Objective-C stuff is right. >>> >>> About the password fields and multiline labels, yes I can help there. >>> I'm quite good at building Java UI's but don't know anything about >>> Objective-C. So I need help with the Objective-C part. >>> >>> Regards, Adrian >>> >>> 2010/1/18 Wolfgang Korn<wol...@xm...>: >>>> Adrian, >>>> >>>> you did not overlook an existing implementation. Neither password >>>> fields, nor multiline labels are supported by now. So feel free to >>>> contribute to XMLVM. If you need help to get started don't hesitate to >>>> contact us. >>>> >>>> To accept contributions we ask you to sign our Contributors License >>>> Agreement (CLA) . Please have a look at http://xmlvm.org/contribute/ >>>> >>>> -- Wolfgang >>>> >>>> >>>> Adrian Buerki wrote: >>>>> Hey guys >>>>> >>>>> First of all, this is a great project! >>>>> >>>>> I'm trying to write an iPhone application using the components in the >>>>> org.xmlvm.iphone package. I'm missing some kind of password text field >>>>> component. I have no problem in extending the UITextField and add the >>>>> functionality, just want to make sure I did not overlook something? >>>>> >>>>> Is there some kind of multi-line support in the UILabel component? The >>>>> text I have set is too long and runs over the window border. I can >>>>> split it into multiple labels, but that does not feel like the >>>>> appropriate solution... >>>>> >>>>> Keep up the good work! >>>>> Adrian >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Throughout its 18-year history, RSA Conference consistently attracts the >>>>> world's best and brightest in the field, creating opportunities for Conference >>>>> attendees to learn about information security's most important issues through >>>>> interactions with peers, luminaries and emerging and established companies. >>>>> http://p.sf.net/sfu/rsaconf-dev2dev >>>>> _______________________________________________ >>>>> xmlvm-users mailing list >>>>> xml...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for Conference >>> attendees to learn about information security's most important issues through >>> interactions with peers, luminaries and emerging and established companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for Conference >> attendees to learn about information security's most important issues through >> interactions with peers, luminaries and emerging and established companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |