pushScreen Popup using touchEvent

Hi guys,.

I want pushScreen (new MyScreen()) of the screen touch event Popup. So I replace touchEvent in popupScreen and check if the coordinates x and made desired region and where they I is pushScreen().  Everything works fine on the torch, but nothing happens on the storm. I traced it and the problem is pushScreen(), so, basically, he treats the events of the ok button.

Any ideas?

Thanks for the reply, actually I solved it, the problem was connected with EventLock.

Tags: BlackBerry Developers

Similar Questions

  • Modal popup using skillbilder page

    Hello
    I got my popup page to display modal way using skill-builder, but now, how can I pass values of page1 as: point p1_customerid of page2 popup: p2_customerid? I used url in java-script before but now I want to pass those values to the modal popup window how to? Thanks in advance...

    Jeiri,

    You don't have to do 10 different entries.

    Add more code under APEX_UTIL PLSQL for each group you want to submit. Then, separated by a comma, list the variables you will be as follows:

    P1_CUSTOMER_NAME, P1_CUSTOMER_ID, P1_CUSTOMER_LASTNAME, etc.

    You will have only 2 entered DA, PLSQL and Skillbuilders Modal

  • How I can configure Adobe to open the pdf from a website secure in the browser, it just appears and asks to open, save or download. We want to just open the PDF directly in the browser with no popups, using IE 11

    Hello

    We are running Internet Explore 11 with the latest version of Adobe Reader.

    found when users connect to a secure website and a pdf links out there, it does not open these pdf directly in the browser, he wants to save them, and then open them.

    is this what we can change to allow them to be opened directly in the browser?


    Thank you

    Cam

    There is nothing you can do about it on your end. It is a parameter of the

    browser of the user who accessed the file.

    Wednesday, March 18, 2015 at 04:54, campbellk19046717, [email protected]

  • TouchEvent and fieldChange problem Listener

    Hi all

    I used TouchEvent and fieldChange earpiece in my application.

    but the problem is that I can't activate fieldChangeListener in my application.

    I capture some points on my popup screen with the button.

    This workd OK

    But there is a button on the pop-up screen. The associated fieldchangeListner method never gets activated!

    Can someone help me?

    the button get clicked only by trackball/touchpad

    Thank you

    Afonso Tyagi

    Another option would be to call super.touchEvent and allow normal ButtonField processing to do this for you.

  • Popup text DialogFieldManager change dynamically

    I currently display a msg of popup using DialogFieldManager with the text "Please Wait."... »

    But instead of him, I need to change the text dynamically according to the background process as a "connection.", "logging" in. etc...

    When I tried to accompalish that by changing the text and the cancellation of the pop-up screen, it is not reflected in the screen...

    How do I get my requirement? Help, please

    Hello

    Try this example

    SerializableAttribute public class MyPoPup extends PopupScreen {}

    private DialogFieldManager dfm;
    _timer private timer;
    private LabelField popUpMsg;
    boolean isRun = true;
    public MyPoPup() {}
    Super (new VerticalFieldManager());
    DFM = new DialogFieldManager (FIELD_HCENTER);
    popUpMsg = new LabelField ("Connecting...");
    dfm.addCustomField (popUpMsg);
    dfm.setIcon (new BitmapField (Bitmap.getPredefinedBitmap (Bitmap.HOURGLASS)));
            
    Add (DFM);
    }
    protected void onDisplay()
    {
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
                
    public void run() {}
    _Timer = new Timer();
    _Timer.schedule (new MyTask(), 0);
                    
    }
    });
    }

    private class MyTask extends TimerTask
    {
    int i = 0;
    int k = 0;
    Message from String() = {'go... ","Control... ". «, «Verifying...» ', 'Connection... '. ","Success..." {', 'Welcome Pradeep'};
    public void run() {}
                
    While (isRun)
    {
    i ++ ;
    try {}
    Thread.Sleep (1000);
    } catch (InterruptedException e) {}
    e.printStackTrace ();
    }
    If (i %3 == 0)
    {
    k ++ ;
    if(k>5) k = 0;
    synchronized (UiApplication.getEventLock ())
    {
    popUpMsg.setText (message [k]);
    Invalidate();
    }
                        
    }
    }
    }
            
    }
    }

    Thank you.

  • Popup causing problems "sometimes".

    I am once in awhile on obtaining the device...

    "Eception exception: MyApp Application (263) does not; process is completed.

    I think I just need to restructure abit of things... Here is a snippet of the code. Any help would be appreciated!

     final MyPopup popup = new MyPopup("Please wait");
                                    uiApp.invokeLater( new Runnable()
                                         {
                                         public void run ()
                                         {
                                        uiApp.pushScreen(popup);
                                         }
                                         });
    
                                     uiApp.invokeLater(new Runnable()
                                        {
                                            public void run()
                                          MyThread thread = new MyThread();
                                                   thread.start();
    
                                                   try {
                                                    thread.join();
                                                } catch (InterruptedException e) {
                                                    // TODO Auto-generated catch block
                                                    e.printStackTrace();
                                                }
                                                 catch (Exception ex) {
                                                     ex.printStackTrace();
                                                 }
    
                                                  uiApp.popScreen(popup);
                                                 }});
                                        }};
    

    A hard time reading your code snippte, but:

    I see no valid reason to start another thread within invokeLater() (not that it is bad, just does not have any sense). Maybe you can explain it.

    I also do not recommend calling Thread.join () in the case of wire - this is probably your "refractory" error No matter when you stop the thread of the event, you run the risk of overflowing, queue that precipitates the exception you get.

  • TouchEvent in Listfield does not work after scrolling in the storm.

    Hello

    My problem is that I have a 250 size listfield, which I add to a verticalfieldmanager1, this verticalfieldmanager1 is added to an another verticalfieldmanager2, then verticalfieldmanager2 is added to horizontalfieldmanager then horizontalfieldmanager is added to the screen.

    By default, I have to display index 220 (to achieve this, I'll focus on the listfield), so when I key to select other items in the list it is not selecting (Touch event does not work). It is to select only the element that has focus.

    I am owner event touch listfield. Could someone please help me in this regard.

    Hello

    I am happy to share that I found a solution for the problem I had.

    Post here as it may help someone. I used the TouchEvent.getX () & TouchEvent.getY)

    directly which solved my problem, previously I was using () TouchEvent.getGlobalX & TouchEvent.getGlobalY ().

    Once again thank you.

  • Refresh the Parent page after closing the popup

    Hello

    I open the pop for that insert data and then I want to see the page parent page refresh after closing of pop either perform cancel or closing popup using X.

    try like this

    < af:commandLink text = ' #{rank. " DEPTNO}"id ="cl1"partialSubmit ="true"returnListener =" #{backingBeanScope.backing_DeptDBFace.backFromPopup} ">
    "" < af:showPopupBehavior popupId = ': p1 ' triggerType = 'action' / >
    < af:returnActionListener value = "10" / >
    < / af:commandLink >

    When this method ({. backing_DeptDBFace.backFromPopup}) contains the PON - Stmts which are not executed after the closure of the pop-up window

    Thank you

    Venaktn

    Hello

    Try to use the popupCanceledListener. (af:popup)

    This event will happen only when you click the X or cancel the popup.

    Kind regards

    Ruben

  • Problems of closing popup in filedownload actionlistener

    Cannot close the popup after download the file

    JSFF

    < af:commandButton id = "cb2-generateKey.

    Text = "#{msg.oauthCertOpGenKeyPair} '"

    partialSubmit = "false" clientComponent = "true" >

    < af:fileDownloadActionListener filename = "keyStore.p12" contentType = "application/x-pkcs12" method="#{viewScope.OAuthClients.generateKeyPairListener}"/ > "

    < / af:commandButton >

    Java

    public void generateKeyPairListener (FacesContext context, OutputStream) out {}

    downloadActionListener (context, outside, "keyStore", (String) this.getDnField () .getValue (), (String) this.getPwd () .getValue ());

    this.closeGenerateKeyPop ();

    }

    Any ideas?

    You can paste the code so that we can see what exactly you tried.

    Another approach is to close the popup with javascript, similar to this: http://jneelmani.blogspot.com/2013/03/adf-11g-how-to-close-popup-using.html

    Dario

  • Create modeless popup windows in plugin view

    Hello

    I was able to create a modeless window using the crib of Popup plugin on certain actions in my opinion. The purpose of the popup is to view the progress of a task. Once the task is completed the popup updates the status.

    I created the popup using mx.core.FlexGlobals.topLevelApplication as the parent object.

    Popup opens always and given listed status, I am able to navigate to reach other views of the web client UI.

    For example, then click on the 'Home' button in the web client, I can still see the popup. That's because I used mx.core.FlexGlobals.topLevelApplication as a parent object when creating popup.

    Its kind of interfering with the user interface of the web client.

    I want to reach Next:

    I would like to limit the popup in my plugin views. While I can navigate to different views in my plugin and see again the popup to check the status of the progress. Also if I navigate to the user interface of the web client, I don't want to have the popup parasites.

    Is this possible?


    Any help is very appreciated.


    Thank you.



    Sorry, this is not possible and you are not allowed to add a modeless popup for this reason.

    You can only display status inside your own point of view of plugin.

  • Closing popup programmatically.

    Hi all

    I use Jdeveloper 12.1.2.0.0. I need to close the popup programmatically.

    The popup is inside a page fragment that is included in another fragment of page.

    I use viewscope bean, so I can't link the popup directly. So I am using the following code.

    ExtendedRenderKitService extRenderKitSrvc = Service.getRenderKitService(fc, ExtendedRenderKitService.class);
            extRenderKitSrvc.addScript(fc, "AdfPage.PAGE.findComponentByAbsoluteId('" + "p1" + "').hide();");
    

    P1 is the id of the pop-up window.

    It does not work. Why does this work?

    Thanks in advance,

    Vignesh S.

    Hello

    his does not work because the popup on the client ID is not p1, but also contains containers of naming as regions. So most likely the popup is r1:r2:p1 if it is contained in a nested page fragment. However, you can close the popup using Java

    ComponentUtils (Apache MyFaces Trinidad API 2.0.2 - SNAPSHOT API)

    The ComponentUtils class has a findRelativeComponent method that performs a search. So, if the point of invocation the popup is located in region 1 region 2--> then the 'from' is r1:r2 looking for. The p1 component, you get in return is of type RichPopup and exposes a method to hide the dialog box

    Frank

  • ADF popup does not work on server

    I created a page popup using the ADF workflow task.
    Basically, the action of a button triggers the pop-up window.
    It works fine locally, but when I deploy to server and clicked the button, it just refreshes the page and pop-up window is not displayed.

    Thanks for your help.

    When you run the page on the server, using the right URL? If you see a "jspx" on the end of your URL, you're probably not. You must run view taskflow activity and not the page itself. Another common way to confirm if you hurt: If clicking the button works the second time, and then you do wrong :)

  • Popups not displaying auto-size is not as expected

    I update an existing project, using HR 10.0.1.292.

    Recently, I noticed autosizing popups that appear very well when I have create and view my main page layout, do not display correctly when the project is opened from its associated application.

    Example of a popup opened in the HR environment:

    RH forums popup problem - 1.jpg

    Example of the same menu popup open from application help:

    RH forums popup problem - 2.jpg

    Windows in which these pop up windows open are the same size, so it seems that the size of the popup must also be the same. These popups used to work properly in this project. Unfortunately, I do not know exactly when they stopped working. Does anyone have an idea of what would cause this?

    After you submit a bug report on this issue, I learned that Adobe has identified this as a bug already and that it provided a suggested workaround solution. Please follow this link (http://forums.adobe.com/thread/1297423) to a similar forum thread and refer to the answer #7 for detailed instructions. Be sure to change the eHlpDhtm.js file in each of your directories of project HR 10.

  • create a popup window

    Hello.


    = > I use jdev 11.1.5
    = > I need to create a contextual note alert window so that it should appear when you press the button
    = > I had created a workflow

    EMP. JSFF-[go]-> dept.jsff

    the mail button is in emp.jsff

    post-> action-> go
    I had used it in action listner

    FacesMessage fm = new FacesMessage ("THE JOURNELS HAD BEEN SENT CORRECTLY");
    fm.setSeverity (FacesMessage.SEVERITY_INFO);
    FacesContext context = FacesContext.getCurrentInstance ();
    context.addMessage (null, fm);

    in the present when I click the button it displays the oly message after page navigates to dept.jsff
    I need display the message entered the page navigation

    Published by: long live Sep 24, 2011 01:51

    Maybe you should read the chapter of Popup using dialog boxes, Menus, and Windows [url http://download.oracle.com/docs/cd/E16162_01/web.1112/e16181/af_dialog.htm#CHDHCACB].

  • How can I close a Popup calendar of Adf in my managed bean?

    Hello.

    I use the calendar to the Adf.

    When I call the method to close the pop-up window:

    {} public static void hidePopUp (RichPopup popUp)
    FacesContext facesContext = FacesContext.getCurrentInstance ();
    ExtendedRenderKitService = service
    Service.getRenderKitService (facesContext,
    ExtendedRenderKitService.class);
    String serviceScript = "AdfPage.PAGE.findComponent (" "+ popUp.getClientId (facesContext) +)"
    "(. hide()')";
    service.addScript (facesContext, serviceScript);
    }

    and after calling the method "AdfFacesContext.getCurrentInstance ().addPartialTarget(this.calendar//my ADF Calendar);"the updating of the calendar and my popup not close. "

    If I do not call the method "AdfFacesContext.getCurrentInstance ().addPartialTarget(this.calendar//my ADF Calendar);" my popup close works normally. "

    Can someone help me?

    Thanks

    Hello..
    To hide the popup code tips use also set for popup partialTriggers

    partialTriggers = "componentIdThatCallHideThePopup" the binding = "#{SampleBean.samplePopUp}" > "

    Private RichPopup samplePopUp;
    {} public void setSamplePopUp (RichPopup samplePopUp)
    this.samplePopUp = samplePopUp;
    }
    public RichPopup getSamplePopUp() {}
    Return samplePopUp;
    }

    to close the popUp use. hide() and after that to share partialtrigger for the calendar

    getSamplePopUp () .hide ();
    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.calendar//my ADF calendar); »

    hope it will be useful

Maybe you are looking for