Event Management (Please help)

Hello ,
Please I need Help in this topic:
Suppose i have two objects; A and B
I created a custom event . it is possible to trigger this event in object A and
proccess it in object B?
If yes can some one give all the steps to do this and a sample code
many thanks.
please help

Yes. Basically, Object B needs to register as a Listener with Object A. Object A then fires the event. Here's a reply I wrote to a similar post a few months back.
If you want to set-up your object to fire events in the same way as "built-in" Java objects, include the code detailed in the Javadoc API for http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/EventListenerList.html. This enables other objects to register as listeners and to then receive events.
You'll also need to define your own listener interface containing as many methods as you need, plus possibly your own event objects.
e.g. Define an interface MyListener with a single method valueChanged(),
public interface MyListener {
   public void valueChanged(MyEvent event);
} Other objects must implement MyListener and then register as Listeners with your Object.
public class OtherObject implements MyListener {
   public void valueChanged(MyEvent event) {
       ... some code...
   YourObject yourObject = new YourObject();
   yourObject.addListener(this);
} // end of OtherObjectIn YourObject, use the code from EventListListener to implement addListener() and removeListener(). When an event occurs, create the MyEvent object and use the sample code to loop through all the registered listeners (which must implement MyListener) and call valueChanged().
I hope this makes sense - please post again if not.

Similar Messages

  • HI! I am using iTunes with Windows 7 64bit.after upgrading itunes  to 10.5.2.11 it opens only once. If i close it, then it will not open again.the only way to open itunes is by disabling the APSDaemon.exe from the task manager.please help!

    HI! I am using iTunes with Windows 7 64bit.after upgrading itunes  to 10.5.2.11 it opens only once. If i close it, then it will not open again.the only way to open itunes is by disabling the APSDaemon.exe from the task manager.please help!

    Refer this article to reset Winsock to it's default.  Your PCTools may have inserted LSP.
    http://support.apple.com/kb/TS4123?viewlocale=en_US
    After reset and restarting windows, you may get a prompt to remap LSP, click no.

  • Itunes 7.5 does not open, but it shows up in task manager please help?

    please help its been 2 months already and i cant sync my ipod cuz itunes does not open but it shows up on task manager.
    i have tried every thing but still it does not work. i have reintall my itunes and quicktime like 20 times i've gone to older version but still does not work.
    PLZZZZZZZZZZZZ HELPPPPP. im desperate and tired of liseting to the same songs for 2 months

    Let's try to get an idea of what might be going on with some preliminary questions from b noir's "smack" for iTunes launch failures:
    Is there an error message associated with the launch failure?
    If so, what does it say and what (if any) error numbers are there?
    If there's not an error message, let's check your QuickTime (its well-being is a requirement for a functioning iTunes).
    Go to the XP Start menu > All Programs and try running QuickTime.
    Does it start?
    If not, then the same question as for iTunes - is there an error message?
    If so, what does it say and what (if any) error numbers are there?
    Do you notice any other peculiar behavior with QuickTime?

  • Dispute management - please help

    Hi Gurus,
    When I search for a dispute case using transaction UDM_DISPUTE then getting error below. It is not giving any additional information. When I click the message then I am directed to main menu.
    no RFC destination could be determined for the method call
    Please help,
    Regards,
    Pavan

    Hello
    Blue print document is confidential and varies from company to company, how ever I would try to give you some guide lines.
    - Understand the scope of sales and distribution, what sub modules of SAP and current business processes have been decided.
    - In principle you need to understand the "order to cash " cycle
    - At every SD process, relate to FI what documents are being generated
    - Some processes like master data creation, credit management policy of the client may be common to SD and FI, so they would part of both the processes
    - Use ASAP questionnaires and get feed back, comments and arrive at final list of processes in AR, credit management, collections and dispute management
    - Make visio and flow charts for every process in minutest detail
    -For every process, ensure , visualise the configuration, test scripts, user manuals etc, so that they would be prepared with ease in the next stage
    Reg
    assign points if useful

  • CCMS & Soultion Manager (Please Help)

    Hi, Dear
    Thanks for great URL, its really help me... I really appriciated it, how may i give you reward points...
    One more thing, becuase these documents are only for installation for Solution Manager...
    We already installed Solution Manager 4.0 and running fine...and Early watch alrts are running fine...
    My question is : -
    1. How to setup / configuration for general alerts monitors for-example
    We are running XI 3.0, DEV, QAV, PRD, and BI as well
    Where should I setup for alert monitor, for-example XI has XML messages are running we want what ever messages or alrts is comes its go through Solution manager and soultion manager will send email them...
    Example #1
    Lets get one system first, i-e... QA, should I create monitor set first in QA? system like RZ21 and how? if i create monitor set, how to i sent thase messages to solution manager...? and how soulation manager will sent email (need to setup)
    Where sould I start, RZ21 or CCMS or will I configure soultion manager first or RFC connection... very confouse
    Please help me i will be really appriciated it
    Thanks in Advanced

