Send class increment on the same parameter?

Please help me...

IM creating a simple code like this

package mypackage;

import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;

public class TestScreen extends MainScreen implements FieldChangeListener{
ButtonField tambah;
    public TestScreen(int offset){

        add(new LabelField("Offset = "+offset));
        tambah = new ButtonField("Tambah");
        tambah.setChangeListener(this);
        add(tambah);

    }

    private void test(int offset){
        TestScreen screen = new TestScreen(offset + 10);
        UiApplication.getUiApplication().pushScreen(screen);
    }

    public void fieldChanged(Field field, int offset)
    {
        if(field==tambah){
            test(offset);

        }
    }
}

at the first offset click Get 10? but the second offset click get same result (10)...
I want while I click on the... button compensate for the increment of 10, 20, 30 and the next...

Please help me master2...

Please modify your code for:

public class TestScreen extends MainScreen implements FieldChangeListener{
ButtonField tambah;
int offset;
    public TestScreen(int offset){
        this.offset=offset;
        add(new LabelField("Offset = "+offset));
        tambah = new ButtonField("Tambah");
        tambah.setChangeListener(this);
        add(tambah);

    }

    private void test(int offset){
        TestScreen screen = new TestScreen(offset + 10);
        UiApplication.getUiApplication().pushScreen(screen);
    }

