[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RequestFocusManager.getNewRequestFocusCounter() wont work  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

RequestFocusManager.getNewRequestFocusCounter() wont work if there is a prior popup like Statusbar, Modal popup etc.. but works when there's not.

Here is the code w/ prior popup :
Code:
 itemFilterPage.prepare(new ItemFilterPage.IListener() {
                 @Override
                 public void reactOnClose() {
                     closePopup(itemFilterPage);
 
                     if (itemFilterPage.m_itemNo != null) {
                         setItemScan(itemFilterPage.getItemNo());
                         scanFieldRF = RequestFocusManager.getNewRequestFocusCounter();
                     }
                 }
             });
 


Is this a bug?

Regards, Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,
the closing of the popup automatically requests the focus to the component that opened the popup - so this focus request is in competition to the one that you send via your program. We now made sure that you request will win the competition...
Thanks for the message + Regards! Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...fix is part of next update (the one of next week...). - Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Thanks Captain
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team