Package com.sun.lwuit

Examples of com.sun.lwuit.TextArea


          if (Contents.mystring_presence[k].equals(Datas.jid.getPresence())) {
        status_list.setSelected(k);
      }
    }
    status_form.addComponent(new MyLabel("Your mood"));
        TextArea mess = new TextArea(Datas.jid.status_message, 100);
        status_form.addComponent(mess);
        infopool.put("status_message", mess);
        status_form.addCommand(Contents.ok);
 
        status_form.addCommand(Contents.back);
View Full Code Here


      group_Jid = currentjid.group;
      phone_num = currentjid.phone;
    }
    Form res = new Form(name);
    res.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
    TextArea jid = new TextArea(/*"jid", */current_Jid, 64);
    TextField group = new TextField(/*"group", */group_Jid, 32);
    TextField phone = new TextField(/*"phone num.",*/ phone_num, 32);
    infopool.put("jid", jid);
    infopool.put("group", group);
    infopool.put("phone", phone);
View Full Code Here

    //conversationForm.getStyle().setBgColor()
    Vector msgs = currentConversation.messages;
    Message msg;
    //if (currentConversation.isMulti || canAnswer) {
    TextArea tf = new TextArea(2,100,TextArea.ANY); //settare stile
    tf.setFocus(true);
 
    //TextBox tf = new TextBox("", ">", 128, TextArea.ANY);
    infopool.put("text2send", tf);
    conversationForm.addComponent(tf);
   
View Full Code Here

   * @param tab (number of tab, -1 = delete textarea, 0 = maintain textarea)
   *
   */
  public void getGuiUpdateConversation(int tab)
  {
    TextArea tempItem = (TextArea)conversationForm.getComponentAt(0);
    if (tab == -1)
      tempItem.setText("");
   
    conversationForm.removeAll();
    //Container alternateForm = new Container();
    //alternateForm.setScrollableY(true);
    //alternateForm.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
   
   
    conversationForm.addComponent(tempItem);
        tempItem.setFocus(true);
    //conversationForm.setScrollable(true);
    infopool.put("text2send", tempItem);
  /*  if (tab == -1)
        tab = tabbedPane.getSelectedIndex();
      */   
View Full Code Here

      else {
        getGuiOnlineMenu();
        internal_state = ONLINE;
      }
    } else if (id == Contents.send) {
      TextArea tf = (TextArea) infopool.remove("text2send");
      if (!tf.getText().equals("")) {
        Message msg = new Message("", tf.getText());
        ((Chat) currentConversation).appendFromMe(msg);
      }
      getGuiUpdateConversation(-1);
    }
    else if (id == Contents.invite ) {
      TextField tf = (TextField) infopool.remove("invite");
       
      String inv = tf.getText();
      if (inv.indexOf("@") != -1)
        ChatHelper.inviteContact(inv, currentConversation.name);
      else {
        //display.setCurrent(new Alert("Invitation error", "JID not correct", null, AlertType.ERROR), getGuiConversation());
        Dialog.show("Error", "Invitation error", null, Dialog.TYPE_ERROR,null, 3000);
View Full Code Here

   
    /*String subdomain = "";
    if (Datas.subdomain != null)
      subdomain = "@"+Datas.subdomain;
      */
    TextArea jid = new TextArea(Datas.jid.getUsername(), 32);
    TextArea server = new TextArea(Datas.server_name, 64);
    TextArea subdomain = new TextArea(Datas.subdomain, 64);
   
    TextArea password = new TextArea(Datas.getPassword(), 1,32, TextArea.PASSWORD);
    TextArea mail = new TextArea(Datas.jid.getMail(), 1,32, TextArea.EMAILADDR);
    TextArea port = new TextArea(Datas.customPort, 1,5, TextArea.NUMERIC);
    infopool.put("password", password);
   
   
    infopool.put("jid", jid);
    infopool.put("mail", mail);
View Full Code Here

TOP

Related Classes of com.sun.lwuit.TextArea

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.