    public void fieldChanged(Field field, int context)
    {
        if(field==tambah){
            test(offset);

        }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • my account is block, I send verification, and always the same why lie to me

    I'm trying to GIS in live Messenger and I see a messege, noticed unusual activity in your account and is temporarily blocks after that I have send Pentecost verafication my cell # and when I recive the code I send back and nothing im try many times nd always the same, after all is word my foult is windows live foult .please OPE it my account I need of

    to talk to my friends please hel me

    Hello

    We cannot help you with responses from vista

    they will help you with your questions/problems Messenger when repost you the link below in the Messenger forums

    http://windowslivehelp.com/product.aspx?ProductID=2

    ____________________________________________________

    For the different Forums for Windows Live Applications, select the link below
     
    Welcome to Windows Live Solution Center
  • is it possible to load and send php variables at the same time?

    Hello, with this line:
    Request.Method = URLRequestMethod.GET; You can get php variables.
    and with request.method = URLRequestMethod.POST you can send variables.

    But is it possible to do this at the same time?


    they send and receive data in order. IE, data are sent (if there are any) and then the data is received (if there is).

  • Several sprites using the same parameter value

    I'll ask the same question " 'contains' doubt in the hexadecimal color value?" but in a different way, because I realized that the solution is more simple than I thought, and the solutions will also. I have this problem:

    property pTargetSprite, pBlendValue

    on getPropertyDescriptionList me
    List = [:]

    addProp list, #pTargetSprite, [#comment: ' target Sprite: ',]
    [#format: #integer, #default: VOID]

    addProp list, #pBlendValue, [#comment: ' mixture value: ",]
    [#format: #integer, #default: 100]

    back list

    end


    on mouseDown me

    .blend Sprite (pTargetSprite) = pBlendValue

    end

    I would like to get SEVERAL sprites for 1 parameter, that is to say when the behavior dialog box appears and ask me the "target Sprite:", I entered... Let's say 1, 2, 3,... Regardless of the numbers I want. Therefore, the values of this sprites mix will change according to the mix input value. Right now is perfect, but of course work with only a sprite, but I want to be able to give this value of mixture for several sprites on the same setting.

    I guess it must be very simple, but I can't get the answer anywhere in my brain, nor my book Director, or in the forums.

    Thank you!!!

    Rob, Anders... Thank you very much!!! Now it works perfectly.

    spriteList property
    blendValue property

    on getPropertyDescriptionlist
    myPropList = [:]
    myPropList.addProp (#spriteList, [#comment: "enter the sprite channel \])
    (["the numbers to use, separated by commas:", #format: #string, #default: "1,2,3"]).<>
    myPropList.addProp (#blendValue, [#comment: "mixture value:",-])
    ([#format: #integer, #default: 100])
    return myPropList
    end

    on beginSprite me
    spriteList = stringToList (spriteList)
    end

    on stringToList (thisString)
    oldDelim = the itemDelimiter
    itemDelimiter = «»
    thisManyItems = thisString.item.count
    tempList =]
    Repeat with n = 1 to thisManyItems
    tempList.add (thisString.item [n])
    end repeat
    itemDelimiter = oldDelim
    return tempList
    end

    on mouseUp me
    thisMany = spriteList.count
    Repeat with n = 1 to thisMany
    .blend Sprite (value(spriteList[n])) = blendValue
    end repeat
    end

  • I want to send a mail to the same receptors without making a new list, because I will only do this twice

    Or maybe send an email to the people even after application changes the text

    Click with the right button on the original sent message and select Edit as New. He must fill in the addresses of original and you can only edit the message.
    After that, I'm out of suggestions.

  • My Outlook Express to send sends multiple copies of the same emails at random - help!

    My Outlook Express has a small problem recently.   When I send emails - they soar in the Outbox and send 15-20 ++ emails to recipients and remain in the Outbox until I have remove them - this happens randomly.

    Make sure you have set it to break apart messages under Tools | Accounts | Mail | Properties | Advanced.  Also check 3rd party interference, such as the antivirus program.  See www.oehelp.com/OETips.aspx#3 if you still have problems, then move all the sent items in another folder and close OE and delete the sent items.dbx and outbox.dbx (hidden) and start OE files it will create new ones, and that might solve corruption.  You can also try to go to the file. Identities and setup a new identity and see if that fixes the problems.

    Steve

  • I have send 02 buttons in the same form?

    Hi webmates:

    I would like to know how to get there: I have a form and I need also to have buttons send 02, in such a way that if I click on one of them it takes me to the 'abc.php' url, and if I click the 2 button, it takes me to the url "xyz.php"... I also need these two buttons to have a custom image. Is this possible?

    Thanks in advance...

    No matter where you insert the field hidden, as long as it is within of the
    form.


    "onclick =" Form1.WhichButton.Value ='button1 "" alt = "submit1" / >

    "onclick =" Form1.WhichButton.Value = "button2" ' alt = "submit1" / >

    (using the syntax of the XHTML tag)

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Sw Martin" wrote in message
    News:g79r13$ock$1@forums. Macromedia.com...
    > Murray:
    >
    > I understood the concept and its great... However: would you mind to give
    > me
    > the example please, insert exactly the hidden field? Here's
    > my
    > try:
    >
    >
    >
    > alt = "submit1" >
    >
    > alt = "submit2" >
    >
    > Thanks in advance!
    >
    >
    >

  • BlackBerry smartphones are unable to send/receive accounts of the same workserver

    Hello

    We have 30 days with this question:

    all our working server accounts (@mywork.com) stop working with blackberry

    After deleting/setting up bis accounts and also invite Panel the provider "n" times and reset, hard reset, battery pull, operating system reinstalled, etc., etc. several times

    the socket holder in charge of said data is a problem with my hosting/email provider

    the said accommodation/e-mail provider is blackberry

    now my provider ask me what is the IP of blackberry that came to the e-mail server to check emails, this to revise that this ip address does not block the e-mail server

    everyone knows what mean?

    the carrier is Telefónica mexico

    tanks in advance

    Hello

    If I understand your question, this KB documents which, according to me, you need:

    • KB11036 Requirements of connection and firewall for the BlackBerry Internet Service

    Good luck!

  • When I try to download creative cloud he says something is missing or damaged and can send back me to the same link to download creative cloud. Help

    Whenever I try to download creative cloud it won't let me download it because it says that something is missing or damaged. He then sent me to a link that says download creative cloud. I click on the link for press download, I'm going through the whole process again in a loop. Help.

    Please uninstall with the cleaning tool:

    The Adobe Creative Cloud Cleaner tool allows to solve installation problems

    Reinstall from the link below:

    Download Adobe Creative cloud apps | Free trial of Adobe CC

    I hope this helps.

    Concerning

    Megha Rawat

  • Unable to get list of msg sender true column. All are the same in messages from yahoo groups

    38.4 TB. I noticed then receive messages from groups of yahoo which I agree with in the list of TB message column is the same for all messages (group name - e.g. [email protected]) whicg is also the name of the recipient. So it is impossible to say who posted the message. I tried the 3rd party add-on "does not show the address ' but add the @sender column has exactly the same thing.
    I tried my old version of TB 2.0.0.24 on the same profile and message folder and this correctly displays the original sender.
    I do not know what header field to TB last gets the info From (sender) where what rules he applies for the calculation, but it is clearly not working as old tuberculosis that renders correctly the list of messages.
    It looks like the old TB gets form From (sender) X origin of the header field.
    I think that new TB must be changed or the user to give very minimal additional choices through message list columns.
    This is a show-stopper for me and I had to go back to to 2.0.0.24 so yahoo group message listss appear correctly.

    Access your address book and find where you saved this group. Then remove the name that you have registered with this group.

  • I can't send emails at once. We used to do the same thing using MS-Outlook quite easily. Hoping for the best answer

    In outlook after you press on send it directly will be the button goes to Outbox and we can send another mail at the same time, but here in thunderbird, we will have to wait to send another mail until the previous message was sent.

    If you are looking for more options, for example, specify a time when send then you may be interested in an addon called "send more late 4.3.1.

  • in Outlook Express, how can I send the same message to a group important (in the address book already), but have to each recipient can only see his name (not the Group)

    In Outlook Express, how can I send the same message to the large group (already in the address book), but have to each recipient can only see his name (not the Group)?

    To use the functionality of the BCC (Blind Carbon Copy), in a new message window, click View | All headers and type the addresses separated by a; Or: Click the button to. You will see your list of contacts and the choice to put them in the To, CC, or BCC field. Click on an address, and then click BCC to add it. Repeat for all of the contacts you want. (Note: most of the providers have limits as to how many messages you can send both a. 25 is common, but it varies).

    Put your own address in the box to. That's the only name/address that any recipient will see. If you leave the field empty, some people may not receive e-mail because of message rules they put in place, or restrictions imposed by their ISP.

    You can also make an entry in the address book using your e-mail address, but put something like the mailing list in the area of the display.

    *********************

    You can also create groups if you send e-mail to the same people often.

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

  • Several Thunderbird in different OS on the same computer to access profile on common logical drive

    I installed Windows 8.1 under another OS on a machine who already have Windows 7 (and Thunderbird). The hard disk is partitioned and you Bird profile files are on a different logical drive available to both operating systems having the same name of player.

    I met two problems:

    1. While the new facility to Win 8.1 you Bird sees all mail folders and messages (and can get new messages from the POP3 account, this configuration does not see also within this same profile address books, and)

    2. it does not correctly send SMTP (even with the same account settings.

    Regarding the last, I remember working with you Bird and its predecessor as the SMTP password has been set from the first use, but never appeared for editing purposes; the only time wherever he appeared was during the creation of a new source of SMTP. In this case, I don't see where I can re - enter the SMTP password. And, I tried to create a new configuration of SMTP, but it did not help. I have entered the correct password, but it failed. Any ideas on how I can get this set up?

    With address books, even if this new facility you Bird knows where the profile (as evidenced by the fact that he doesn't see mail folders and messages), he does not see the address books. Still, I don't see where there is the setting of the location of the address book. I looked for the familiar file that tells the program where to find everything, but I could not find in this new facility to Win 8.1.

    Any ideas on these two issues would be greatly appreciated!

    I finally found the answer. I was able to display the users folder in Win 8.1. I just copied files of Thunderbird of the Win 7 Users\UserName\AppData\Local Users\UserName\AppData\Roaming files directory and directory to the same location on the 8.1 users folder.

    As soon as I did that and restarted my SMTP has been fixed and all address books were available. (And of course, it still works in the world of Win 7, too).

    From what I can glean the data in these records communicate key information at the Thunderbird not covered by the option setting for the folder in the program itself.

    I don't know if the copy of these records is this 3rd party promise to help with the relocation of existing facilities, but should be.

    As a reminder, I try 8.1 win on the same computer as a pre-existing Win7. I wanted to use my same familiar programs, including obviously Thunderbird, with the same configuration and access to the books of mail and same address located on a common additional logical drive.

    Copy these files to the new operating system, as well as pointing to the new installation of program to the existing profile of you bird accomplished all of this.

  • Can a single USRP 2920 tansmit (Tx) and receive (Rx) at the same time?

    I know a USRP can be a transmitter and a receiver, but a single unit can send and receive at the same time?  The application in question involves the sending of an RF signal to a label of RFID and followed by the response of the tag with a single reading USRP.  I heard that the link between the channels can cause significant on because bleeding that is not insulation between the tracks, but could not find an example showing simultaneous Tx and Rx.  Is there an example or documentation that I'm missing?

    Thank you!

    Kristen Heck

    Academic ESF - middle of Southeast

    Hello Kristen,

    The USRP can send and receive at the same time.  You have because there are bleed more because of the lack of isolation, but documentation of the USRP is always formed and includes no information about this.  Here are the 2 screws that allows you to make simultaneous TX/RX.  Just to set the IP address in the two screws to the IP address of your USRP and run them.  You may need to change the rate of IQ and the frequencies of your application, but this very basic example should be a good starting point.

    Let me know if you have any other questions, I'd be happy to help you.

  • BlackBerry Z10 Cant send messages Facebook of the Hub

    Hello

    I can receive messages Facebook to my hub, but when I replied to my message disappears and it shows I send a blank message with a red and white clock block next to it (where the box or sign of delivery would be left).  If I leave the hub and don't come back theres no trace of me trying to send a message.

    Also, when he tries to send it always shows the same time 19:45 December 31, 1012.

    No matter who else here I have this problem or knows how to solve this problem?

    If the person is not on your friends list, their privacy Facebook friends cannot message to them (that's how I have my privacy implemented).

    Glad to hear that you are able to send messages to your friends is not what is most important?

    Let me know if you have any other questions.

Maybe you are looking for