How to add and delete custom buttons

Hello world

I have two field of custom button with different colors of red and white button.

And I want to add and remove both button in the same place each other.

I mean when I click on the red button, red button remove the screen and the same when I click on the white button to remove white button must be appear and red button should appear. Both button must be exposed to the same place.

Please any idea...

Thank you.

public void add (field)
survey
IllegalStateException - if the field has already been added to a Manager.

Public Sub delete (field)
IllegalArgumentException - if the field to delete does belong to this Manager.

So check with the field.getManager () function to make it work properly...

Tags: BlackBerry Developers

Similar Questions

  • How to add and delete pages in a pdf document?

    How to add and delete pages in a pdf document?

    The easiest way is to use the Page thumbnails Panel.

    But you can also use the Pages pane.

  • How to add and delete a hidden gross a table while checking and unchecking the box?

    I want to add an array of 1 * 1 or saw just a cell with the text field, when I check the box and remove the same when I uncheck the checkbox. I have tried almost everything, but doesn't show is not the correct result. Can someone Guide please?

    Hello shahnisarg28,

    I think you can get what you want by simply using the Action Builder provided by the program.

    Make you it visible to the cell when the checkbox is enabled by:

    1. you right-click the checkbox, select Actions - Add Action.

    2. you set

    Condition: When the check box is selected

    Result: (show or hide an object) = the visibility of visible cell salt

    You do the hidden or invisible cell when the checkbox is unchecked by:

    1. you right-click the checkbox, select Actions - Add Action.

    2. you set

    Condition: When the checkbox is unchecked

    Result: (show or hide an object) = set the cell visibility to hidden.

    Tell me if that works for you.

    Kind regards

    David.

  • How to add groups of radio buttons values and show the answers?

    I have eight groups of option buttons. The student must select the button from each group. It is a survey of personal intrestet. If each of the groups will have a button with related values. I need to add values and display the results.

    I have been looking for help, but can't find anything that explains how to add values of radio buttons and display the answers.

    That's what I got so far:

    The option button ActionScript 3.0 / / Avraham Saltoun / / solutions to say-web dot com / / FREE to USE, COPY and DISTRIBUTE

    Import fl.controls.RadioButton;
    Import fl.controls.RadioButtonGroup;
    These libraries must be imported
    in order to access the properties and methods of the Radio button.


    We will Appply formatting
    for the radial buttons
    var format: TextFormat = new TextFormat;
    format. Size = 16;
    format.font = "Trebuchet MS"
    format. Color = 0xFFFFFF;

    myNonconformist.label = "a maverick".
    myConcreteThinker.label = "a concrete thinker."
    myNaturalWithNumbers.label = 'a natural with numbers. "
    myAnalytical.label = "Analytics."
    myAssertive.label = "assertive".
    myIdealistic.label = "Idealistic."
    myCareful.label = 'Careful ';
    myProblemSolver.label = "a problem solver."
    myConscientious.label = 'consciousness '.
    myCreative.label = "Creative."
    myPrecise.label = "precise."
    myEfficient.label = "effective."
    myEnergetic.label = 'energetic ';
    myExpressive.label = 'Expressive ';
    myFriendly.label = 'Friendly ';
    myPersistent.label = 'Permanent '.
    myHelpful.label = "fairly useful";
    myInnovative.label = "innovative";
    myInquisitive.label = ' Inquisitive/Curious. "
    myAccurate.label = "precise."
    myEnthusiastic.label = "enthusiasts";
    myInsightful.label = "insightful";
    myIntuitive.label = 'intuitive ';
    myMechanicallyInclined.label = 'mechanically inclined. "
    myObservant.label = 'observer ';
    myOutgoing.label = "outgoing";
    myPatient.label = "Patient";
    myPersuasive.label = "persuasive."
    myRealistic.label = 'realistic ';
    myPractical.label = 'practice ';
    myScientific.label = 'scientific ';
    mySelfconfident.label = "safe";
    myImaginative.label = "imaginative."
    mySociable.label = "Sociable".
    myStraightforward.label = "direct."
    myUnderstanding.label = "understanding."

    Now, let's apply the style
    created for our labels
    myNonconformist.setStyle ("textFormat", format);
    myConcreteThinker.setStyle ("textFormat", format);
    myNaturalWithNumbers.setStyle ("textFormat", format);
    myAnalytical.setStyle ("textFormat", format);
    myAssertive.setStyle ("textFormat", format);
    myIdealistic.setStyle ("textFormat", format);
    myCareful.setStyle ("textFormat", format);
    myProblemSolver.setStyle ("textFormat", format);
    myConscientious.setStyle ("textFormat", format);
    myCreative.setStyle ("textFormat", format);
    myPrecise.setStyle ("textFormat", format);
    myEfficient.setStyle ("textFormat", format);
    myEnergetic.setStyle ("textFormat", format);
    myExpressive.setStyle ("textFormat", format);
    myFriendly.setStyle ("textFormat", format);
    myPersistent.setStyle ("textFormat", format);
    myHelpful.setStyle ("textFormat", format);
    myInnovative.setStyle ("textFormat", format);
    myInquisitive.setStyle ("textFormat", format);
    myAccurate.setStyle ("textFormat", format);
    myEnthusiastic.setStyle ("textFormat", format);
    myInsightful.setStyle ("textFormat", format);
    myIntuitive.setStyle ("textFormat", format);
    myMechanicallyInclined.setStyle ("textFormat", format);
    myObservant.setStyle ("textFormat", format);
    myOutgoing.setStyle ("textFormat", format);
    myPatient.setStyle ("textFormat", format);
    myPersuasive.setStyle ("textFormat", format);
    myRealistic.setStyle ("textFormat", format);
    myPractical.setStyle ("textFormat", format);
    myScientific.setStyle ("textFormat", format);
    mySelfconfident.setStyle ("textFormat", format);
    myImaginative.setStyle ("textFormat", format);
    mySelfconfident.setStyle ("textFormat", format);
    mySociable.setStyle ("textFormat", format);
    myStraightforward.setStyle ("textFormat", format);
    myUnderstanding.setStyle ("textFormat", format);

    Event listeners
    Define waiting for the compiler
    for a click
    myNonconformist.addEventListener (MouseEvent.CLICK, whoAmI);
    myConcreteThinker.addEventListener (MouseEvent.CLICK, whoAmI);
    myNaturalWithNumbers.addEventListener (MouseEvent.CLICK, whoAmI);
    myAnalytical.addEventListener (MouseEvent.CLICK, whoAmI);
    myAssertive.addEventListener (MouseEvent.CLICK, whoAmI);
    myIdealistic.addEventListener (MouseEvent.CLICK, whoAmI);
    myCareful.addEventListener (MouseEvent.CLICK, whoAmI);
    myProblemSolver.addEventListener (MouseEvent.CLICK, whoAmI);
    myConscientious.addEventListener (MouseEvent.CLICK, whoAmI);
    myCreative.addEventListener (MouseEvent.CLICK, whoAmI);
    myPrecise.addEventListener (MouseEvent.CLICK, whoAmI);
    myEfficient.addEventListener (MouseEvent.CLICK, whoAmI);
    myEnergetic.addEventListener (MouseEvent.CLICK, whoAmI);
    myExpressive.addEventListener (MouseEvent.CLICK, whoAmI);
    myFriendly.addEventListener (MouseEvent.CLICK, whoAmI);
    myPersistent.addEventListener (MouseEvent.CLICK, whoAmI);
    myHelpful.addEventListener (MouseEvent.CLICK, whoAmI);
    myInnovative.addEventListener (MouseEvent.CLICK, whoAmI);
    myInquisitive.addEventListener (MouseEvent.CLICK, whoAmI);
    myAccurate.addEventListener (MouseEvent.CLICK, whoAmI);
    myEnthusiastic.addEventListener (MouseEvent.CLICK, whoAmI);
    myInsightful.addEventListener (MouseEvent.CLICK, whoAmI);
    myIntuitive.addEventListener (MouseEvent.CLICK, whoAmI);
    myMechanicallyInclined.addEventListener (MouseEvent.CLICK, whoAmI);
    myObservant.addEventListener (MouseEvent.CLICK, whoAmI);
    myOutgoing.addEventListener (MouseEvent.CLICK, whoAmI);
    myPatient.addEventListener (MouseEvent.CLICK, whoAmI);
    myPersuasive.addEventListener (MouseEvent.CLICK, whoAmI);
    myRealistic.addEventListener (MouseEvent.CLICK, whoAmI);
    myPractical.addEventListener (MouseEvent.CLICK, whoAmI);
    myScientific.addEventListener (MouseEvent.CLICK, whoAmI);
    mySelfconfident.addEventListener (MouseEvent.CLICK, whoAmI);
    myImaginative.addEventListener (MouseEvent.CLICK, whoAmI);
    mySelfconfident.addEventListener (MouseEvent.CLICK, whoAmI);
    mySociable.addEventListener (MouseEvent.CLICK, whoAmI);
    myStraightforward.addEventListener (MouseEvent.CLICK, whoAmI);
    myUnderstanding.addEventListener (MouseEvent.CLICK, whoAmI);
    Note that all lead to the same function.

    It will probably be better for you to do it the hard way and assign labels, values and groups in the programming environment using the settings panel.

  • Question in cooperation with af:iterator and by program (add and delete records using the list)

    In our application, we try to add and delete records within a one: iterator lie to the backing bean list table.

    According to the feature remove should not fire any validation form so we are settign Remove button including the immediate property. And add can throw validation before adding a new record.

    Here the problem comes with button Delete with activated immeidate.  The deletions list action recording is removed from the collection list at the beacking bean, but after that the interface iterator partial page refresh user displays with bad Recordset. Some how instead of getting the last recordings of server of the user interface displays the previous local values for input components.

    For example: if I have 5 files in the list and delete record 2nd of collection. Backing bean (server side) the 2nd record is perfectly removal of list collection.

    On the user interface, the iterator 4 records are displayed as the size of the list is 4, but instead of 2nd record the last record is not rendered. According to my understanding, as deleting comme la suppression touche key is set immediately then the some how these recordings (genereted the Id of component runtime inside the i1: 0:it1 etc...) Apply request vandekerckhove is not updated gettign, Hene showing the old local values inplace of these components of entry and this behavior is only for input components.

    Can you suggest me a solution more come to the question above. Delete with immediate should unregister correspondent and only the record deleted if pannals UI.

    JSFF code

    <af:panelGroupLayout id="pgl1" binding="#{viewScope.formBB.mainPGL}">
            <af:iterator id="i1" value="#{viewScope.formBB.allEmployees}"
                         var="emp" rows="0" varStatus="vs"
                         binding="#{viewScope.formBB.iteratorBinding}">
              <af:panelFormLayout id="pfl1" maxColumns="4" rows="1" labelAlignment="top">
                <!--<af:outputText value="#{vs.index}" id="ot1"/>-->
                <af:inputText label="First Name" id="it1" value="#{emp.firstName}"
                              autoSubmit="true" required="true"/>
                <af:inputText label="Last Name" id="inputText1"
                              value="#{emp.lastName}" autoSubmit="true"
                              required="true"/>
                <af:commandImageLink text="Delete" id="cil1"
                                     immediate="true"
                                     actionListener="#{viewScope.formBB.deleteEmployee}">
                  <f:attribute name="index" value="#{vs.index}"/>
                </af:commandImageLink>
              </af:panelFormLayout>
            </af:iterator>
            <af:commandButton text="Add New Employee" id="cb1"
                              actionListener="#{viewScope.formBB.addNewEmployee}"/>
            <af:spacer width="10" height="10" id="s1"/>
    </af:panelGroupLayout>
    

    Delete the Action listener for the bean

    private List <Employee> allEmployees;
    public List getAllEmployees() {
            return allEmployees;
        }
        
    public void deleteEmployee(ActionEvent actionEvent) {
            int index = (Integer) actionEvent.getComponent().getAttributes().get("index");
            if(allEmployees != null && allEmployees.get(index) != null) {
                System.out.println("Emploeye Name:" + allEmployees.get(index).getFirstName());
                allEmployees.remove(index);
            }
            //AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);
            AdfFacesContext.getCurrentInstance().addPartialTarget(iteratorBinding);
                
        }
    public void addNewEmployee(ActionEvent actionEvent) {       
            Employee addE = new Employee();
            if(allEmployees != null) {
                allEmployees.add(addE);
            }
            else {
                allEmployees = new ArrayList <Employee>();
                allEmployees.add(addE);
            }
            AdfFacesContext.getCurrentInstance().addPartialTarget(mainPGL);     
        }
    

    Jdev version - Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493

    POC Application - https://drive.google.com/file/d/0BysBrGAsXoo0Qjh3VGkzZkRGck0/view?usp=downalod

    Help, please.

    You probably need to reset submitted values.

    For this, you can use this util class: ResetUtils (reference Java APIs for Oracle ADF Faces)

    For example: ResetUtils.reset (iteratorBinding);

    BTW, you should never bind components to bean managed with a scope greater than the scope of the request.

    Dario

  • How to create and delete partitions automatically?

    How to create and delete partitions automatically?
    The environment is (10.2.0.3) 10g Oracle on the RHEL4.0 system.
    I want to partition the table of MESSAGES by date (NUMTODSINTERVAL(1,'DAY')). One partition per day. Because the table is huge, only 2 partitions (as of yesterday and today) are required to be available online. All partitions as earlier than the day before will be saved, and then dropped. I want to do the partition to create and delete the work performed automatically. How to do?

    Thank you

    junez wrote:
    Could do in detail?

    Here is an example of a procedure (part of a package) that adds/add a partition to an existing partitioned table schedule:

    procedure AddHourlyPartition( tableName varchar2, hour date, partitionName IN OUT varchar2 ) is
            sqlCreate       varchar2(4000);
            d               date;
    begin
            partitionName := GetHourlyPartitionName( hourly );  -- name of partition to create
    
            if existsPartition( tableName, partitionName ) then
                    -- nothing to do
                    return;
            end if;
    
            d := TRUNC(hour,'hh') + (1/24);                                -- upper date limit of the partition
    
            sqlCreate :=
            'ALTER TABLE '||tableName||'
                    ADD PARTITION '||partitionName||'
                    values less than
                            (TO_DATE('''|| TO_CHAR(d,'yyyy/mm/dd hh24:mi:ss') ||''',''yyyy/mm/dd hh24:mi:ss''))'
            ;
    
            ExecSQL( sqlCreate );
    
    end;
    

    The partition is safer to create partitions according to the experience?

    It is always better to write good packages in PL/SQL. Packages can (and should) use the application programming interfaces (API). Because our partition custom package that allows the management of partition. Or a messageLog package that allows for logging of application messages, errors, and debugging messages. Or a Notification package that allows to be send by email or SMS notifications. Etc.

    Design and software development, we should always approaches a "+ Lego mentality +"-which is to create building blocks ("+ Lego bricks +") which can be used and reused over and over again. Modularization is of crucial importance in software engineering as the result is not only of reusable code, but also the code that is easier to maintain, extend easier and easier to debug.

  • For a given file, how to add and change file properties on the Details tab, for properties that are not in the properties list?

    Now, I am aware of the modification of the properties of the file is simple in Windows 7 Explorer. Select a file, 'Properties', then tab "Details".  Some are not editable, and that's understandable.  Click on next to any area classified as year, Genre, Publisher, etc. and the apply.  No problems so far.

    Then of course in Explorer, when you right click on a column header, you get several choices of column beyond the usual that is displayed by default; Date, the Type, size, etc.  But, there is an option "More...", which has up to now, MUCH more useful properties to choose from, such as the model project, Department, job statusand so on.

    It's fantastic!

    But when you look into the details of any given file, none of these additional properties even are listed to be edited.  Why offer to view these details, if you don't change them, or add them to different files?  I must be missing something.  I do not need to add my own custom details, this additional list has a choice, that I need; If only I could edit the files to get this info.

    How to add and change these properties to files?  Word, Excel, MP4, AVI, JPG; I would add these properties, so I can set directly in the Solution Explorer, as you would by name or Type.

    Any help would be greatly appreciated!

    My experience is that most of these 'extra fields' no existence not as fields in the directory (folder) itself.  On the contrary, these fields exist in the target file itself. Each file type has its own format and established file except for the types of files that belong to Microsoft, Microsoft cannot control or arbitrarily change the format of a particular file type.

    For example, a ".jpg" file  The format of this file type allows a large number of areas such as comments, Tags, date taken, opening, device manufacturer and so on.  If you go into the properties on a .jpg file, you will see a lot of them and will be able to change.  After changing any of these fields, you will find that the file itself has been changed to contain this information (as can be verified by the parity of the file and to come check upward with a different checksum).  If you display one of these fields in Explorer and 10000 ".jpg" files in this folder, then Explorer must open each of these 10000 files to extract the data in the corresponding fields, you have chosen to display.  May take some time.

    Compare that to the same picture saved to a file ".bmp".  The ".bmp" format has no provisions for any of these fields, so you will not be able to view, save, edit, or sort by them.  If the editable fields are directly related to the type of file that is displayed.

    Microsoft has apparently interviewed a lot of file types and made a compilation of the editable fields in each type of file and the Union of the selected fields in which can be displayed and modified.   That's apparently what you see in the option «More...» ».   So, in summary, the file type determines which fields are available for editing and posting.

    HTH,

    JW

  • How to add and remove sites to your Favorites

    How to add and remove Web sites as Favorites on the homepage of Safari?

    Hello

    Try the instructions here > http://www.imore.com/how-turn-and-edit-favorites-bar-safari

  • CHKUPD loads at startup. How to find and delete this file?

    CHKUPD loads at startup. How to find and delete this file?

    CHKUPD loads at startup. How to find and delete this file?

    Not a matter of Microsoft/Windows.

    http://answers.Microsoft.com/en-us/search/search?searchterm=CHKUPD&CurrentScope.ForumName=Windows&CurrentScope.filter=windows_xp-files&askingquestion=false

  • How to add and enable additional languages in Windows 7

    How to add and enable additional languages in Windows 7

    Install or change a display language

    You can change the language Windows uses to display text in wizards, dialog boxes, menus and other elements in the user interface. Some display languages are installed by default, while others require you to install additional language files.

    Before you can install a display language, you need to access the language files. These files are on your computer, a computer in your network or your Windows DVD. They can also be downloaded from the web. For more information, see how to make additional display languages?

    To install a display language
    To install a Language Pack (LIP), double-click the file to open the installer. To install a Pack of MUI (MUI), follow these steps:

    Click to open region and language.

    Click the keyboards and languages tab.

    Under display language, click install/uninstall languages, and then follow the steps.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    Note
    The display language section will only be visible if you have already installed a LIP or if your version of Windows supports an MUI. MUIs are available in Windows 7 ultimate and Windows 7 Enterprise.

    To change your display language
    When you change the display language, the text in menus and dialogs for some programs may not be in the language you want. This happens because the program does not support Unicode. For more information about changing the text in menus and dialog boxes for programs that do not support Unicode, see change the settings system locale.

    If you want to set the display language for multiple users or for the home screen, see apply regional and language to reserved accounts settings.

    Click to open region and language.

    Click the keyboards and languages tab.

    Under display language, select a language in the list, and then click OK.

    Note
    If you do not see the list of display languages, you must install additional language files.

    If it's a Win7 Ultimate computer, see http://support.microsoft.com/kb/972813

    If this is not the case, see http://windows.microsoft.com/en-us/windows7/Add-or-change-an-input-language

    http://Windows.Microsoft.com/en-us/Windows7/products/features/language-packs

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-get-additional-display-languages

    Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP

  • How to add and remove app for desktop icons in windows 8?

    How to add and remove app for desktop icons in windows 8?

    Try right clikc on the desktop will create new and the shortcut then copy and paste the path

    Otherwise just right-click on the icon you use to get the programs and send to the office or by copying and blocks the icon on your desktop

    I'm sorry if I still get the wrong end of the stick and maybe someone else you know what

    hope this helps

    I.T. tech admin

  • How to add sound to a button in a button adobe muse?

    How to add sound to a button in a button adobe muse?

    Something like that? How can I add a game sound on click the Muse?

  • How to add and edit text in the form created by adobe acrobat 9?

    How to add and edit text in the form created by adobe acrobat 9?

    Actually, that's exactly what you should do, you don't need to create

    all fields again.

    After you have edited the original and create a new static PDF, open the old

    version and use the command replace Pages to insert the new pages

    those in the old file. This will keep all the form fields in tact.

    Tuesday, August 25, 2015 at 10:28, susanna323 [email protected]>

  • How to remove and delete the in computer HP recovery Partition.

    Hello

    How to remove and delete the Partition Recovery on HP computer after I installed win 7 (clean install) befor was Vista?

    Thank you


  • How to add the table radio button.

    Hello

    I want to update the record if I want that an option of button raduio shaped tabular .There is no option for tabular.
    How to add the table radio button.


    Thank you

    Published by: 805629 on February 3, 2011 04:56

    Use APEX_ITEM. BOX API in the definition of SQL query for the form of tables

Maybe you are looking for