    Hi,
    I have a 5800 XpressMusic. Don't know if you need all the software stuff? But anyway... Using V 21.0.25. Not sure if it's relevant but I've only had this phone a week. However, the application manager did work at first. It just decided it'd stop working on Friday.
    My laptop is Vista, service pack 2 and 32 bits. Connecting via USB.
    Thanks,
    Kay

  • Travel Management - Please Help

    Hi All,
    While processing Tcode prrw, I am geeting an error that posting run XXXX does not have a valid status. For eg Run no. is 29440.
    1. When prrw is executed, run status is "selection is running"
    2. Thereafter if we try to post it then system thrpws massage "posting run XXXX does not have a valid status"
    Posting Run Management Screen View:
    Run POsting Run Name Status user dt chg time chg
    29440 Trip Posting Selection is running
    When posting run is posted then the error comes ""posting run 29440 does not have a valid status""
    Please help to solve this problem
    Thanx in Advance
    Manish Katyal
    Email : [email protected]

    Hi,
    When it says "selection is running", it is trying to do something. Only when it is completed, it will have a valid status.
    Hope this helps,
    Reward points if helpful,
    Thank You,

  • Oracle Express Batch Manager-Please Help me out-urgent

    Dear all,
    I have created a Relational Access Administrator project and mapped an Express Datamodel with RDBMS lookup and fact tables and created a Maintenance Procedure Using "Express Database Maintenance" from "Relational Access Administrator". After that when I tried to run that "Procedure" using "Batch Manager", it creates a Command definition file "~5848371.cmd" and nothing is showing in the "Job Monitor" tab of "Batch Manager". At the same time since it could not run the procedure, no Express database have been created to the specified path.
    Please help me out, as I am in need for this very badly. I have gone through the document "Relational Access Administrator(User Guide)" from otn.oracle.com, but nowhere such type of problem have been addressed.
    Thanking you in advance,
    regards,
    Manoj Ghosh,
    Mail ID: [email protected]

    There is a tutorial on building a chat application (or applet) on the ibm site.
    http://www-105.ibm.com/developerworks/education.nsf/dw/java-onlinecourse-bytitle
    You need to register to use it, but it is free.
    Hope this helps
    Peter

  • EVENT PROBLEM please help

    hey everyone,
    ok heres my problem i have a jpanel with 11 jtextfields and i jbutton. when the jbutton is preseed it calls and actionlistener is envoked and the 11 jtextfields are populated. this works fine the textfields all get the correct information.
    my problem is that the information is displayed only after the whole event has finished. not as each individual textfield calls the setText() command.
    please help
    matt
    kappsetsfire

    The text fields won't be updated until a repaint occurs.
    Repaints occur on the same thread as other UI events (like clicking the button).
    Thus the repaint(s) can't be serviced until the UI thread has finished what it's doing - namely, working through your code.
    Even asking the text fields to repaint explicitly won't solve it as the repaint will still have to wait for your code to finish.
    If your method that's setting all the text field values takes a while to execute you should be running it in a separate thread and calling onto the UI thread to set the text field values.
    If you want more information just search/ask.
    Hope this helps.

  • I could not synchronize my ipod classic 180gb with itunes. whenever i connect and click podcast tab it gets hanged and no working untill i close all programs from task manager. please. help me

    Please help me in this regards.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • Embedded Event manager scripting help

    Hello,
    I'm looking into a way to do the following:
    If pinging of BGP peer detects packet loss, or circuit flapping, lets say 5 flaps in 60 secs, then I'd like the bgp peering to go into admin down state.
    Would be nice if it also recovered on its own when 1hour or X of stability was detected.
    Thank you

    I found a good doc and think i'll be going with this:
    IP SLA 3
       icmp-echo X.X.X.X  source-interface GIGXXXX
    IP SLA schedule  3 life forever  start-time now
    track 3 ip sla 3  reachability
    delay up XX
    event manager applet  WAN_DOWN
    event track 3 state  down
    action 1.0 syslog msg "Packet loss  or Primary WAN cct loss detected"
    action 2.0 cli command  "enable"
    action 3.0 cli command "config  t"
    action 4.0 cli command "router bgp XXXXX"
    action 5.0 cli command "neighbor X.X.X.X shut"
    action 6.0 cli command  "end"
    action 7.0 syslog msg "BGP neighbor  placed in Admin Down because of packet loss to  Peer"
    event managet applet  wan_up
    event track 3 state  up
    action 1.0 syslog msg "WAN network  restored"
    action 2.0 cli command  "enable"
    action 3.0 cli command "config  t"
    action 4.0 cli command "router bgp XXXXX"
    action 5.0 cli command "no neighbor  x.x.x.x shut"
    action 6.0 cli command  "end"
    action 7.0 syslog msg "BGP neighbor  was brought up due to sustained comm with Peer"

