Package org.zkoss.zul

Examples of org.zkoss.zul.Textbox$AuxInfo


  void onCellEvent(CellEvent event){
    Sheet sheet = event.getSheet();
    lastRow = event.getRow();
    lastCol = event.getColumn();
    Label lbpos = (Label)getFellow("lbpos");
    Textbox tbxval = (Textbox)getFellow("tbxval");
   
    Cell cell = sheet.getCell(lastRow, lastCol);
    lbpos.setValue(Indexes.toA1(lastRow,lastCol,false,false));
    tbxval.setValue(cell == null ? "" : cell.getEditText());
  }
View Full Code Here


          Messagebox.show(message);
        }
      }
    });

    final Textbox messageBox = new Textbox();
    Button sendMessage = new Button("Send message");
    sendMessage.addEventListener(Events.ON_CLICK, new EventListener() {
      public void onEvent(Event arg0) throws Exception {
        message = messageBox.getText();
      }
    });

    Button readMessage = new Button("Read Message");
    readMessage.addEventListener(Events.ON_CLICK, new EventListener() {
View Full Code Here

  }

  public void onClick$BtnSerializeTB(Event event) throws InterruptedException {

    Textbox fcOld;
    Textbox fcNew;

    fcOld = new Textbox("Test Textbox");

    // Serialize the original class object
    try {
      final FileOutputStream fo = new FileOutputStream("cde.tmp");
      final ObjectOutputStream so = new ObjectOutputStream(fo);
      so.writeObject(fcOld);
      so.flush();
      so.close();
    } catch (final Exception e) {
      throw new RuntimeException(e);
    }

    // Deserialize in to new class object
    try {
      final FileInputStream fi = new FileInputStream("cde.tmp");
      final ObjectInputStream si = new ObjectInputStream(fi);
      fcNew = (Textbox) si.readObject();
      System.out.println(fcNew.getValue());
      si.close();
    } catch (final Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

   * @param anQuestion
   */
  private InputConfirmBox(Component parent, String anQuestion) {
    super();
    question = anQuestion;
    textbox = new Textbox();

    setParent(parent);

    createBox();
  }
View Full Code Here

   * @param anQuestion
   */
  private InputMessageTextBox(Component parent) {
    super();

    textbox = new Textbox();

    setParent(parent);

    try {
      userName = ((UserImpl) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername();
View Full Code Here

           * If you whish to inform smartly of incoming message than
           * uncomment the next line for only a blinking Icon.
           */
          // MessageBarCtrl.this.btnOpenMsg.setImage("/images/icons/incoming_message1_16x16.gif");
        } else {
          Textbox t = ((Textbox) getMsgWindow().getFellow("tb"));
          t.setValue(getMsg());
          // SCROLL the text to the last Message.
          Clients.evalJavaScript("scrollTextbox('" + t.getUuid() + "')");
          // int stPos = t.getText().length();
          // t.setSelectionRange(stPos, getMsg().length() - 1);
        }
      }
    });
View Full Code Here

      public void onEvent(Event event) throws Exception {
        // 1. Reset to normal image
        btnOpenMsg.setImage("/images/icons/message2_16x16.gif");
        // 2. open the message window
        Window win = getMsgWindow();
        Textbox t = (Textbox) win.getFellow("tb");
        t.setText(getMsg());
        // TODO scroll to latest message
        // Clients.scrollIntoView(t);

      }
    });
View Full Code Here

      Center center = new Center();
      center.setFlex(true);
      center.setBorder("none");
      center.setAutoscroll(true);

      Textbox tb = new Textbox();
      tb.setId("tb");
      tb.setMultiline(true);
      tb.setReadonly(true);
      // tb.setRows(17);
      // tb.setWidth("98%");

      tb.setParent(center);
      center.setParent(blayout);
      blayout.setParent(msgWindow);

      /**
       * set the bottom of the msgWindow, so that we can see and reach the
View Full Code Here

    box.invalidate();
  }

  private void addTextboxChild(Box box) {
    int nextCount = box.getChildren().size();
    Textbox child = new Textbox("Textbox-" + nextCount);
    box.appendChild(child);
    box.invalidate();
  }
View Full Code Here

    hbox.setStyle("padding-left: 5px");
    hbox.setWidth("100%");
    hbox.setHeight("27px");
    hbox.setParent(south2);
    // textbox for inserting the search parameter
    this._textbox = new Textbox();
    this._textbox.setWidth("100%");
    this._textbox.setMaxlength(20);
    this._textbox.setParent(hbox);
    // serachButton
    this._searchButton = new Button();
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Textbox$AuxInfo

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.