Spread of events PopUp

How to listen to a dispatched event of a PopUp? The PopUp from an Application (as a parent). However, the Application is not able to listen to the event.

Hello

a as an example

_customWindow = TitleWindow (PopUpManager.createPopUp (this, TitleWindow, true));

_customWindow.addEventListener (CloseEvent.CLOSE, onCloseCustomVars);

_customWindow.addEventListener ("settingsChanged", onChangeCustomVars);

PopUpManager.centerPopUp (_customWindow);

Tags: Flex

Similar Questions

  • JavaScript:Event - Popup ('32770567', '73')

    When viewing tv programs on demand for the day on www.news.com.au, I used to be able to click on a program and a new window opens to give a sypnosis of the program.

    Now, when I put the cursor on the program I get the message: javascript:event - popup...

    Being a computer illiterate, I don't know what the problem is!

    Appreciate help and thank you.

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • Adobe InDesign - content overlay Web - prevent the spread of events Scroll

    I have an InDesign magazine that contains a Web Content Overlay (pointing to a responsive website). Everything works fine apart from when it comes to scrolling.

    I run the magazine from an iPad via Adobe Viewer. Is not only the scrolling vertical (up and down) is necessary, horizontal.

    Problem

    When user left or right moves, changing page of the magazine and web content firm.

    Question

    Is it possible that I can stop the scroll events from spreading until the magazine of the overlay of web content? Preferably, it would happen on the web content itself (for example using JavaScript) as it would mean only, I need to change in one place, rather than on each page, the web content.

    Attempted

    Captures the touchmove on the body of the page and calling stopPropagation() on that event.

    Call preventDefault() on the event (this prevents any scrolling at all).

    With the help of pageX touchmove events and call preventDefault() all those who seem to be horizontal scans (too unreliable).

    With the help of CSS overflow-x: hidden

    jQuery scroll personalized Mobile events.

    A little addition to combinations of the above.

    Found a solution. First, insert a ' ' tag 'window' in the head:

    Note that I've set a static width of '701', it's important. Width of the overlay of web content is "700px". Set a width of "701" means that the page can move very slightly. This agitation means that the left/right scan is taken and not percolated to InDesign. There is a slight delay (of a pixel) if they drag, but it's minor compared to the new page.

    Then add the following in your page CSS:

    . Happy {}

    -webkit-too-full-scrolling: touch

    }

    You should not have this CSS, but it was necessary for us.

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

  • JDeveloper 11.1.2.3: In regard to the contextual events, af:inputtext, af:table

    adf newbie question fast 11g...

    While passing by a nice tutorial on http://www.youtube.com/watch?v=IFl-1RQm_so & feature = plcp Frank, I decided to search with the wizard for creating contextual events. What I noticed that the type of the event produced changes was based on the type of parent (pure!) component.

    Dialog contextual event for an af:inputText nested in an af:table
    http://i.imgur.com/uy0Xh.jpg

    Dialog contextual event for a stand-alone af:inputText
    http://i.imgur.com/SXsXQ.jpg

    The switchable contextual event to ValueChangeEvent for an af:inputText in an af:table type?

    Thank you

    -Wes

    Wes,

    in fact when I reproduce with 11.1.1.6 then change value event is created for the event popup I create for a text entry field in a table. I guess you always focus on the table when you create the popup event. Check the Lady of PageDef. If you see the event under the binding of the tree, then I'm right.

    Frank

  • Keyboard event capture [CS6]

    Hello

    I need to capture a key event in InDesign. I tried using "keydown" event, but it gives the error: 'keydown' is not a recognized event type

    app.addEventListener ("keyDown", function(k){
             if(k.escKey)
               {
                 if(app.activeDocument && app.activeDocument.placeGuns.loaded)
                     app.activeDocument.placeGuns.abortPlaceGun();
               }
        })
    
    

    Can someone let me know what I'm doing wrong or how to capture this event.

    Thank you

    Mac

    Mac_06 wrote:

    Support of keyboard in the document-level event? How know what taken events are supported by a particular object?

    I don't think so.

    By saying "at the level of the Application" I meant that keyboard/mouse events are not implemented at all in the scope of the application script (in contrast with ScriptUI) model.

    Note: It's a misconception to think events like belonging or triggered by some specific objects in the DOM. In fact, objects can listen for events (through the addEventListener methods), and usually any object can listen to any event according to the method of capture and the phase of the event. During its spread, an event (instance) provides such as target and currentTarget properties that provide details on the context, but there is no real link between the event and an object specifier. The event is triggered by the subsystem.

    In CS5 and later we have six events, represented by the 'classes' following fields: DocumentEvent, MutationEvent, ImportExportEvent, PrintEvent, event (base class), IdleEvent. This is just a prototype API for all types of events which InDesign agree to make available in the DOM:

    AFTER_ACTIVATE  [Event]
    AFTER_ATTRIBUTE_CHANGED  [MutationEvent]
    AFTER_CLOSE  [DocumentEvent]
    AFTER_CLOSE  [Event]
    AFTER_CONTEXT_CHANGED  [Event]
    AFTER_DELETE  [Event]
    AFTER_EMBED  [Event]
    AFTER_EXPORT  [ImportExportEvent]
    AFTER_IMPORT  [ImportExportEvent]
    AFTER_INVOKE  [Event]
    AFTER_LINKS_CHANGED  [Event]
    AFTER_MOVE  [Event]
    AFTER_NEW  [DocumentEvent]
    AFTER_NEW  [Event]
    AFTER_OPEN  [DocumentEvent]
    AFTER_OPEN  [Event]
    AFTER_PLACE  [Event]
    AFTER_PRINT  [PrintEvent]
    AFTER_QUIT  [Event]
    AFTER_REVERT  [DocumentEvent]
    AFTER_SAVE  [DocumentEvent]
    AFTER_SAVE_AS  [DocumentEvent]
    AFTER_SAVE_A_COPY  [DocumentEvent]
    AFTER_SELECTION_ATTRIBUTE_CHANGED  [Event]
    AFTER_SELECTION_CHANGED  [Event]
    AFTER_UNEMBED  [Event]
    AFTER_UPDATE  [Event]
    
    BEFORE_CLOSE  [DocumentEvent]
    BEFORE_CLOSE  [Event]
    BEFORE_DEACTIVATE  [Event]
    BEFORE_DELETE  [Event]
    BEFORE_DISPLAY  [Event]
    BEFORE_EMBED  [Event]
    BEFORE_EXPORT  [ImportExportEvent]
    BEFORE_IMPORT  [ImportExportEvent]
    BEFORE_INVOKE  [Event]
    BEFORE_MOVE  [Event]
    BEFORE_NEW  [DocumentEvent]
    BEFORE_OPEN  [DocumentEvent]
    BEFORE_PLACE  [Event]
    BEFORE_PRINT  [PrintEvent]
    BEFORE_QUIT  [Event]
    BEFORE_REVERT  [DocumentEvent]
    BEFORE_SAVE  [DocumentEvent]
    BEFORE_SAVE_AS  [DocumentEvent]
    BEFORE_SAVE_A_COPY  [DocumentEvent]
    BEFORE_UNEMBED  [Event]
    BEFORE_UPDATE  [Event]
    
    FAILED_EXPORT  [ImportExportEvent]
    ON_IDLE  [IdleEvent]
    ON_INVOKE  [Event]
    

    I guess that this list may change in the future...

    @+

    Marc

  • Reg - key event "F1" in the drop-down list box

    Hello

    Requirement:

    I need that to launch a browser window press the 'F1' key during the video (swf) has the focus. I did and it works very well for me in the web application.

    Problem statement:

    When a film was released and with focus in "Combo" (which has the list of items begins with A letter Z) control then, I pressed the 'F1' key but the browser window has been launched, instead "main action from the drop-down list box event fired and the article begins with the letter 'P' has been selected in the combo box." So now again once I hit 'F1', the browser window launched according to my condition.

    This behavior occurs whenever launched film has the focus in the "combo box"; otherwise, if the focus is on another control as TextInput etc, no problem for me. A more information, if the drop-down list box is not no matter what element does begin with the letter 'P' so no problem for me.

    I tried to understand the behavior of the combo, but again, I have no idea. Please share your knowledge/thoughts.

    Environment:

    Flex builder 3.5

    11.2 Adobe flash player

    Windows XP SP3

    Kind regards

    Mani

    Hello

    I just replaced Manager keydown to the ComboBox component to avoid his own behaviour of spread of events if the 'F1' key and his works fine for me.

    Thanks for all,

    -Mani

  • Not able to open backingbean popup

    I use jdev 11.1.1.4

    On my search page, when I click on the (CommandLink) ID I neeed to show the confirmation message, but all, I see a box of very small (1 cm x 1 cm to max) under the id (which I'm clicking)

    Any thoughts... fustrating... so farhati here is the code I use for this process...

    On the page:
    < f: view beforePhase = "#{SearchPageProcess.beforePhaseCall}" >
    < af:document id = "d1" >
    < af:messages id = "m1" / >
    < af:form id = "f1" >
    * < af:popup id = "confirmation" binding = "#{SearchPageProcess.popUp}" > *.
    * < af:dialog title = "confirm."
    inlineStyle = ' height: 100px:width:100px ' id = 'confirmdialog '.
    stretchChildren = resize 'first' = 'on '.
    contentWidth = "90" contentHeight = "90" >
    * < af:activeOutputText id = "popupmsg" value = "asdf."
    * Binding = "#{SearchPageProcess.popupMessage}" / > *.
    * < / af:dialog > *.
    * < / af:popup > *.
    "< af:pageTemplate viewId="/template/GenericTemplate.jspx "id ="pt1">
    < f: facet = 'Header' name / >
    < name f: facet = "Content" >
    < af:panelGroupLayout layout = "vertical" id = "pgl1" >
    < af:panelGroupLayout id = "pgl2" layout = "horizontal" >
    < af:spacer width = "10" height = "10" id = "s1" / >
    < af:table value = "#{bindings." SelectOrganizationBroker1.collectionModel}.
    var = "row".
    lines = ' #{bindings. " SelectOrganizationBroker1.rangeSize}.
    emptyText = "#{bindings." SelectOrganizationBroker1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." SelectOrganizationBroker1.rangeSize}.
    rowBandingInterval = '0 '.
    filterModel = "#{bindings." SearchEntityQuery.queryDescriptor}.
    queryListener = ' #{bindings. " SearchEntityQuery.processQuery}.
    filterVisible = "true" varStatus = 'vs' id = 'resId1 '.
    inlineStyle = ' height: 510px; "width ="978 ".
    Binding = "#{SearchPageProcess.resultTable} '"
    rowSelection 'single' = >
    < af:column sortProperty = "Entityid" filterable = 'true '.
    sortable = "true".
    headerText = "#{bindings." SelectOrganizationBroker1.hints.Entityid.label}.
    ID = "resId1c1" >
    < af:outputText value = "#{rank." EntityId}"id ="ot6">
    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " SelectOrganizationBroker1.hints.Entityid.format}"/ >
    < / af:outputText >
    < / af:column >
    * < af:column sortProperty = filterable "Displayrefnum" = "true."
    * sortable = "true."
    * headerText = "#{bindings." SelectOrganizationBroker1.hints.Displayrefnum.label}. "
    * id = "resId1c2" inlineStyle = "' make-weight: bold;" * "
    * Width = "75" > *.
    * < text af:commandLink = ' #{rank. " Displayrefnum}"id ="cl1. "
    * actionListener = "#{SearchPageProcess.processSelectedRow}" > < / af:commandLink > * "
    * < / af:column > *.

    * Bean support code *.
    {} public void processSelectedRow (ActionEvent event)
    popup display
    RichPopup.PopupHints ph = new RichPopup.PopupHints ();
    Ph.Add (RichPopup.PopupHints.HintTypes.HINT_ALIGN_ID, event.getSource (()) (UIComponent)
    . Add (RichPopup.PopupHints.HintTypes.HINT_LAUNCH_ID, event.getSource (()) (UIComponent)
    . Add (RichPopup.PopupHints.HintTypes.HINT_ALIGN,
    RichPopup.PopupHints.AlignTypes.ALIGN_AFTER_END);

    getPopUp () .show (ph);
    return;
    }

    (I copied the code from the bean of the support forums...)

    Any suggestion is greatly appreciated...

    R

    For the commandLink calling the popup, you can set the partialSubmit = "true"?


    actionListener = "#{SearchPageProcess.processSelectedRow} '"
    partialSubmit = "true" >

    Thank you
    Nini

  • ADF:Popup contentDelivery = immediate vs. popupFetchListener

    Hello everyone

    I'm having a problem with a popup which can be explained as follows:
    When I use the popupFetchListener immediate = contentDelivery is not triggered
    When I use the popupFetchListener lazy = contentDelivery's trigger.

    Because of the advantage of showing content when the popup opens and displays the information I need so I have to use contentDelivery = immediate, but I also want to use a popupFetchListener.

    Someone can tell me where is the problem and what can I do to work around it?

    Thank you
    Angel

    Angel,

    He didn't there was no problem - the documentation [url http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_popup.html] you will say what you describe is the documented behavior:

    The PopupFetchEvent is one of the two events popup but server-side is not a corresponding customer event. The fetch popup event is called for the dissemination of content. This means that the event only queue for pop up windows that have a contentDelivery type of lazy or lazyUncached. Another restriction is that the event can run only when the value of the id of launch. It is handled automatically by the af: showPopupBehavior, but emerged as a popup if suspicion shown by program.

    The PopupFetchEvent is expressly defined as an event that is triggered when the delivery of content, it won't fire if there is no delivery of deferred content.

    John

  • Need help with event suctom

    Hello Forum,

    Obviously, I'm doing something wrong with the implementation of the custom events.

    I said an event MyEvent class flash.events.Event

    package com.myEvents
    {
    import flash.events.Event;

    SerializableAttribute public class extends Event MyEvent
    {
    public void MyEvent (type: String)
    {
    Super (type, true, true)
    }
    public static const = "myEventChanged" MY_EVENT_CHANGED:String

    Override the inherited clone() method.
    override public function clone (): Event {}
    return new MyEvent (type);
    }
    }
    } //end of calls

    I sent it of the component class no, which extends EventDispatcher, to meet some business notification.

    Somewhere in the app, I'm trying to intercept the event and set a text on myLabel:Label

    myLabel.addEventListener (MyEvent.MY_EVENT_CHANGED, onMyEvent)

    public void onMyEvent(myEvent:MyEvent):void {}

    MyLabel.set_Text = 'Got the event. "

    }

    The problem is that the onMyEvent() function is never called.

    Can someone tell me what I am doing wrong?

    Thank you very much in advance,

    Mike

    So you're adding a listener to myLabel, but sending the event from another component - that is the problem. Unless you are taking advantage of the display capture/spread expedition event phase list, you must add the listener to the EventDispatcher subclass that is sending the event.

  • Save the PhoneListener and the FolderListener in a single application

    If I'm around all blackberry applications, when I get a phone call, I'm able to display a popup once the call is answered for example. But if I get an email, I'm not able to display any popup screen, even if I see the messagesAdded() get me fired and also the popupscreen is invoked as I reinforced with debugging.

    The mechanism that I use to view the popuscreen phone and Email is the same, but the event of phone works and not the event of enamel.

    Here is what I do

    AutoStart calls my main class

    public final class myMain {}
           
    {private myMain()
    try {}
    Phone.addPhoneListener (new ConcretePhoneListener());
    Store is Session.waitForDefaultSession () .getStore ();.
    store.addFolderListener (new ConcreteEmailListener());
    }
    catch (Exception e) {}
    //
    }
    }
       
    Public Shared Sub main (String [] args) {}
    PAP PimAssistantMain = new PimAssistantMain();
    }
    }

    In my ConcretePhoneListener(), this is how I invoke the popup screen

    SerializableAttribute public class ConcretePhoneListener extends AbstractPhoneListener {}
       
    private void somePrivateMethod() {}

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}

    UiApplication.getUiApplication () .pushScreen (new PhonePopupScreen());

    }
    });

    }

    }

    the code above works, but

    / public class ConcreteEmailListener implements FolderListener {}
       
    private void somePrivateMethod() {}

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}

    UiApplication.getUiApplication () .pushScreen (new EmailPopupScreen());

    }

    });

    }

    }

    the above code IS NOT working for some reason any in the sense that, when new email arrives, I don't see the screen like the one for the phone, the event popup not.

    In the EmailPopupScreen() and PhonePopupScreen(), I would go the PopupScreen and make sure that the screen is in the foreground by using the code below

    protected void onObscured() {}
    UiApplication.getUiApplication () .requestForeground ();
    }

    Can someone tell me first if I'm heading in the right direction and also explain this strange difference in the behavior for these 2 types of events and how the email event a popup screen

    First off let me say that I have NOT actually tried a screen on an email listener, so this might not work, but I might be able to help.

    First of all, to look for a couple of things

    UiApplication.getUiApplication ()...

    Do not forget that this gets a reference to the UiApplication who is running, not your application.  So if you run in the earpiece of the phone you are running in the phone, in the listener of e-mail application, you run in the messaging application.

    protected void onObscured() {}
    UiApplication.getUiApplication () .requestForeground ();
    }

    onObscured is called when the screen is covered by another screen.  If she does not, she will not be called.  Assume its display, the screen masking came from the same application which displays on the screen, then the requestForeground() will not do anything, because the Application is always in the foreground.  If the screen masking done from another application, then it is possible that this would actually hide the new screen.  I think that's why do you afterwards.

    These points side lets talk about why it works for the phone and not by e-mail.  Easy, I think.  The earpiece of the phone runs in the phone application, which of course is in the foreground when the phone is used.  That means the app phone is to put in the background when it finishes.  So if you press a screen in the foreground when executing the application phone will display, it could disappear - that's why I think that the use of the requestForeground() in the onObscured().

    However, the messaging application works in the background at the time of the invocation of the listener. Thus, while pushing the screen won't get on the screen.  So to get this screen, the application must be on the foreground.

    I hope that a shed.

    Now, I would say, rather than push these screens using the actual RIM applications, skip this treatment to your own application, and then you have the control over the treatment of foreground/background.  Probably the best way to proceed is to use a Global event, extract the data you want the listener, talk to your application, and then deal with this in your own application.

    Edit: My apologies for this suggestion of duplication - I just changed when RexDoug

  • Client with JavaScript listener, surrounded by a button have a delay

    Hello.

    I have a fragment page (jsff) with a resulting keypad buttons surrounded by a client listener that calls a java script function; whenever I click on a number it refresh a text with the concatenated value input. I've implemented with JavaScript. Why with JavaScript? Because of the delay using partial triggers showing the value in the input text.

    When I test it on the server, it works fine. I click on each button and have a little late, but it works for the needs to develop.

    Now, when I insert this fragment inside an another jsff which include several elements, the result is not the same. I click every button and the value is displayed in the text of entry very fast, but the I clicked on the button takes between one and two seconds to recharge for summer clicked again. I don't understand what is happening.

    Could someone help me?


    Thank you very much.

    Probably you always spread the event on the server. You can easily check this with a browser like Firefox/Firebug plugin, sent to see if there is no request for the server.

    Normally, you will need to explicitly cancel the event to propagate to the server. For example, if you have a clientListener on a button, you do something like below:

    function showPopupFromAction(actionEvent)
    {
      actionEvent.cancel();
    //your logic here

    }

  • SVG in ADF

    Hi people,

    I want to integrate interactive SVG graphics in my application of ADF.
    So, when a user clicks on an object in SVG I somehow spread the event to the ADF/JSF field to navigate the objects in view.

    I've read a few papers of Frank about the interaction of the Applet/ADF, tried to do something similar with SVG-do not work yet.

    Anyone has any experience with SVG?

    Thank you

    Kresimir

    Hi Laurent, I create a blogpost with code samples for you.

    I'll post here (I'll finish it today) the post.

  • Disable the format of pixels for good

    Whenever I open a few .jpgs, format of the pixels is automatically enabled. Whenever I need to change, I have to turn it off manually. I must do this for each image that I opened.

    I need to turn off the format of pixels in Photoshop for good. I've looked everywhere on the internet and I have not found an answer to this.

    I know how to disable the individual images, but I need this option unchecked for all images.

    Basically I want than Photoshop to never turn the pixel aspect ration unless I said to. Is this possible?

    Photoshop can not turn on the pixel format, the files you open have had their parameters change intentionally at some point.

    You can create an event script to set the Pixel Aspect Ration in the 'square '.

    1. create a new doc

    2. Select: View > Pixel Aspect Ratio > 1:2 anamorphic (2)

    3. create a new action, name it "square BY ' and enter the recording mode

    4. Select: View > Pixel Aspect Ratio > square, then stop recording

    5. Choose file > Scripts > Script event handler...

    6. check 'Enable events to run Scripts/Actions' in the top left of the

    dialog box

    7. in the "Photoshop event:" popup select 'Open Document '.

    8. click on the next radio button of "Action:" and choose the action you

    saved in steps 3 and 4.

    9. click on the button [Add] in the right column

    10. click the [done] in the column upper right button

    Now, whenever you open a file with a format of pixels in the place, it will be returned to "square".

  • Create a personal in a LinkElement link type

    Hello

    We must be able to have a LinkElement that shows a pop-up (TitleWindow) when you click it. Before Flex 4.5 was released, we used our own updated build TLF, who added the support for this (among others) by doing the following:

    <our_name_space:a href="popup:some_popup_class">Foo</our_name_space:a>

    However, having our own TLF caused headaches more that worth the (mainly throwing things as ISWFContext when seal fonts).

    Given that the TLF version included in Flex 4.5 has most of what we need, scratch us our version internalized and just went with the accumulation of stocks. However, I still need be able to support the functionality described above.

    What would be the best way to implement this kind of functionality? Should we just create a new item type that provides the features you want? Is this possible without having to assimilate the entire framework?

    Any advice or links to relevent material to read would be greatly appreciated.

    Thanks for your time!

    Using the user styles.

    FOO

    Add a listener for the event popup to TextFlow.  The event will tell you what linkElement was clicked on and you can use the getUserStyle API to access the value of popupClass.

    Richard

Maybe you are looking for

  • Re: Satellite P300-161-Lock-ups/freeze randomly

    Hi all I've had my laptop Toshiba Satellite P300-161 for about 6 months now. However, in the last month or so... I've known a freeze at random the computer laptop everything. It usually starts at any time... then it will pause and then start to freez

  • bluetooth HP envy touchsmart problems - can't activate bluetooth

    So I recently did some updates on my computer and even update my Itunes and rebooted my computer as soon as I could no longer my bluetooth to appear or work (so I have no mouse) it has already happened many times and I've managed to start this time t

  • How to configure a listener of firewire to work

    Hi all My machine vision system consisting of a camera firewire (PointGrey Flea2) and two computers (a desktop computer as a real-time target) and a host PC running Windows XP. These three elements are connected by means of a 3 ways, hub firewire-b.

  • Bug in the game of hearts win percentage

    Played 400 games. 332 won. Win rate is 57%, which is wrong. 332/400 is exactly 58%. The misrepresentation of the win percentage is not a big problem, but there seems not to be a direct round bug. If the bug is in the software of hearts, then it is pr

  • It is safe to delete the files in blue text and a sign $?

    It is safe to delete the files in blue text and a sign $?