Package com.extjs.gxt.ui.client.event

Examples of com.extjs.gxt.ui.client.event.KeyListener


       
        nameText = new TextField<String>();
        nameText.setFieldLabel("Name");
        add(nameText);
       
        nameText.addKeyListener(new KeyListener()
        {
           
            @Override
            public void componentKeyPress(ComponentEvent event)
            {
View Full Code Here


    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setStyleAttribute("padding", "20");
   
    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
View Full Code Here

    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setStyleAttribute("padding", "20");
   
    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
View Full Code Here

    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setStyleAttribute("padding", "20");

    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
    selectionListener =
View Full Code Here

  private final ContentPanel createPropertiesPanel() {
    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setStyleAttribute("padding", "20");   

    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
    selectionListener =
View Full Code Here

    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setStyleAttribute("padding", "20");   
   
    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
View Full Code Here

    final MessageBox prompt = MessageBox.prompt("Add custom element",
        "Please specify element name:");
    // TODO BUG IN GXT: TextField is not attached!!!
    // => GET NO KEYEVENTS, so do it myself...
    ComponentHelper.doAttach(prompt.getTextBox());
    prompt.getTextBox().addKeyListener(new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        super.componentKeyUp(event);
        if (pressedEnter(event.getKeyCode())) {
          prompt.getDialog().close(
              prompt.getDialog().getButtonById(Dialog.OK));
View Full Code Here

    FormPanel panel = new FormPanel();
    panel.setHeaderVisible(false);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setStyleAttribute("padding", "20");
   
    KeyListener keyListener = new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        editor.markDirty();
      }
    };
View Full Code Here

    panel.setLayout(layout);
    return panel;
  }
  private final void addFolderNameField(FormPanel panel, FormData data) {
    name.setFieldLabel(constants.folderName());
    name.addKeyListener(new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        super.componentKeyUp(event);
        name.validate();
        if(pressedEnter(event.getKeyCode())) {
          close(createButton);
View Full Code Here

  }
  private final void addViewNameField(FormPanel panel, FormData data, String initialName) {
    name.setFieldLabel(constants.subobjectName());
   
    name.setValue(initialName);
    name.addKeyListener(new KeyListener() {
      public void componentKeyUp(ComponentEvent event) {
        super.componentKeyUp(event);
        int keyCode = event.getKeyCode();
        if (keyCode == KeyboardListener.KEY_ESCAPE) {
          close(cancelButton);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.event.KeyListener

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.