  • Oracle 10g XE Event Logs - Please help

    I'm running 10g XE on a Virtual 2003 Server. My Applicatin Event Logs the following events. I will get up to 20 events per minutes. I have posted the event description. Please advise. Thank you,
    The description for Event ID ( 5 ) in Source ( Oracle.xe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: QMNC, xe.
    The description for Event ID ( 16 ) in Source ( Oracle.xe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: xe.
    The description for Event ID ( 34 ) in Source ( Oracle.xe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ACTION : 'CONNECT' DATABASE USER: '/' PRIVILEGE : SYSDBA CLIENT USER: NT AUTHORITY\SYSTEM CLIENT TERMINAL: [Server FQDN stated in this area]: 0 .

    Hi Jab
    The last event is something Oracle logs per default. Every time someone logs in with sysdba privileges, it is logged to the event log. Read more in the manual
    Security guide, chapter 8
    Try to check the parameter
    AUDIT_TRAIL
    in the database
    show parameter AUDIT_TRAIL
    If it is set to OS and you have enabled auditing, then more events are written to the event log.
    Best wishes,
    Kennie
    The description for Event ID ( 34 ) in Source ( Oracle.xe ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ACTION : 'CONNECT' DATABASE USER: '/' PRIVILEGE : SYSDBA CLIENT USER: NT AUTHORITY\SYSTEM CLIENT TERMINAL: Server FQDN stated in this area: 0 .

  • ICal ALL Events Gone PLEASE HELP

    Hello... Need urgent help! One afternoon I was finishing up work and closed everything as normal... in the morning, ALL the events on iCal were gone... just disappeared. I have a blackberry 8350i and figured there was a mishap between the two so I brought a 12" I also have only to find out that all the events there were gone too; and I never sync the BB with the 12". Both PB's were synched with my iPhone without any problems ever. Does anyone know what's going on? Thanks in advanced.

    Hey Ferd,
    So you think there is something corrupted in the BB that made the iCal erase the whole 09? One thing is for sure, the data in the BB is intact. All events there seem to be fine and yet it won´t sync with iCal (I use PocketMac because when this BB came out there was no other option to sync with mac). In fact, I've been trying to sync with a PC but I haven't had the time to seat down to spend a whole afternoon trying to figure out Win Vista... so far "I think" I managed to backup the calendar and contacts but not really sure. Still trying to find an app to sync with... maybe that way I can make a backup to use with iCal. Do you know of any other way to sync the BB with another app in either mac or pc to do this???
    I have a time machine backup from june 29th which I used this morning. I boot from the Leopard dvd and restore from that date but didn´t remember that the applications were on the exception list. One thing, though, when the restore was finished, iCal displayed the reminder window with a bunch of the events... but since I had no apps i couldn´t say if everything was there. My intention, now that I think of it, is to go back to that backup, find the iCal software somewhere and install it to see what´s in there. If there´s everything, needless to say I´ll just make a backup, save it and restore again to the latest.
    I was trying to restore from .ics files but just realize they have to be .icbu... hence the gray.
    Right now I'm downloading the Combo Update to see how it goes.

  • Resolve Nodes - For Loop - Instance Manager Please Help

    Hello,
    I made a table in lifecycle designer that uses the instance manager to add rows.
    I want to write code that will loop through each of the instances and perform a comparison.  I would like the code to examine the index field.  If the index field = 2,  then return the value of the num amount field.
    This is what I have tried so far and it does not work. 
    var
     var
    var
    oFields = xfa.resolveNodes("Subform1[*].index1");
    var     
    nNodesLength = oFields.length;
    for     (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
      if (oFields.item(nNodeCount).rawValue ==2)     {
         form1.#subform[2].Table5.Row5.NumericField1.rawValue
         = form1.Page1.Subform1.Capital1.Capital1.detail.numAmount.rawValue;}
    break;    

    Here is a more lengthy definition of my problem.   I hope someone can help. 
    1.     I have a table that will allow the user to add rows when they click the plus button.  Here is the code
    ----- form1.Page1.Table7.#subformSet[0].#subformSet[1].detailHeader2.Button2::click: - (JavaScript, client)
    _detail.addInstance(this.parent.index);
    //Invoke the recalculate method to include the field values from the added row in calculations.
    xfa.form.recalculate(1);
    2.     The table also has a button to delete rows.   Here is the code
    ----- form1.Page1.Table7.#subformSet[0].detail.Button2::click: - (JavaScript, client) --------------
    // Invoke the Instance Manager to remove the current instance of the detail subform.
    _detail.removeInstance(this.parent.index);
    // Invoke the recalculate method to update the form calculations.
    xfa.form.recalculate(1);
    3.     The table has a drop down list named txtPartNum and that allows you make a selection.  Once you have made the selection a script populates other fields in the same row. The Drop Down list contains this code:
    ----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::initialize: - (JavaScript, client) ------
    // Populate the part number Drop-down List.
    partNoScript.populatePartNo(this);
    ----- form1.Page1.Table7.#subformSet[0].detail.txtPartNum::change: - (JavaScript, client) ----------
    // Populate the description and the unit price when we change the part number.
    partNoScript.getDesc(xfa.event.newText, txtDescription, numUnitPrice, index1);
    4.     The following script populates the following fields:
    txtPartNum,
    txtDescription,
    numUnitPrice,
    index1
    ----- form1.#subform[2].#variables[0].partNoScript::partNoScript - (JavaScript, client) ------------
    // This script object controls the interaction between the part number, description and unit price fields.
    // When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
    // each array i.e. for every part number, there should be a matching description and price.
    // Array of part numbers.
    // This script object controls the interaction between the part number, description and unit price fields.
    // When you fill the partNo, partDesc and partPrice arrays, make sure they have the same number of array indices in
    // each array i.e. for every part number, there should be a matching description and price.
    // Array of part numbers.
                         var partNo = new Array(" ",
                                                                    "Company Labor - Regular Hours",
                                                                    "Company Labor - Overtime Hours",
                                                                    "Company Engineering - Regular",
                                                                    "Company Engineering - Overtime",
                                                                    "Company Burden",
                                                                    "Subcontract Labor",
                                                                    "Subcontract Engineering",
                                                                    "Subcontract Material",
                                                                    "Subcontract Equipment",
                                                                    "Subcontract Labor & Material Bid",
                                                                    "Purchased Materials",
                                                                    "Materials from Inventory",
                                                                    "Transportation Equipment",
                                                                    "Miscellaneous Tools Shope and Garage",
                                                                    "Construction Equipment",
                                                                    "Rental Equipment",
                                                                    "Permits",
                                                                    "Legal Fees",
                                                                    "Other Miscellaneous");
    // Array of part descriptions.
    var partDesc = new Array(" ",
                                                                    "1221.9922",
                                                                    "1222.9922",
                                                                    "1221.9922",
                                                                    "1222.9922",
                                                                    "1221.9922",
                                                                    "1232.9933",
                                                                    "1232.9933",
                                                                    "1232.9933",
                                                                    "1232.9933",

  • Vista OP--Curve 8330---no sync with desktop manager---please help

    I have tried the following versions of desktop manager, 4.3 from disk and download, 4.5, and 4.7.  Each new version was tried after clean reinstall.  Vista OP.  I click the sync configure.  I get the select a devise application window.  I click on any one of the choices, and get the following choices:
    <None>
    ASCII importer/exporter
    yahoo
    THERE IS NO OPTION FOR VISTA
    I have read many suggestions on this message community which basically say try a different version.  THAT DOESN'T WORK. Is there anything else anyone has tried that works with Windows Vista?

    Desktop Manager does not recognize any bluetooth drivers (stacks) other than the basic Windows Bluetooth Stack.  If you have another bluetooth stack in use, you'll need to remove it and let Windows install the basic bluetooth stack.  The downside of this is that you loose some of the advanced features that your current bluetooth stack gives...extra speed, etc.  However, that's the only way to make bluetooth work with Desktop manager.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Error while running scheduled job fromEnterprise Manager--Please help ASAP

    BEGIN
    Hi,
    I have created a scheduled job using the below code.
    BEGIN
    sys.dbms_scheduler.create_job(
    job_name => '"M2RT6"."INCR_REFRESH_M2RT6"',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin
    REFRESH_REPORTS_POETIC(''M2PT6'',''INCR'');
    end;',
    start_date => systimestamp at time zone 'US/Eastern',
    job_class => 'DEFAULT_JOB_CLASS',
    auto_drop => FALSE,
    enabled => TRUE);
    END;
    And I tried to execute this job from Enterprise Manager.
    I got the below error:
    java.sql.SQLException:
    ORA-02800: Requests timed out
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2
    Help needed urgently. Thanks for the resolution inadvance.
    Thanks,
    Sudheer.Vempali

    Hi,
    This is the bug in Oracle. Most of the times, restarting Oracle database may fix the issue.
    Basically, an existing bug needs the oracle database restarts in a regular basis.
    Restarting oracle database will flushes the database buffer cache.
    Thanks,
    Sudheer.Vempali

Maybe you are looking for