Creating an event that reacts to input

I'm trying to figure out how to create an event that reacts to input from a serial port in J2ME.
After reading many articles on how to create a custom event in java, I'm having trouble grasping the concept of combining that with input from a serial port connection.
I understand that I need to create a class for the event, extend EventListener, EventObject, etc. But I'm having trouble figuring out how it's supposed to read when input is available from a serial port.
Can someone help me understand what I am supposed to do?

I'm trying to figure out how to create an event that reacts to input from a serial port in J2ME.
After reading many articles on how to create a custom event in java, I'm having trouble grasping the concept of combining that with input from a serial port connection.
I understand that I need to create a class for the event, extend EventListener, EventObject, etc. But I'm having trouble figuring out how it's supposed to read when input is available from a serial port.
Can someone help me understand what I am supposed to do?

Similar Messages

  • BTE 1030 - we use for AP documents, create an event that triggers a workflow

    Hello all,
    We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.
    We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.
    It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.
    Has anybody else seen this issue and found a way to deal with it?
    Thanks
    Bruce

    AFAIK BAPI_ACC_DOCUMENT_POST and FI posting should trigger BTE 00001030 but BAPI_INCOMINGINVOICE_CREATE and AC interfacewould trigger BTE 00001050. (or is BAPI_ACC_DOCUMENT_POST also using AC interface, I will let you check it)
    Nevertheless call your FM triggered thru BTE 1030 also in a FM triggered thru BTE 1050. Also in the call check for update task
    function z_fi_00001050.
    call function 'TH_IN_UPDATE_TASK'
         importing
           in_update_task = in_update_task.
       if in_update_task eq 0 and i_xvbup eq 'X'.
         call function 'Z_FI_00001030' in update task
           exporting
             i_xvbup = ' '
           tables
             t_bkpf  = t_bkpf
             t_bseg  = t_bseg..
       else.
         call function 'Z_FI_00001030'
           exporting
             i_xvbup = ' '
           tables
             t_bkpf = t_bkpf
             t_bseg = t_bseg...
       endif.
    Regards,
    Raymond

  • Is it possible to create a component that takes two inputs?

    Hi Experts,
    Is it possible to create a custom JSF component that takes two input values and assigns them to a managed bean?
    For example, a component that displays two input boxes?
    The tag would look something like this:
    <my:component value1="#{bean.value1}" value2="#{bean.value2}" />I've tried, but I can't get the values to update the managed bean.
    I'm starting to doubt that it is possible, as their is only 1 setSubmittedValue method :(
    Thank you,
    Ristretto

    Hi Prosun Bondopadhyay  ,
                   Component controller is the base of a wda component. its can be considered as the base class. all the other views can be considered as the sub classes of component  controller. so without the base class there is no existence for sub class rt?
    like we can use all the methods and attributes of a component controller(main class) across all the view(sub class) and the viceversa is not possible.
    hence we cannot create a wda without component controller.
    Regards
    Sarath

  • Create a list that reacts more like a picker/date picker

    Hi guys,
    I want to display some data in similar way as you would select a date on I phone,
    Its like a type of list that always centres the item in the middle of the list...
    I belive its called the UIDatePicker
    and looks like this ...
    http://www.techotopia.com/images/5/54/Ios_4_date_picker_running.jpg
    I have my data as spark list component currently but want to modify it so it looks like the above.
    Any ideas on where to start?
    Thanks
    Aidan

    I have been mucking around with the list component to see if I can get it to behave in this way, but with little success.
    I think Im going to create my own component in flash and import as a swc for use.

  • How to create a dialog that takes inputs from user!!!!!!

    hi there
    anyone has any idea about creating a dialog that takes user input? some thing like login GUI. thank you. it would be better if you can provide some sample codes.

    The Java Swing tutorial has a section on creating dialogs. There is a demo on how to get user input from a dialog:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html#input
    The entire tutorial can be downloaded from:
    http://java.sun.com/docs/books/tutorial/

  • WLAI doesn't create appropriate triggers when I create an event

    When I create an event for an application view in WLAI, the appropriate database
    triggers for that table are not being created properly. I am trying to create
    an event that listens on the CUSTOMER_TABLE table for an insert. When I run the
    test, put an ample amount of time, and perform an insert/commit manually, the
    system doesn't recognize the insert.
    The problem is that there is no trigger created on the CUSTOMER_TABLE that would
    write data to the EVENT table. I have investigated the DbmsEventRouter settings,
    web.xml, and other connection settings and can't find anything wrong with them.
    My user on the database has the ability to create triggers as well. The server
    console also does not report any errors (other than the timeout).
    Is there something I am missing that would cause an event creation to NOT write
    the appropriate trigger with it? Thanks in advance.
    Dan

    Dan,
    Please verify the following:
    1) that an insert trigger exists on the table in question. If there is no trigger,
    then the EVENT table will not get populated.
    2) that the data source you've specified when connecting to the EIS is the same as
    what the event generator/router has in the web.xml
    3) that there are no other instances of the event generator/router listening on the
    same EVENT table. If so, it could be that the other instance of the event
    generator/router gets the events and deletes them from the EVENT table. This would
    give the other event generator/router the impression that no events have happened.
    Cheers,
    Chris
    Dan Kim wrote:
    When I create an event for an application view in WLAI, the appropriate database
    triggers for that table are not being created properly. I am trying to create
    an event that listens on the CUSTOMER_TABLE table for an insert. When I run the
    test, put an ample amount of time, and perform an insert/commit manually, the
    system doesn't recognize the insert.
    The problem is that there is no trigger created on the CUSTOMER_TABLE that would
    write data to the EVENT table. I have investigated the DbmsEventRouter settings,
    web.xml, and other connection settings and can't find anything wrong with them.
    My user on the database has the ability to create triggers as well. The server
    console also does not report any errors (other than the timeout).
    Is there something I am missing that would cause an event creation to NOT write
    the appropriate trigger with it? Thanks in advance.
    Dan

  • Create Repeating Event in Calendar

    I work rotating shifts and can’t figure out how to enter my schedule on my Touch with the current Calendar application.
    With my palm-top computer I simply created events titled: Day1, Day2, Day3, Mid1, Mid2, & Mid3. Each of these events were created as repeating events — repeating daily every twelfth day. Then I created Off1, Off2, & Off3 as repeating events — repeating every 6th day.
    Or another example would be Mother’s Day. It would be nice to be able to create an event that repeats monthly every 12mo (2nd Sunday of every 12th month).
    Is there any way to do something similar that I’m overlooking?
    Any assistance would be appreciated.
    I'd also like to be able to synchronize with my Google calendar.

    I don't know that it can be turned off, and I don't even use Apple's Calendar much (as a BusyCal user), but you might find it's useful if you learn to use it as intended. That box is pretty smart if you mention the date and location in the box before hitting enter.
    Just type the date, time, and place in that "title" box:
    "Birthday party Friday 8:00 PM at Joe's Place"
    That pops up an event with a start date of the next Friday (e.g., 10/05/2012 today in the US), start time of 8:00 PM, and "Joe's Place" in the location. It strips out the date and time before creating the event title that it pops up; it leaves the location in the title, but the title comes up selected so you can edit it before confirming the event with the "Done" button.
    The event is entered in the default calendar, but you can select any calendar by holding down the "+" button a second or two. There may be a way to do it with the menu or the keyboard command-n shortcut, but I haven't found it; you can select another calendar on the popup before hitting the "Done" button.

  • Creating an event for BRF

    How do you generally create an event that you can use in BRF.

    Hi,
    Business Rule Framework Transactions:
    BRFEVT01 - BRF: Create Event
    BRFEVT02 - BRF: Change Event 
    BRFEVT03 - BRF: Display Event 
    BRF - Business Rule Framework 
    BRFACS01 - BRF: Create Abstract Action 
    BRFACS02 - BRF: Amend Abstract Action 
    BRFACS03 - BRF: Display Abstract Action 
    BRFACT01 - BRF: Create Actions
    BRFACT02 - BRF: Change Actions 
    BRFACT03 - BRF: Display Actions
    BRFAPC01 - BRF: Create Features for Appl.Class
    BRFAPC02 - BRF: Change Features for Appl. Class
    BRFAPC03 - BRF: Display Features for Appl.Class
    BRFAPL01 - BRF: Create Application Class
    BRFAPL02 - BRF: Change Application Class
    BRFAPL03 - BRF: Display Application Class
    BRFEXP01 - BRF: Create Expression 
    BRFEXP02 - BRF: Change Expression 
    BRFEXP03 - BRF: Display Expression 
    BRFIMC01 - BRF: Create Impl. Class 
    BRFIMC02 - BRF: Change Impl. Class 
    BRFIMC03 - BRF: Display Impl. Class 
    BRFRLS01 - BRF: Create Rule Set 
    BRFRLS02 - BRF: Change Rule Set 
    BRFRLS03 - BRF: Display Rule Set 
    BRFRUL01 - BRF: Create Rule for Event 
    BRFRUL02 - BRF: Change Rule for Event 
    BRFRUL03 - BRF: Change Rule for Event
    BRFU01 - BRF: Compare SAPscript Texts
    BRF_FILL_TBRF185 - Automatic Filling for TBRF185
    BRF_OVERVIEW - Overview of BRF Objects
    Visit following link:
    http://www.sap.com/industries/insurance/pdf/FSCM_BRF.pdf
    Regards,
    Naveen.

  • How to use an event that is created in a component of different DC?

    Hello Experts,
    I have two DCs(development components) in WD java, and
    1) Created an event (say <sendvalues>) which is having two parameter values in interface controller of one DC1
    2) In another DC2, I need to retrieve the values stored in <sendvalues>,
        For that I have created a method (say <getvalues_IC>)of type "eventhandler" in view controller.
        Also I have mapped the view with Interfacecontroller of DC1.
      Could you please suggest how to get the values in <sendvalues>, since I could not able to revoke the event in DC2.
    Thanks,
    Suri

    Hi Suri,
    Please refer to [DC Communcation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b?quicklink=index&overridelayout=true]
    Call the interface controller event method from other DC interface controller.
    Hope it will helps
    Regards
    Arun Jaiswal

  • How do i get my photos to stream to my iPad in the events that were oringally created.  Right now they are streaming as photos and are not grouped at all.  I would like to get them back into the events that were originally created

    how do i get my photos to stream to my iPad in the events that were oringally created.  Right now they are streaming as photos and are not grouped at all.  I would like to get them back into the events that were originally created

    Hi..
    Thanks for the reply..
    My original I Phone 5 was running IOS 6.12
    My I phone 5S currently runs IOS 8..When I upgraded it, it had IOS 7 on it which made the I Photo app compatible with everything below IOS 8...( which the photo app is not compatible with ) so I just connected the I Phone 5S to my computer and thinking the new phone had IOS 7 on it that these was nothing to worry about..I thought all 900 + pictures in the photo stream would transfer but somewhere in the process, I Tunes decides to just go and install IOS 8 which requires that you run a " Photo Migration App" to transfer photos from IOS 7 & below. The problem was is that I didn't want IOS 8 on my new 5S so I thought I wouldn't have to do that part..
    Anyway the phone emerged with IOS 8 on it and the only photos that remained were the ones that were actually on the phone..The 900 + I had in the stream didn't transfer because the Photos that works on IOS 7 and below isn't compatible with IOS 8..I guess you have to use the photo migration app that comes with IOS 8 & I phone 6..But I didn't ask to upgrade to IOS 8...It just did it on it's own!
    I still have the I Phone 5 Back up that I did just before giving it back to Verizon but if I try to restore the I Phone 5S running IOS 8 those photos in the stream will not go back on the phone because IOS 8 isn't compatible with the I Photos" that ran on IOS 7 and below..
    So I have an I Pad mini that runs IOS 7..should I try and erase it...and put that I Phone 5 backup on it and pray the photos that were in the stream come back on it so I can transfer them back to my computer...then erase the I pad mini again and restore it using it's original backup that I have on the computer and the in the cloud?
    I know this sounds confusing but I'm at a loss as to what to do..This is what I found ...http://support.apple.com/en-us/HT201386
    but it doesn't help me..
    Steve

  • HT4528 how do I create an event in my calander that repeats the second thursday of every month

    how do i create an event in my calander that repeats the second thursday of every month

    This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
    Jeff
    Attachments:
    Prompt(Date).vi ‏50 KB

  • Create new event in iCal that triggers an applescript

    Dear applescripters
    I am trying to write a script that creates an event in applescript that launches an applescript.
    This is the code:
    tell application "iCal"
    tell calendar "Verstuur"
    set theCurrentDate to current date
    set time of theCurrentDate to (time of theCurrentDate) + 60
    set verstuur to make new event at end with properties {start date:theCurrentDate, end date:theCurrentDate + 1 * minutes}
    tell verstuur
    make new open file alarm at end with properties {trigger interval:0, filepath:POSIX path of "file://localhost/Users/jschaafsma/Desktop/Verstuurfilmpje"}
    end tell
    end tell
    end tell
    when iCal tries to trigger the script iCal generates an error that the file Verstuurfilmpje is not found.
    Any ideas what i am doing wrong?
    Thanks
    Jschaafsma

    Well, for one, your file path isn't valid.
    … filepath:POSIX path of "file://localhost/Users/jschaafsma/Desktop/Verstuurfilmpje"}
    First off, POSIX path of takes a Mac-style (i.e. colon-delimited) path or alias and converts it to an POSIX path, so either you need to drop the 'POSIX path of' code, or pass in a Mac-style path.
    Secondly, even if you were to use 'POSIX path of', your path specification is invalid anyway - you haven't passed in a POSIX path you've passed in a file URL, which is different. A POSIX path of that file would look like:
    filepath: "/Users/jschaafsma/Desktop/Verstuurfilmpje"
    So rewrite this line and you should be set.

  • How to create an Event & schedule a rpt based on results of that Event..

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

  • Add a note to a Calendar event that was created from Mac Mail

    When I create a Calendar event by clicking on a date within a Mac Mail message (you hover over a date in an email it draws a dashed box around the date and gives an option to create a Calendar event).  It creates an Event in my Calendar with the following fields:  Subject, Location, Date Time and alert fields, Invitees and a link to the mail message.  But - I can't seem to add a Note Field.  The only work-around seems to be to manually create a new calendar entry.
    Does anyone know how to modify an event created from Mac Mail to add a Note Field?
    iMac Retina 5K 27-inch Late 2014, OS X Yosemite Version 10.10.3, Calendar Version 8.0 (2034.9), Mail  Version 8.2 (2098).

    Thanks Brett for replying, but this doesn't work if the event is created by Mac Mail - which is my issue.  Sure it works with any other event but not one that has been created from within Mail.  If this is a bug I'm sure the Calendar people point the blame at the Mail people and vice versa but that doesn't help me.  But before I submit a report to Apple I thought I would see if I might be missing something obvious.
    See the attached screenshot of an event that was created by Mac Mail. There is no Add Notes field when the event is Double Clicked, Right Clicked or any other form of click.
    Graeme.

  • How to create an Interactive Moving Background or Object that Reacts to Viewer's Cursor?

    Hi,
    i started creating a website in muse and i try to create an object who react to viewer's cursor.
    I have an image in center fix, and around and other which had to move with cursor movement like in this tutorial : Create an Interactive Moving Background/Object that Reacts to Viewer's Cursor
    i'd like to do it in muse and don't know how to proceed,
    thanks

    Hi,
    There is no native feature in Muse to achieve it. If you can get the code for this, you can add it to your site using Insert HTML feature.
    Regards,
    Aish

