Package org.zkoss.zul

Examples of org.zkoss.zul.Textbox$AuxInfo


    cap.setStyle("padding: 0px;");
    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    textbox = new Textbox();
    textbox.setReadonly(true);
    textbox.setStyle("font-family: verdana; border: none; background-color: white;");
    textbox.setMultiline(true);
    textbox.setRows(10);
    textbox.setHflex("true");
View Full Code Here


    cap.setStyle("padding: 0px;");
    cap.setParent(pl);
    Panelchildren plc = new Panelchildren();
    plc.setParent(pl);

    textbox = new Textbox();
    textbox.setReadonly(true);
    textbox.setStyle("font-family: verdana; border: none; background-color: white;");
    textbox.setMultiline(true);
    textbox.setRows(10);
    textbox.setHflex("true");
View Full Code Here

    int sheetindex = book.getSheetIndex(sheet);
    int left = spreadsheet.getSelection().getLeft();
    int top = spreadsheet.getSelection().getTop();
    int right = spreadsheet.getSelection().getRight();
    int bottom = spreadsheet.getSelection().getBottom();
    Textbox fsaw_filename = (Textbox) Path
        .getComponent("//p1/rangeAddWin/raw_rangename");
    String name = fsaw_filename.getValue();

    Name namevar = book.createName();
    namevar.setNameName(name);
    namevar.setSheetIndex(sheetindex);
    CellRangeAddress cra = new CellRangeAddress(top, bottom, left, right);
View Full Code Here

    argsListbox.setItemRenderer(new ListitemRenderer() {
      public void render(Listitem item, Object data) throws Exception {
        final ArgWrapper arg = (ArgWrapper)data;
        item.setValue(arg);
        item.appendChild(new Listcell(arg.getName()));
        final Textbox tb = new Textbox(arg.getValue());
        inputs.add(tb);
       
        tb.addEventListener(Events.ON_CHANGE, new EventListener() {
          public void onEvent(Event event) throws Exception {
            arg.setValue(tb.getValue());
            composeFormula();
            moveFocusToNext(tb);
            movedToNext = false;
          }
        });
        tb.addEventListener(Events.ON_FOCUS, new EventListener() {
          public void onEvent(Event event) throws Exception {
            ArgWrapper last = args.get(args.size() - 1);
            if (last.equals(arg) && info.isMultipleParameter()) {
              focusToIndex = args.size() - 1;
              args.add(createNextArg());
View Full Code Here

 
  private void initMail() {
    if (isCellHasDisplayString)
      return;
   
    final Textbox mailAddr = (Textbox)content.getFellow("mailAddr");
    final Textbox mailSubject = (Textbox)content.getFellow("mailSubject");
    final String preAppend = "mailto:";
    mailAddr.addEventListener(Events.ON_CHANGING, new EventListener() {
     
      @Override
      public void onEvent(Event evt) throws Exception {
        String mail = mailSubject.getValue();
        String val = preAppend + ((InputEvent)evt).getValue() +
              (mail != null && mail != "" ? "?subject=" + mailSubject.getValue() : "");
        displayHyperlink.setValue(val);
      }
    });
   
    mailSubject.addEventListener(Events.ON_CHANGING, new EventListener() {
     
      @Override
      public void onEvent(Event evt) throws Exception {
        String mail = mailAddr.getValue();
        if (mail != null  && mail != "")
          displayHyperlink.setValue(preAppend + mailAddr.getValue() + "?subject=" + ((InputEvent)evt).getValue());
      }
    });
    mailAddr.addEventListener(Events.ON_OK, onOkEventListener);
    mailSubject.addEventListener(Events.ON_OK, onOkEventListener);
    mailAddr.focus();
  }
View Full Code Here

  /**
   * Returns the cell reference string, return null if component not found
   * @return
   */
  public String getCellRef() {
    Textbox cellRef = (Textbox)content.getFellowIfAny("cellRef");
    return cellRef != null ? cellRef.getText() : "";
  }
View Full Code Here

  }
 

  private void initDoc() {
    final Tree tree = (Tree)content.getFellow("refSheet");
    final Textbox cellRef = (Textbox)content.getFellow("cellRef");
   
    buildDocumentTree(tree, cellRef);
    cellRef.addEventListener(Events.ON_CHANGING, new EventListener() {
     
      @Override
      public void onEvent(Event evt) throws Exception {
        displayHyperlink.setValue(tree.getSelectedItem().getLabel() + "!" + ((InputEvent)evt).getValue());
      }
    });
    cellRef.focus();
  }
View Full Code Here

  /**
   * Returns the reference sheet name, return null if link type is not document
   * @return
   */
  public String getRefSheet() {
    Textbox refSheet = (Textbox)content.getFellowIfAny("refSheet");
    return refSheet != null ? refSheet.getText() : ""
  }
View Full Code Here

      public void onEvent(Event event) throws Exception {
        doCellEvent((CellEvent)event);
      }
    });
   
    final Textbox tbxval = (Textbox)getFellow("tbxval");
    tbxval.addEventListener("onChange",new EventListener(){
      public void onEvent(Event event) throws Exception {
        doCellChange(tbxval.getValue());
      }
    });
  }
View Full Code Here

  void doCellEvent(CellEvent event){
    Worksheet sheet = event.getSheet();
    lastRow = event.getRow();
    lastCol = event.getColumn();
    Label lbpos = (Label)getFellow("lbpos");
    Textbox tbxval = (Textbox)getFellow("tbxval");
    CellRangeAddress addr = new CellRangeAddress(lastRow, lastRow, lastCol, lastCol);
    Cell cell = Utils.getCell(sheet, lastRow, lastCol);
    lbpos.setValue(addr.formatAsString());
    tbxval.setValue(cell == null ? "" : Utils.getEditText(cell));
  }
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.