Package jfix.zk

Examples of jfix.zk.Textfield


    getRows().insertBefore(dragged.getParent().getParent(),
        target.getParent().getParent());
  }

  private void convertLabelToTextfield(final Label label) {
    final Textfield textfield = new Textfield(label.getValue());
    EventListener labelEditPerformed = new EventListener() {
      public void onEvent(Event evt) throws Exception {
        String value = textfield.getValue();
        label.setValue(value);
        ((PropertyEditor) textfield.getParent().getNextSibling()
            .getFirstChild()).getProperty().setName(value);
        ZK.replace(textfield, label);
      }
    };
    textfield.addEventListener(Events.ON_OK, labelEditPerformed);
    textfield.addEventListener(Events.ON_BLUR, labelEditPerformed);
    ZK.replace(label, textfield);
    textfield.focus();
  }
View Full Code Here

TOP

Related Classes of jfix.zk.Textfield

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.