Maybe you are looking for

  • 5.1 supported for iPod?

    Is there a way I can get 5.1 for my videos on my iPod? Like to make them 5.1 and what not. Or, when I plug my iPod into my Home Theater system, to get the full 5.1 advantage of DVDs I have on my iPod? Does this make sense?

  • What is the Category field for and how do I edit it?

    In the iTunes music list, there is a category field. However, I do not see it in the get info window. Not surprisingly, although the category field shows in my iTunes music list, none of my songs have anything entered for the category. What is this f

  • Is the G4-450 AGP the best Mac ever?

    Have Apple ever made a better Mac than the original G4-450 AGP? Well, it had to happen one day, I am now passing on my 8-1/2 year old G4-450 to my wife. This machine has run every OS from the 8.6 it came with to 10.5 today. It's ease of upgrade is am

  • Missing Options for AppleTV in iTunes

    After the upgrade, all went fine I thought, in iTunes when I select the AppleTV form the device menu, there are only tabs for Info and Photo's. It is missing all the ones for Movies, Podcasts, Music, etc. I tried several times to delete the device in

  • 2 itunes accounts in 2 countries

    Hi, I have an itunes account in the Spanish store but I live now in the US and would loke to create a new one here. Cam I do it? If so, can I combine the apps purchased in Spanin with the new ones? Thanks a lot.