modal text entry

Hello, I'm developing a web application, and I need help to make a 'modal user input"(user must enter text), like for example javascript function"showModalDialog ".

Excuse me for my bad English

Concerning

I've just set up a modal dialog box using Widgets/WebWorks during the PhoneGap project.  Two options: an alert dialog and a confirmation dialog box.  Customizable and written in native Java.  Some examples of what you can do:

http://github.com/PhoneGap/PhoneGap-BlackBerry-widget/tree/master/framework/ext/src/com/PhoneGap/not...

Remember that BB OS 5.0 and 6.0 differ in some respects.  First of all, the (native Java) JavaScript Extension code running on the BB OS 6.0, but not in 5.0 event thread.  This means that in 5.0, you cannot just enter the lock of the event and make UiEngine.pushModalScreen.

The best way (I think) to make modal Java widget extension is at hand he took to the event thread, as this (works on 5.0 and 6.0):

// construct the dialog
final ConfirmDialog dialog = new ConfirmDialog(message, title, buttonLabels);

// ask the event dispatch thread to show it
Runnable runnable = new Runnable() {
    public void run() {
        UiApplication ui = UiApplication.getUiApplication();
        ui.pushModalScreen(dialog);
    }
};
UiApplication.getUiApplication().invokeAndWait(runnable);

Probably more information you wanted, but you might be able to modify the code of the custom (at the link above) dialog box and insert a TextField quite easily.

Tags: BlackBerry Developers

