Listen for Layer Changes?

Hi
I am looking at subscribing to network events and working out event ids and things and so far haven't been able to work out this. Fairly simple question, hopefully the answer is just as simple.
Can I subscribe to an event which lets lets me listen for any layer changes (in my iOS app)? The docs suggest any actionable event can be listened for, but I am yet to work out how to do this.
Thanks.

If you're using a web front end I don't see how that's possible unless you have persistent connections and "push" technology. HTTP is a request/response protocol, which doesn't lend itself to this problem.
If you're writing a Swing client you have a bit more control.
Maybe one way to do it would be to use JMS publish/subscribe. When a client connects to the server, it subscribes to the database change topic. Whenever one of the registers clients makes a database change, the DAO puts a message on the topic, which is then broadcast out to all registered subscribers. They can update themselves in their onMessage() listener implementation.
Could be a network traffic nightmare if you have a lot of clients. And what about transactions? Will you make the topic and the database transaction a single unit of work?
Might be more complicated than it's worth, but that seems to be your requirement. Not a trivial problem.
%

Similar Messages

  • [svn:fx-trunk] 12481: Because of the Change/Changing changes in VideoPlayer , we need to also listen for a CHANGE as well as the CHANGE_END, CHANGE_START, THUMB_PRESS, and THUMB_RELEASE events.

    Revision: 12481
    Revision: 12481
    Author:   [email protected]
    Date:     2009-12-03 18:48:17 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Because of the Change/Changing changes in VideoPlayer, we need to also listen for a CHANGE as well as the CHANGE_END, CHANGE_START, THUMB_PRESS, and THUMB_RELEASE events.
    Also, when clicking on the track and animating, the scrubbar's playedArea should move along with the thumb.  We do this by using pendingValue, rather than value in updateSkinDisplayList().
    QE notes: -
    Doc notes: -
    Bugs: SDK-24528
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24528
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/ScrubBar.as

    My first observation is that you don't reraise the error in the CATCH handler. That is bad, because it makes the proceedure fail silently which may be very difficult to troubleshoot.
    The version numbers for Change Tracking are indeed database-global. MIN_VALID_VERSION can be different for different tables, if they have different retention periods. But if they all have the same retention period, it seems likely that MIN_VALID_VERSION
    would increase as the database moves on.
    I'm not sure about your question Can we use the CHANGE_TRACKING_CURRENT_VERSION even though we want to download subset of data from the table (only records matching for one data_source_key at a time). Where would you use it? How would you use
    it?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Listening for file changes

    i have a properties file. I need to monitor for the changes to the file and send intimation to all the files using the properties file. How shall i do it with out modifying the files which are executing it. i.e i need to suspend the execution of the threads and reload the values.

    set up a File object that represents the props file.
       File f = new File ("propsFile");   On start up, note the lastModified() time
    In a low priority thread, keep polling the lastModified() method to check if the file has been reloaded.
    Set up an event handler mechanism to notify and call all interested objects that would want to take some action if and when the file's been modified.
    ram.

  • How to add a listener for frame change

    hello
    Im quite new to jmf, and im writing a code which uses the webcam, but im stuck at a point where i want a listener which is called whenever the frame changes in the visualcomponent. so basically im looking for a frame changed listener to be added to the visual component instead of using a loop or a timer or something.
    i just need a method to be called constantly along the stream coming from the webcam but which is consistent with the changing of the frames.
    i would really appreciate any kind of help.
    thank you

    i thought there would be a listener or something ready to do thisThere is. It's the Rendered interface, which has a callback everytime data is received. If you want to create a custom renderer that is triggered everytime data is available, you set a processor to use your renderer and when data is available, your process command will be called. Same as an event listener...but it's very advanced stuff to implement the renderer interface.
    for example if u want to record a video ull need to capture every frame as soon as it comesNo, the video doesn't come to you a frame at a time. The video is already encoded somehow when you get it, so it's coming in as a stream just like it'll be going out to the file... It's a stream of bytes, not a stream of images... You're not digitizing here, you're transcoding.

  • How to listen for a change in a JTextArea?

    well ..... the subject says it all :)

    The JavaDoc says it all :)
    The java.awt.TextArea could be monitored for changes by adding a TextListener for TextEvents. In the JTextComponent based components, changes are broadcasted from the model via a DocumentEvent to DocumentListeners. The DocumentEvent gives the location of the change and the kind of change if desired. The code fragment might look something like:
    DocumentListener myListener = ??;
    JTextArea myArea = ??;
    myArea.getDocument().addDocumentListener(myListener);http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTextArea.html
    Col

  • Event to listen for nearID change

    Hello,
    it appears that Stratus NetConnection nearID changes pretty frequently for me while connected to Stratus (at least lately).
    I couldn't find where I can be notified when nearID changes. Could you help? Thanks in advance.
    -Kirill

    Thank you Michael.
    It just seems odd - and probably related to recent Stratus downtime/bandwidth experience - but my application takes several multi-second tries to connect to a server. Maybe it's just slow.
    Another problem I've been experiencing lately (definitely related to something on Stratus servers) is netConnection being dropped randomly. It simply disconnects after a minute or two about 90% of the time. I'm glad I can at least test my application, hoping these problems will go away soon.
    I think it's great what you guys at Adobe are doing with Flash and Stratus. If you had a Stratus logo designed, I'd definitely put that in my game's title screen.
    -Kirill

  • Listen for change in JTextField

    I would like to write an event listener to listen for any changes made to a JTextField. Normally I would think that keyListeners would do the trick except that the contents of this field can be altered by the application itself, and I would like to trap those changes too.
    Does anyone know of an event listener that listens for any changes made in the text of a JTextField, regardless of how those changes are made?

    use DocumentListener
    for more info see http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#doclisteners

  • Lisetening for Property change

    I have created a MC to be used as a button. It is generic and
    I customize it per instance. It contains an onRelease event
    handler.
    I am confused as to what approach I can take within the MC's
    onRelease statement that would allow the parent to 1> know the
    MC has been clicked & 2> know which instance of the MC has
    been clicked (without putting onRelase code for each instance at
    the parent level).
    I was trying the following...
    myMC.onRelease = function() {
    _parent.clickedButton = myMC._name;
    ...but I couldn't figure how to make the parent listen for a
    change to clickedButton.
    How can I listent for a variable change? Is there a better
    approach?
    thx,
    Nathan

    Looks like I can answer my own question. In case anyone else
    is confused as to how to do this, I used the Object.watch method.
    After doing the above in the MC, I included the following in
    the parent...
    var btnWatcher:Function = function(prop, oldVal, newVal,
    userData) {
    trace(newVal);
    this.watch("clickedButton", btnWatcher);

  • SWF panel listener for changed selection

    In short, my question is as follows. Is it possible to create a listener which
    detects when the current selection in the Flash authoring tool has changed,
    and informs my SWF panel? This does not have to be a listener per se,
    it can be some hand-crafted process which consumes some reasonable amount of processor time.
    I describe my question more precisely below.
    Suppose that I want to create an SWF extension panel for Flash (in Flash or Flex),
    and I would like the panel to display a property of the object currently selected on scene
    in the Flash IDE -- like the instance name of the object (if it exists).
    I can use JSFL to detect the instance name of the selected object, and pass the string to the
    SWF panel using call(), for instance. The problem is that I don't know how
    to detect that the user has selected the object, or that the selection has changed.
    Ideally, I would like to add an event listener that listens for such an action in the flash authoring tool.
    However, using JSFL, this does not seem to be possible (I can only listen to events such as frame changed
    or layer changed, but not selection changed).
    I tried the following solutions:
    1. Periodically check in JSFL whether the current selection has changed.
    The problem is that in JSFL, there is no sleep function, or anything alike. The javascript
    methods setInterval and setTimeout do not work in JSFL. Therefore, in order to periodically check for changes,
    one must actively loop. This is extremely resource-consuming -- in fact, it hangs the flash IDE.
    2. The periodic check can be triggered by the SWF panel itself. In actionscript, I can use setInterval to periodically
    invoke the selection update function via JSFL. I have set the interval to 400 milliseconds, which gives a reasonably quick
    reaction to changes. However, the functionality I want to implement is in fact more complicated than just retrieving the
    instance name of the selected object. As a consequence, performing this operation every 400 milliseconds still consumes
    too much processor time (the flash IDE consumes 30% of my processor time, even if the user doesn't do anything).
    Therefore, I still would like to find a solution which does not use the processor when the user does not do anything in the Flash IDE.

    I'm trying to do the same thing. Did you find a solution?

  • How do I listen for changes in a container's components?

    I have a JScrollPane that contains a JTextPane. I want any Container that can possibly contain my JScrollPane to be able to listen for changes in the JTextPane's Document.
    For example, at the moment I'm using a JTabbedPane to hold a number of my JScrollPanes and I want to alter the tab title when any associated JScrollPane-JTextPane-Document is updated.
    Any suggestions on how best to handle this?

    I would use a controller object that manages all your gui components (tabs, scrolls, documents, text panes). Your controller object can register as a listener to the appropriate component, and when it changes, update the title of a tab (or do whatever else) as appropriate.
    Never put business logic like this stuff inside the actual gui components. Create, layout, etc. all the gui components (and related components like Document) from another controller like object instead. It makes handling the various listener stuff like this much easier. Read up on MVC (model view controller) stuff for more info.
    As for the actual mechanics, you could get the document that is used in the JTextPane and register as a DocumentListener. As a document listener, you get notified of all changes that are made to that document.

  • How do I listen for change in the global position of a Node

    Hi there,
    I want to create a Wire/Connection node between two scene nodes. I want this Wire node to be updated when one of the nodes is moving. In the common scenario I would listen for change events in the target nodes position and update the Wire :
    targetNode1.translateXProperty().addListener(new ChangeListener<Number>() {
    public void changed(ObservableValue value, Number oldValue, Number newValue) {             
    wire.setStartX(targetNode1.getTranslateX());
    wire.setStartX(targetNode1.getTranslateY());
    wire.setEndX(targetNode2.getTranslateX());
    wire.setEndY(targetNode2.getTranslateY());
    The problem is that the target nodes are children of another container nodes(that are actually moving). So listening for change events in the translate properties of the target nodes does not work(their parent nodes are actually moving)
    Is there way to listent for change in the global position of the target nodes relative to the Scene?

    It sounds very similar to a problem I posted about earlier...
    How to implement a UI similar to a UML Diagram with connections?
    I ended up making my own special bounds property, that updates when the parent's special bounds property changes.
    I also had to listen to the parentProperty change event to add/remove my listener on the parent node.
    All in all, a pain in the butt. There should be an easier way.
    The shortcoming of the solution is that all the nodes in the hierarchy must have my special bounds property implemented (ie. they're all classes under my codebase such that I can implement it), which for the moment is true... I'd like a cleaner solution however.

  • ADF :  Value change listener for the whole jsff page

    Is there any feature to have a value change listener for the whole jsff page ?
    How to know if user has change something in the page i.e. how to know whether the page is dirty ?

    User please tell us your jdev version!
    Read this blog https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works
    Timo

  • Listening for Changes to JTextArea

    I am writing a program that listens for changes to the contents of a JTextArea to obtain input for its execution. But I have implemented DocumentListener, PropertyChangeListener to listen for changes to the JTextArea for deriving input without success. Please could anyone advice on what to do.
    My code is below.
       myListener implements DocumentListener{
       JTextArea txt = new JTextArea();
       txt.getDocument().addDocumentListener(this);
       public void changedUpdate(DocumentEvent e){}
       public void removeUpdate(DocumentEvent e){} 
       public void insertUpdate(DocumentEvent e){
        try{
         //my code for obtaining input from txt is here
         int start = e.getOffset();
         Document doc = e.getDocument();
        }catch(BadLocationException ble){
    }

    Here's a link to the Swing tutorial on "How to Write a Document Listener":
    http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html

  • Any way to listen for changes in Spark TextArea?

    Hello,
    What is the best way to listen for changes in a Spark TextArea? My scenario is simple: I need to know when some text is added or deleted (with from/to index).
    Regards,
    Dinko

    s:TextArea does have a chang event - http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextAr ea.html.

  • Vote For Skype Changes You Want

    Want to Vote For Skype Changes? Make Suggestions?
    I know many of us Skype users see things that are needed. Things that were taken away we want back. Plus I have heard some very good new ideas.
    Hopeful Skype Is Listenting...
    I am hopeful. Why? Because we are starting to see a few small GOOD changes on Skype, after breaking a few important things. (did you know we can now remove messages f users in our group Skype rooms with Skype version 7.0?. HOW ABOUT EDIT? and how about Cloud Rooms?) 
    Vote Here 
    I made a Survey here where you can vote.
    and suggest new ideas for things you want Skype to change. 
    Here is the purpose of this Topic. Please contribute in these ways:
     Make Suggestions both here and in the Survey
    Vote for all the ideas in the survey
    Lets talk here about changes and their benefits and your reasons.
    Be hopeful, positive and polite please or we will ask admin to remove your comments here.
    Get my Skype Tips or Find New Skype Friends and Skype Chat Rooms at my Skype Directory or join my membership site all about Skype http://SeeYouOnSkype.com

    Excellent reply SeanEllis Thank you.
    Yes after I had the ideas, wrote a survey and created the Skype Room group, I discovered the Forum thread about Skype Ideas and had the same thought. they are already doing this. So, I guess the benefit of mine is to raise awareness of this Skype Idea Community Board.
    In my Skype Room guidelines, there is a link to the Survey which has links to all the Skype Ideas Boards for all the Skype clients, (Win7,8 iOS, Mac)... well Mac didnt have one, but I linked to the Mac blog & community.
    I completely agree and love the explanation of the process to elevate the most Kudo'd  (voted for/ popular) idea requests for implimentation. Very Impressive. People don't relaize that Skype/MS is listening... as you said ... to the clear focused voice of the most voted for and commented on Ideas for Skype changes.  So Pleae dont dilute the votes for the same request! I will repeat the good info  I found and link to it again.... 
    You can submit your improvement ideas to Skype for Windows desktop quickly and easily here.  Learn how
    Idea submission tips:
    Only one idea per submission
    Pick a descriptive title
    Very encouraging, I say!  My Skype Groups are all invited to read this, search for your ideas first,  submit yours only if someone else has not yet. Than vote for the ones you want with the  Kudo button below.  Do leave comments on teh ideass you want Skype to make happen. 
    Thanks everyone!
    Julie
    PS Status of Your Idea
    This is what shows me that Skype/MS is listening (from the last link above, in case you want to read the whole thing):
    What do the votes/kudos mean?
    Just as you can give kudos in the community boards and blogs, you can vote for ideas you like on the Idea Board. Ideas with high vote totals are more likely to be recognized and accepted by the teams at Skype who develop our products and services. You can also leave comments on ideas, but remember to be kind! (my underline)
    What do the different idea statuses mean?
    We strive to review submitted ideas on a biweekly/monthly cycle. Each idea will go through a life cycle that will be assigned statuses at each milestone. The statuses are explained here:
    Status of Your Idea:
    New Idea - Sparkly new idea, submitted by you (my tweak - or someone else), and ready to be vetted by the community.
    Comments Requested - Items set as Comments Requested will be open to the community for feedback and votes.
    Under consideration- Idea has been forwarded to appropriate business team who is determining feasibility.
    More information needed- More information is needed before our Product Management team can take this forward, please review the comments left by the team.
    Duplicate - Ideas in this status have already been submitted in some form or another. We will link these items over to the other idea so you can review the status or track the progress there.
    Already exists - This is available in the product. 
    Future possibility - Idea is a good one but not something we can include in a near-term product or software release.
    Accepted - Idea has been accepted and has been taken forward for implementation, check back soon for updates.
    Not right now - We like the idea but just not for right now, we will revisit it in the future.
    Implemented - You asked for it, we did it!
    For the full article read this. 
    Get my Skype Tips or Find New Skype Friends and Skype Chat Rooms at my Skype Directory or join my membership site all about Skype http://SeeYouOnSkype.com

Maybe you are looking for

  • EPrint for HP Photosmart C4583

    hi everybody, Cannot find any info about a possibility of ePrint'ing on HP Photosmart C4583. Is this printer compatible with ePrint? If it is, please, describe the process how I can print documents or photos directly from iphone/ipad by wifi. Please,

  • Pixelated Images Printing

    I am new to Pagemaker and Im trying to create a little flyer for my youth group. The images are all jpegs, and when I use the 'Place' option they were showing up fuzzy. So I changed the view to 'high resolution' and now they look great on screen. But

  • ICloud keeps popping up and won't accept my AppleID password

    iCloud keeps popping up and won't accept my AppleID password

  • Cannot install Itunes 10.5 on XP

    Cannot install Itunes 10.5 on XP it says there is some kind of problem with the windows installer. Please help! I have tried evrything to fix it.

  • Flv, mp4, avi, mkv files to play on Lumia 800 devi...

    Befor buy this phone I want to know: 1. I have a bunch of video files in differen formats. Is possible to copy these ones to Lumia phones and play  (without pre-convertation to special format)?   2. Is it flash video supported in browser? daylumotion