Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.TextBox


            final int           constraints
    )
    {
        super( controller );
        this.viewId = viewId;
        final TextBox txtNote = new TextBox(
                ResourceManager.getResource( titleResource ),
                "",
                maxSize,
                constraints
        );
        txtNote.addCommand( Application.getCommandFactory().okCommand() );
        txtNote.setCommandListener( this );
        displayable = txtNote;
    }
View Full Code Here


  //#ifndef DSMALLMEM
    /** Initialize URL text Box */
    final public void initializeURLBox(RssReaderMIDlet midlet, final String url,
      Form prevForm, TextField prevItem) {
    m_midlet = midlet;
    TextBox boxURL = new TextBox("URL", url, 256, TextField.URL);
    m_urlRrnForm = prevForm;
    m_urlRrnItem = prevItem;
    boxURL.addCommand(UiUtil.getCmdRsc("cmd.ok", Command.OK, 2));
    boxURL.addCommand(UiUtil.getCmdRsc("cmd.cancel", Command.CANCEL, 1));
        boxURL.setCommandListener(this);
    midlet.setCurrent( boxURL );
    }
View Full Code Here

        sendCommand = new Command("Wyslij", Command.OK, 1);
        this.addCommand(sendCommand);
        this.addCommand(new Command("Exit", Command.EXIT, 1));
        this.setCommandListener(this);
       
        textBox = new TextBox("Rozmowa", null, 24000, 0);
        textField = new TextField("Wiadomosc", null, 256, 0);
       
        append(textField);
       
        this.bTMIDlet.getDisplay().setCurrent(this);
View Full Code Here

    }

    private TextBox getEnterNumBox() {
        if(enterNumBox == null)
        {
            enterNumBox = new TextBox("Enter Number", null, 15, TextField.PHONENUMBER);
            enterNumBox.addCommand(getOKCmd());
            enterNumBox.addCommand(getBackCmd());
            enterNumBox.setCommandListener(this);
        }
        return enterNumBox;
View Full Code Here

    }

    private TextBox getEnterNumBox() {
        if(enterNumBox == null)
        {
            enterNumBox = new TextBox("Enter Number", null, 20, TextField.PHONENUMBER);
            enterNumBox.addCommand(getOKCmd());
            enterNumBox.addCommand(getBackCmd());
            enterNumBox.setCommandListener(this);
        }
        return enterNumBox;
View Full Code Here

    }

    private TextBox getEnterNumBox() {
        if(enterNumBox == null)
        {
            enterNumBox = new TextBox("Enter Number", null, 15, TextField.PHONENUMBER);
            enterNumBox.addCommand(getOKCmd());
            enterNumBox.addCommand(getBackCmd());
            enterNumBox.setCommandListener(this);
        }
        return enterNumBox;
View Full Code Here

  /***************************************
   * @see NodeController#createLeafEditor(MutableHierarchyNode)
   */
  public Displayable createLeafEditor(MutableHierarchyNode rForNode)
  {
    return new TextBox(rForNode.getTitle(), new String(rForNode.getData()),
               rForNode.getMaximumSize(), TextField.ANY);
  }
View Full Code Here

    display.setCurrent(list);
  }

  public void requestTextInput(InputWidget source, String text, int constraints, boolean multiline) {
    if (textBox == null) {
      textBox = new TextBox("Input", "", MAX_INPUT_SIZE, javax.microedition.lcdui.TextField.ANY);
      textBox.addCommand(CMD_TEXT_OK);
      textBox.addCommand(CMD_CANCEL);
      textBox.setCommandListener(this);
    }
View Full Code Here

        Utilities.log("XXXX " + Thread.currentThread().getName() + " MIDlet constructed");

        display = javax.microedition.lcdui.Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.EXIT, 1);
        tb = new TextBox("NfcMidlet2 V1.14", "MIDlet awaiting NFC transaction", 50, 0);

        addToPushRegistryIfNecessary();

        // register as a TransactionListener too so we can receive NFC events when in foreground.
        addTransactionListener();
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.TextBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.