Similar Questions

  • How can I disable the graphic legend to the user text entry?

    Dear friends!

    I need your help in the following case.

    My front panel has a chart whose legend path is visible. I have display programmatically inside the runtime text, according to the article that the user selects in a control of the ring. The problem is that the user can also enter text (running) in the same area. Is there a way to prevent the user to text entry in the legend tracing running text box? I need the chart and the legend of tracing enabled at run time. Please suggest solutions.

    Thank you very much!

    Have a nice day!

    Try to put a picture control on the top of the chart legend and when the user tries to click on the name of plot, it avoids text entry

    You may also toggle the visible property of the image control to allow text in admin mode

  • EM330 change text entry type

    I have download the operating instructions, but I can't figure out how to change the type of text when I add a new contact. I can see the field in the top left of my screen, but cannot change it.

    Thanks in advance

    @jonicurtis

    You can also use the key ' # ' change in symbols or type / text entry sequence.

    @csbarry

    Thanks for the solution.

    Poko

  • Notification of instant preview with text entry

    Hey,.

    I wonder if it is possible to add a text entry for quick answers to instant preview, as BBM notifications and Messages. I have not found anything in the API, but it would be really sad if such feature would not be exposed to the public.

    Thank you

    Daniel

    Not now, at least not regular developers.

  • How to design own graphic interface for text entry

    Hello world

    I use the black background in my application and I would like to create my own custom controls which looks nice on a black background.

    For text input, I managed to create an entry of text with white background and black fonts. But I couldn't make the field to be a little larger than the text nor I was able to focus the State field.

    Code:

    public class CSTextField extends BasicEditField {}

    public {CSTextField()}

    Super (Field.FOCUSABLE |) Field.EDITABLE);

    }

    protected void paint (Graphics g) {}

    g.setBackgroundColor (Color.WHITE);

    g.setColor (Color.WHITE);

    g.fillRoundRect (0, 0, super. getWidth(), super. getHeight(), 5, 5);

    g.setColor (Color.GRAY);

    g.drawRoundRect (0, 0, super. getWidth(), super. getHeight(), 5, 5);

    g.setColor (Color.BLACK);

    Super.paint (g);

    }

    }

    See here: http://liechti-fotografie.ch/share/textfield.png

    Do you have an idea how realize that the focus is visible and the text field seems good?

    Thank you

    Do not design your own text input field - build a Manager around it that meets your needs.

    Here's an example of how this can be done:

    A scrolling line text entry field

    Read the comments - there are a few examples here on adding borders. I don't think you need boundaries, but they can give you ideas on how to position the fields in order to create some padding between the text and the surrounding black background.  You seem to be advanced enough to be able to easily change the code corresponding to your needs.

    Good luck!

  • Multiline text entry area

    The library QNX has any user interface element for text entry that takes several lines. For example the kind of thing you would find in a text editor such as Notepad. It seems that something very basic, but I can't seem to locate a class for itself in the API. The closest thing I can find is the TextInput class, but that is optimized for the single line.

    I was wondering if I missed it, or if it does not exist. And if not, are there no other alternative, we can use?

    Thank you!

    Hey,.

    you do not have missing something. Unfortunately there is not an existing input QNX mult-line text object. However, there are some workaround solutions and others, you can find in these forums. one in particular is a thread linked below. Basically, you need to change the internal textField object of the input text to make it work. Here is the link:

    http://supportforums.BlackBerry.com/T5/Tablet-OS-SDK-for-Adobe-Air/multiline-TextInput/m-p/671331/hi...

    hope that helps. Good luck!

  • BlackBerry Smartphones missing text entry options

    Hello

    After the execution of some updates yesterday, the text entry options 'show' is no longer available in the options. Can I not select suretype when you write a message. Would be grateful for the help.

    Thank you

    Had to reboot after removing an application and everything back to normal! What bothers me is that my tech never raised service provider a re-start but rather asked me to delete all my data and start all over again!

  • Adobe Captivate 8 - responses of synchronization in the text entry box

    I would like to limit the time to answer a question using the text entry area, but there is no option in the properties of the input box. I know that I can use the question slides (short answer) because they have an option of limitation in time, but not much can be changed there design wise so I need to use the text entry box.

    You can use the hourglass interaction or the time. It allows you to display a message and go to another slide when the time is up. However, if you are talking about seconds, it is not very accurate.

  • Captivate 9 - text entry area - cannot navigate through the input of text boxes on the same slide using enter key (works only tab)

    I designed a slide that has 3 areas of text entry.

    I need the user to be able to type in their response to the first box and then press the ENTER key, it will pass them in the next text box. After typing in their response to the second box, press ENTER, and then have developed pass to the third area.

    I don't want to use tab, I want to go to work as a shortcut key, so this works well on all devices. It feels like a trip to the logic of the user.

    I removed the button SUBMIT and check the validate user input.

    I put the shortcut key to ENTER in propriety / Actions area

    However, after that type in an answer and pressing on enter, the focus is not moved in the input text box available at the following address on the same blade.

    This happens regardless of browser (tested Firefox, Chrome, Safari, and IE9/10) and also OS - Windows 7, Mac OSX 10.9, 10.10 and latest version of iOS

    Only the tab key works (Ive even tried with other keyboard shortcuts and it always comes back to TAB).

    I know that this feature is possible in Captivate 9. I have read and watched many tutorials online, it seems a very basic feature. I could be wrong.

    This is a feature of wholesale/known or I'm doing something wrong.

    If a bug, is there a plan to fix it soon?

    Indeed, your problem is related to the Enter key as a shortcut key, not to have multiple TEB and one absolutely validation button. Take a look at this article very old (you are not the first to ask about this):

    A submit button for multiple text entry boxes? -Captivate Blog

    But here I explained to indicate to the user click in a next TEB, do not use input.

  • CP9: Multiple text entry boxes - 1 Submit button

    Hello

    I have several text entry areas (TEBs) and send button 1.

    Each TEB I have a:

    • input variable of text from the user - v_teb1 (associated with the ETB).
    • Variable for the correct answer - v_teb1_ans (do this way because I want to reuse the action advanced)

    I created an advanced action (assigned to the "submit" button) to check the entry of user against the answers.

    So if the answer was 'Home' or 'House' - how can I test for it - create two response variables - "v_teb1_ans_a", "v_teb1_ans_b".

    Is there an easier way?

    Also with "Validation of the user" are the "correct entered" used only with 'Success' and display the success, legends of the failure

    that is when submit button displayed for each TEB, auto-submit is enabled, the Enter button is used?

    Concerning

    Donal.

    Donal salvation,

    This is the problem with the validation of a TEB entry using a tip action, there is no way to disable the distinction uppercase / lowercase. It will be possible if you use JS to change the answer to all the capitals before checking it in.

    I do not understand your last question, sorry? Entered correct are used if you post a BER, but in your case the validation is made only after all the TEB were used, right?

  • CP9: Text entry box: Lost Focus displayed when you click Submit

    Hello

    I seem to have problems with my text entry areas (TEBs).

    Sometimes, these problems do not appear all the time.

    Later a being that when I click on the button the Focus Lost text caption is displayed.

    I came across the question when you work on a project, so I decided to 3 slides project to test.

    1 BER on the screen.

    • Success goes to the next slide.
    • Failure displays caption built-in failure.
    • Focus Lost shows a text caption.

    Slides mask lost Focus of text caption at the entrance.

    No advanced actions.

    Timeline shows just TEB and lost legend for Focus text.

    CP9 TEB Focus Lost.jpg

    CP9, project that is unresponsive (a new project - only 3 slides), project preview & Preview in the browser. have not yet published.

    I deleted the slide and added a new slide.

    I deleted the cache and reset the preferences.

    Concerning

    Donal.

    The way you described the configuration and screenshots, it seems to be behaving exactly as it should.

    I was expecting to see THE text caption every time that you click the submit button.

    Should the lost Focus event fires when the cursor was placed in field ETB and then you move outside this field and click on anything, which of course would include by clicking on the button submit of the BER itself.

    So far I don't see any bug or issue here.  Can you describe what you think that SHOULD be the case?

  • What is the button text entry box to submit to?

    Hello

    I thought that the button 'submit' set the value of the variable related to the text entry area, but I just realized that the value is set at the same time that the user enters a value.  So now my question is what does 'send' in fact?

    It triggers the assessment of the value in the variable associated with the text input box.

  • Slide auto is using of multiple text entry boxes once the user enters two of the six answers

    I have several areas set up on a slide text entry.  The user must enter the answer in each text box.  And even though I have properties of all TEB "break from legends of success or failure", auto slide advance once the user enters only two of the six responses.  I thought that perhaps insert a click box and setting ' to pause until the user clicks on "would resolve the issue... but it is not.  Here's a screenshot of what my slide looks like and a screenshot of the properties that I set myself for each TEB.  Can someone help me please?  I need all six TEB to complete before moving to the next slide.

    TEBs.PNG

    TEB properties 1.PNG

    TEB properties 2.PNG

    The most important screenshot is missing: chronology. Where are the pausings for the TEB?

    You can start by changing the Actions on the success and the last attempt: they are both set to Continue, which means the playhead will be published immediately after a good response and after exhausting attempts in case of wrong answers. Set them to any Action.

    No Submit button? Only shortcut key entry for each TEB?

  • How to recover the dynamic value of ADF text entry?

    Hello

    I'm developing an application where this scenario occurs.

    1. a dynamic text input for the click on the radio button, must be created.  (I am able to do this).

    2. I am entering a value in dynamic text that is created at run time.

    How to get the value of dynamic text in my java code?

    Or what property must be used to retrieve dynamic data of text entry?

    Hello

    Here is a case that as it is similarly instead of your box here a commandbutton control.

    JSPX code

    actionListener="#{viewScope.Mbean.ActionLis}"/ >

    track 1:

    1. here you using "setValueChangeListener".

    2. with the help of MethodBinding to invoke the listener in the same class itself.

    3 MethodBinding and el class has been deprecated in this approach.

    the bean code

    Import javax.faces.context.FacesContext;

    Import javax.faces.el.MethodBinding;

    Import javax.faces.event.ActionEvent;

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    Import oracle.adf.view.rich.component.rich.input.RichInputText;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelBox;

    Import oracle.adf.view.rich.component.rich.nav.RichCommandButton;

    Import oracle.adf.view.rich.context.AdfFacesContext;

    public void ActionLis (ActionEvent actionEvent) {}

    Add the code in the event here...

    RichInputText rt = new RichInputText();

    rt.setAutoSubmit (true);

    Class parms [] = new class [] {ValueChangeEvent.class};

    MethodBinding mbind = FacesContext.getCurrentInstance () .getApplication () .createMethodBinding ("#{viewScope.Mbean.valuchnglis}", parms);

    rt.setValueChangeListener (mbind);

    ((RichCommandButton) actionEvent.getSource ()) .getParent () .getChildren () .add (rt);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (((RichCommandButton) actionEvent.getSource ()) .getParent ());

    }

    {} public void valuchnglis (ValueChangeEvent valueChangeEvent)

    System.out.println ("value" + valueChangeEvent.getNewValue ());

    }

    Track 2:

    1. here you using "addValueChangeListener".

    2. you need an additional class to do so.

    3. you can retrieve the value of processValueChange.

    the bean code

    Import javax.faces.context.FacesContext;

    Import javax.faces.el.MethodBinding;

    Import javax.faces.event.ActionEvent;

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    Import oracle.adf.view.rich.component.rich.input.RichInputText;

    Import oracle.adf.view.rich.component.rich.layout.RichPanelBox;

    Import oracle.adf.view.rich.component.rich.nav.RichCommandButton;

    Import oracle.adf.view.rich.context.AdfFacesContext;

    public void ActionLis (ActionEvent actionEvent) {}

    Add the code in the event here...

    RichInputText rt = new RichInputText();

    rt.setAutoSubmit (true);

    rt.addValueChangeListener (new vc());

    ((RichCommandButton) actionEvent.getSource ()) .getParent () .getChildren () .add (rt);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (((RichCommandButton) actionEvent.getSource ()) .getParent ());

    }

    Import javax.faces.event.ValueChangeEvent;

    Import javax.faces.event.ValueChangeListener;

    public class vc implements {ValueChangeListener

    public void processValueChange (ValueChangeEvent valueChangeEvent)

    {

    System.out.println ("value of the class" + valueChangeEvent.getNewValue ());

    }

    }

    Thank you

  • View 2 records text entry fields

    Hello

    New on ADF and want to know how to do a particular task:

    I have 2 lines with 2 different IDs and want to display two records one after the other, I can achieve this by using a table but I want to put the data in the text entry fields?

    FOR EXAMPLE:

    ID name City ZIP code

    1 Fred Bloggs Leeds LS1 2 minutes

    2 Gary Smith Liverpool L2 in 4NP

    is this possible?

    Thank you

    Hello

    You can make use of af:iterator. First, create a tree binding based on the data control and use something like this.

               
                        
                        
                            
                            
                        
                        
                            
                        
                        
                            
                        
                    
                
    

    It would show two lines of data. You can adjust the rows property to display the number of lines. If you want all the lines, remove the rows property.

    Arun-

Maybe you are looking for

  • Text suddenly goes big way

    This happens quite often: I read something in Safari/Google or an attachment in Mail and the picture suddenly goes far too much. To return things to normal, I have to press command/0 - zero. (Hey, it just happened now, write!) Please tell me what is

  • Upgrade GPU of HP Pavilion HPE h8-1070uk desktop PC

    Hey everybody would be able to tell me which graphics cards are compatible with HP Pavilion HPE h8-1070uk desktop computer? I tried to install Asus gtx 750 TI unsuccessfully as the phones was not compatible due to the bios, and now I don't know what

  • How to get the string (specified by row and column) of txt file with labview

    Hello world How to get the string (specified by row and column) of txt file with labview THX

  • Webcam. How can I record video?

    I can't find my webcam anywhere on my system. I used the search bar in the start menu and tried the choice of material to add. The webcam captures the sounds when I use MSN and when I use Chatroulette or Omegle. I want to record some videos but to pl

  • Set up the LaserJet P1006 on print server

    I'm trying to set up a HP LaserJet P1006 on a D-Link DP-300U print server.  I currently have a HP Photosmart 1315 on the same print server.  Implemented for the Photosmart was very easy (Setup program on the USB Port or parallel).  Now, I want to add